projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
998640b
)
net: phy: Marvell: Use phy_interface_is_rgmii helper function
author
Phil Edworthy
<
[email protected]
>
Mon, 12 Dec 2016 12:54:15 +0000
(12:54 +0000)
committer
Joe Hershberger
<
[email protected]
>
Tue, 7 Feb 2017 16:54:34 +0000
(10:54 -0600)
Signed-off-by: Phil Edworthy <
[email protected]
>
Reviewed-by: Stefan Roese <
[email protected]
>
Acked-by: Joe Hershberger <
[email protected]
>
drivers/net/phy/marvell.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/marvell.c
b/drivers/net/phy/marvell.c
index e76a14b47a58d7160998a1f6525d92f384096126..11aea9a348dee36cafd974cc104ebf56aa0933b3 100644
(file)
--- a/
drivers/net/phy/marvell.c
+++ b/
drivers/net/phy/marvell.c
@@
-177,10
+177,7
@@
static int m88e1111s_config(struct phy_device *phydev)
{
int reg;
- if ((phydev->interface == PHY_INTERFACE_MODE_RGMII) ||
- (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
- (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID) ||
- (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)) {
+ if (phy_interface_is_rgmii(phydev)) {
reg = phy_read(phydev,
MDIO_DEVAD_NONE, MIIM_88E1111_PHY_EXT_CR);
if ((phydev->interface == PHY_INTERFACE_MODE_RGMII) ||