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.
SVN-Revision: 29844
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