Subject: [PATCH net-next 12/13] sfc: Fail self-test with -EBUSY, not -EIO, if the device is busy

From: Shradha Shah <[email-masked]>
Date: Mon, 3 Feb 2014 23:36:08 +0000

From: Ben Hutchings <[email-masked]>

Signed-off-by: Ben Hutchings <[email-masked]>
Signed-off-by: Shradha Shah <[email-masked]>
---
 drivers/net/ethernet/sfc/ethtool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
 	}