net: phy: micrel: refactor broadcast disable
authorJohan Hovold <johan@kernel.org>
Tue, 11 Nov 2014 19:00:10 +0000 (20:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2014 18:55:36 +0000 (13:55 -0500)
commitbde151296a27c8ffaf000bb92ae6b318b8b3e0ec
treeb2aefb46a4c79cf4e89b3af3d91cff5665fc6ada
parent00aee095000c064cd77556050d08ed3f49f2af59
net: phy: micrel: refactor broadcast disable

Refactor and clean up broadcast disable.

Some Micrel PHYs have a broadcast-off bit in the Operation Mode Strap
Override register which can be used to disable PHY address 0 as the
broadcast address, so that it can be used as a unique (non-broadcast)
address on a shared bus.

Note that the KSZPHY_OMSO_RMII_OVERRIDE bit is set by default on
KSZ8021/8031.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c