mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-12 07:24:22 +00:00
generic: rtl8366_smi: add timeout message
SVN-Revision: 29676
This commit is contained in:
parent
67b2814842
commit
43196813d7
@ -143,8 +143,10 @@ static int rtl8366_smi_wait_for_ack(struct rtl8366_smi *smi)
|
|||||||
if (ack == 0)
|
if (ack == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (++retry_cnt > RTL8366_SMI_ACK_RETRY_COUNT)
|
if (++retry_cnt > RTL8366_SMI_ACK_RETRY_COUNT) {
|
||||||
return -EIO;
|
dev_err(smi->parent, "ACK timeout\n");
|
||||||
|
return -ETIMEDOUT;
|
||||||
|
}
|
||||||
} while (1);
|
} while (1);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user