2
0

900-mdio_bitbang_ignore_ta_value.patch 664 B

1234567891011121314151617181920212223
  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. ctrl->ops->set_mdio_dir(ctrl, 0);
  5. - /* check the turnaround bit: the PHY should be driving it to zero, if this
  6. - * PHY is listed in phy_ignore_ta_mask as having broken TA, skip that
  7. - */
  8. - if (mdiobb_get_bit(ctrl) != 0 &&
  9. - !(bus->phy_ignore_ta_mask & (1 << phy))) {
  10. - /* PHY didn't drive TA low -- flush any bits it
  11. - * may be trying to send.
  12. - */
  13. - for (i = 0; i < 32; i++)
  14. - mdiobb_get_bit(ctrl);
  15. -
  16. - return 0xffff;
  17. - }
  18. + mdiobb_get_bit(ctrl);
  19. ret = mdiobb_get_num(ctrl, 16);
  20. mdiobb_get_bit(ctrl);