mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
net: ibm_newemac: convert it to use of_get_phy_mode
The patch extends 'enum phy_interface_t' and of_get_phy_mode a little bit with PHY_INTERFACE_MODE_NA and PHY_INTERFACE_MODE_SMII added, and then converts ibm_newemac net driver to use of_get_phy_mode getting phy mode from device tree. It also resolves the namespace conflict on phy_read/write between common mdiobus interface and ibm_newemac private one. Signed-off-by: Shawn Guo <[email protected]> Cc: David S. Miller <[email protected]> Cc: Grant Likely <[email protected]> Acked-by: Grant Likely <[email protected]> Acked-by: David Miller <[email protected]>
This commit is contained in:
parent
6ca1a11379
commit
4157ef1b87
5 changed files with 24 additions and 41 deletions
|
|
@ -16,6 +16,7 @@
|
|||
* device driver can get phy interface from device tree.
|
||||
*/
|
||||
static const char *phy_modes[] = {
|
||||
[PHY_INTERFACE_MODE_NA] = "",
|
||||
[PHY_INTERFACE_MODE_MII] = "mii",
|
||||
[PHY_INTERFACE_MODE_GMII] = "gmii",
|
||||
[PHY_INTERFACE_MODE_SGMII] = "sgmii",
|
||||
|
|
@ -26,6 +27,7 @@ static const char *phy_modes[] = {
|
|||
[PHY_INTERFACE_MODE_RGMII_RXID] = "rgmii-rxid",
|
||||
[PHY_INTERFACE_MODE_RGMII_TXID] = "rgmii-txid",
|
||||
[PHY_INTERFACE_MODE_RTBI] = "rtbi",
|
||||
[PHY_INTERFACE_MODE_SMII] = "smii",
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue