ar71xx: Add support for ath79_gpio_function_* on QCA955X
[openwrt.git] / target / linux / ar71xx / patches-4.4 / 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,19 +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, if this
8 -        * PHY is listed in phy_ignore_ta_mask as having broken TA, skip that
9 -        */
10 -       if (mdiobb_get_bit(ctrl) != 0 &&
11 -           !(bus->phy_ignore_ta_mask & (1 << phy))) {
12 -               /* PHY didn't drive TA low -- flush any bits it
13 -                * may be trying to send.
14 -                */
15 -               for (i = 0; i < 32; i++)
16 -                       mdiobb_get_bit(ctrl);
17 -
18 -               return 0xffff;
19 -       }
20 +       mdiobb_get_bit(ctrl);
21  
22         ret = mdiobb_get_num(ctrl, 16);
23         mdiobb_get_bit(ctrl);