From: Ben Hutchings Date: Wed, 12 Feb 2014 19:00:28 +0000 (+0000) Subject: sfc: Fail self-test with -EBUSY, not -EIO, if the device is busy X-Git-Tag: v4.14-rc1~7785^2~384^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5eed1f68523c8cdeeafae24350200d47ddc293b7;p=platform%2Fkernel%2Flinux-rpi.git sfc: Fail self-test with -EBUSY, not -EIO, if the device is busy Signed-off-by: Ben Hutchings Signed-off-by: Shradha Shah Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/sfc/ethtool.c b/drivers/net/ethernet/sfc/ethtool.c index 3444dd6..7d5cb86 100644 --- a/drivers/net/ethernet/sfc/ethtool.c +++ b/drivers/net/ethernet/sfc/ethtool.c @@ -461,7 +461,7 @@ static void efx_ethtool_self_test(struct net_device *net_dev, goto fail; if (efx->state != STATE_READY) { - rc = -EIO; + rc = -EBUSY; goto out; }