OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | --- a/drivers/net/phy/mdio-bitbang.c |
2 | +++ b/drivers/net/phy/mdio-bitbang.c |
||
3 | @@ -155,7 +155,7 @@ static int mdiobb_cmd_addr(struct mdiobb |
||
4 | static int mdiobb_read(struct mii_bus *bus, int phy, int reg) |
||
5 | { |
||
6 | struct mdiobb_ctrl *ctrl = bus->priv; |
||
7 | - int ret, i; |
||
8 | + int ret; |
||
9 | |||
10 | if (reg & MII_ADDR_C45) { |
||
11 | reg = mdiobb_cmd_addr(ctrl, phy, reg); |
||
12 | @@ -165,19 +165,7 @@ static int mdiobb_read(struct mii_bus *b |
||
13 | |||
14 | ctrl->ops->set_mdio_dir(ctrl, 0); |
||
15 | |||
16 | - /* check the turnaround bit: the PHY should be driving it to zero, if this |
||
17 | - * PHY is listed in phy_ignore_ta_mask as having broken TA, skip that |
||
18 | - */ |
||
19 | - if (mdiobb_get_bit(ctrl) != 0 && |
||
20 | - !(bus->phy_ignore_ta_mask & (1 << phy))) { |
||
21 | - /* PHY didn't drive TA low -- flush any bits it |
||
22 | - * may be trying to send. |
||
23 | - */ |
||
24 | - for (i = 0; i < 32; i++) |
||
25 | - mdiobb_get_bit(ctrl); |
||
26 | - |
||
27 | - return 0xffff; |
||
28 | - } |
||
29 | + mdiobb_get_bit(ctrl); |
||
30 | |||
31 | ret = mdiobb_get_num(ctrl, 16); |
||
32 | mdiobb_get_bit(ctrl); |