diff options
| author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-07 19:36:25 +0000 | 
|---|---|---|
| committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-07 19:36:25 +0000 | 
| commit | d43b4effd9097b9139ad66f5e3f25320d67de283 (patch) | |
| tree | 437715c9f64a8789c34a4f0cf2c8821b5f3268c7 /target/linux/generic/files/drivers/net/phy | |
| parent | 54bc3d42c433d28002eb518e7b292efca5728a8d (diff) | |
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/files/drivers/net/phy')
| -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 281c45367..f0a92bcd7 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;  | 
