ar71xx: Add support for AP147-010 reference board
[openwrt/openwrt.git] / target / linux / ar71xx / patches-4.1 / 900-mdio_bitbang_ignore_ta_value.patch
1 --- a/drivers/net/phy/mdio-bitbang.c
2 +++ b/drivers/net/phy/mdio-bitbang.c
3 @@ -165,16 +165,7 @@ static int mdiobb_read(struct mii_bus *b
4
5 ctrl->ops->set_mdio_dir(ctrl, 0);
6
7 - /* check the turnaround bit: the PHY should be driving it to zero */
8 - if (mdiobb_get_bit(ctrl) != 0) {
9 - /* PHY didn't drive TA low -- flush any bits it
10 - * may be trying to send.
11 - */
12 - for (i = 0; i < 32; i++)
13 - mdiobb_get_bit(ctrl);
14 -
15 - return 0xffff;
16 - }
17 + mdiobb_get_bit(ctrl);
18
19 ret = mdiobb_get_num(ctrl, 16);
20 mdiobb_get_bit(ctrl);