From: Eugene Crosser Date: Thu, 16 Jun 2016 14:18:51 +0000 (+0200) Subject: qeth: Include error message for "OS Mismatch" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1b05cf6285c108c8c2acfec47dd02ed50d973823;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git qeth: Include error message for "OS Mismatch" Having understood the semantics of BRIDGEPORT error code 0x0010, we can introduce a meaningful error message. Signed-off-by: Eugene Crosser Signed-off-by: Ursula Braun Signed-off-by: David S. Miller --- diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index 80b1979e8d95..faab0b669ca4 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c @@ -1800,6 +1800,12 @@ static int qeth_bridgeport_makerc(struct qeth_card *card, dev_err(&card->gdev->dev, "The device is not configured as a Bridge Port\n"); break; + case 0x2B10: + case 0x0010: /* OS mismatch */ + rc = -EPERM; + dev_err(&card->gdev->dev, + "A Bridge Port is already configured by a different operating system\n"); + break; case 0x2B14: case 0x0014: /* Another device is Primary */ switch (setcmd) {