1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-02 18:33:15 +03:00

generic: rtl8366_smi: add timeout message

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29676 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-01-07 19:36:25 +00:00
parent 54bc3d42c4
commit d43b4effd9

View File

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