summaryrefslogtreecommitdiff
path: root/target/linux/generic/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-13 19:17:58 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-13 19:17:58 +0000
commit9d497cb132be4f9bcc0ceaf247c686a3be845017 (patch)
tree617714a24214370ea723cde87db9724565f13088 /target/linux/generic/files
parent3883e71097064c7934ace766d9974f36cbdaecf0 (diff)
downloadmtk-20170518-9d497cb132be4f9bcc0ceaf247c686a3be845017.zip
mtk-20170518-9d497cb132be4f9bcc0ceaf247c686a3be845017.tar.gz
mtk-20170518-9d497cb132be4f9bcc0ceaf247c686a3be845017.tar.bz2
rtl8366: fix rtl8366_smi_detect() after r29677
SVN-Revision: 29732
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366_smi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
index c3fde0d..971c95f 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
@@ -1204,6 +1204,9 @@ enum rtl8366_type rtl8366_smi_detect(struct rtl8366_platform_data *pdata)
memset(&smi, 0, sizeof(smi));
smi.gpio_sda = pdata->gpio_sda;
smi.gpio_sck = pdata->gpio_sck;
+ smi.clk_delay = 10;
+ smi.cmd_read = 0xa9;
+ smi.cmd_write = 0xa8;
if (__rtl8366_smi_init(&smi, "rtl8366"))
goto out;