From: Gabor Juhos Date: Sat, 7 Jan 2012 19:36:25 +0000 (+0000) Subject: generic: rtl8366_smi: add timeout message X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=43196813d775921d16cc238fe805e438a24c529f;p=openwrt%2Fstaging%2Fthess.git generic: rtl8366_smi: add timeout message SVN-Revision: 29676 --- 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;