diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-01-07 19:36:25 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-01-07 19:36:25 +0000 |
commit | 8ac68711cce8d1801788fb32c452a51fe8402f3b (patch) | |
tree | 437715c9f64a8789c34a4f0cf2c8821b5f3268c7 /target/linux/generic | |
parent | c64226d2ad14f8a9ea0af1b88a80a97ec85baa68 (diff) | |
download | upstream-8ac68711cce8d1801788fb32c452a51fe8402f3b.tar.gz upstream-8ac68711cce8d1801788fb32c452a51fe8402f3b.tar.bz2 upstream-8ac68711cce8d1801788fb32c452a51fe8402f3b.zip |
generic: rtl8366_smi: add timeout message
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29676 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366_smi.c | 6 |
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 281c453670..f0a92bcd7f 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; |