diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-01-21 22:44:09 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-01-21 22:44:09 +0000 |
commit | 31a1cdad82a50cb32e707c4d30054ed03d6c1f30 (patch) | |
tree | 35f870b36c51f407dc141823212c7376ae45793a /target/linux/generic/files/drivers/net/phy/rtl8366rb.c | |
parent | 69ece6cfdcf643830894e34b1072363fc95f762b (diff) | |
download | upstream-31a1cdad82a50cb32e707c4d30054ed03d6c1f30.tar.gz upstream-31a1cdad82a50cb32e707c4d30054ed03d6c1f30.tar.bz2 upstream-31a1cdad82a50cb32e707c4d30054ed03d6c1f30.zip |
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
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366rb.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366rb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c index 49dd03e274..d6a9ece36f 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c @@ -246,8 +246,8 @@ static int rtl8366rb_reset_chip(struct rtl8366_smi *smi) int timeout = 10; u32 data; - rtl8366_smi_write_reg(smi, RTL8366RB_RESET_CTRL_REG, - RTL8366RB_CHIP_CTRL_RESET_HW); + rtl8366_smi_write_reg_noack(smi, RTL8366RB_RESET_CTRL_REG, + RTL8366RB_CHIP_CTRL_RESET_HW); do { msleep(1); if (rtl8366_smi_read_reg(smi, RTL8366RB_RESET_CTRL_REG, &data)) |