summaryrefslogtreecommitdiff
path: root/target/linux/generic/files/drivers/net
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-01-07 19:36:25 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-01-07 19:36:25 +0000
commit43196813d775921d16cc238fe805e438a24c529f (patch)
treea4af2b93e1cf49ff19b22b265c734515e96a6594 /target/linux/generic/files/drivers/net
parent67b28148421a72532bc29f0b80c21d6aae2445f3 (diff)
downloadmtk-20170518-43196813d775921d16cc238fe805e438a24c529f.zip
mtk-20170518-43196813d775921d16cc238fe805e438a24c529f.tar.gz
mtk-20170518-43196813d775921d16cc238fe805e438a24c529f.tar.bz2
generic: rtl8366_smi: add timeout message
SVN-Revision: 29676
Diffstat (limited to 'target/linux/generic/files/drivers/net')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366_smi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
index 281c453..f0a92bc 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
@@ -143,8 +143,10 @@ static int rtl8366_smi_wait_for_ack(struct rtl8366_smi *smi)
if (ack == 0)
break;
- if (++retry_cnt > RTL8366_SMI_ACK_RETRY_COUNT)
- return -EIO;
+ if (++retry_cnt > RTL8366_SMI_ACK_RETRY_COUNT) {
+ dev_err(smi->parent, "ACK timeout\n");
+ return -ETIMEDOUT;
+ }
} while (1);
return 0;