900-mdio_bitbang_ignore_ta_value.patch 531 B

1234567891011121314151617181920
  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. ctrl->ops->set_mdio_dir(ctrl, 0);
  5. - /* check the turnaround bit: the PHY should be driving it to zero */
  6. - if (mdiobb_get_bit(ctrl) != 0) {
  7. - /* PHY didn't drive TA low -- flush any bits it
  8. - * may be trying to send.
  9. - */
  10. - for (i = 0; i < 32; i++)
  11. - mdiobb_get_bit(ctrl);
  12. -
  13. - return 0xffff;
  14. - }
  15. + mdiobb_get_bit(ctrl);
  16. ret = mdiobb_get_num(ctrl, 16);
  17. mdiobb_get_bit(ctrl);