summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-01-21 22:44:09 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-01-21 22:44:09 +0000
commit4625c9b5a4122f21b2415a32f930d58dbd74686b (patch)
treee74f52798c4e8f02fc23199ca118005d3e7c0f24 /target/linux/generic/files/drivers/net/phy/rtl8366rb.c
parent26d4e1876c9c48fd364824da7c99288cb7782fc0 (diff)
downloadmaster-31e0f0ae-4625c9b5a4122f21b2415a32f930d58dbd74686b.tar.gz
master-31e0f0ae-4625c9b5a4122f21b2415a32f930d58dbd74686b.tar.bz2
master-31e0f0ae-4625c9b5a4122f21b2415a32f930d58dbd74686b.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. SVN-Revision: 29844
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366rb.c')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366rb.c4
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))