mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
generic: rtl8366: add rtl8366_smi_write_reg_noack helper
After issuing a soft reset on the RT8366{S,RB}
switch, waiting for the last acknowlegement fails
in rtl8366_smi_write_reg. Add a _noack version of
the function and use that for issuing a soft reset.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29844 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -229,8 +229,8 @@ static int rtl8366s_reset_chip(struct rtl8366_smi *smi)
|
||||
int timeout = 10;
|
||||
u32 data;
|
||||
|
||||
rtl8366_smi_write_reg(smi, RTL8366S_RESET_CTRL_REG,
|
||||
RTL8366S_CHIP_CTRL_RESET_HW);
|
||||
rtl8366_smi_write_reg_noack(smi, RTL8366S_RESET_CTRL_REG,
|
||||
RTL8366S_CHIP_CTRL_RESET_HW);
|
||||
do {
|
||||
msleep(1);
|
||||
if (rtl8366_smi_read_reg(smi, RTL8366S_RESET_CTRL_REG, &data))
|
||||
|
||||
Reference in New Issue
Block a user