net: ibm: emac: replace custom PHY_MODE_* macros
The ibm_emac driver predates the PHY_INTERFACE_MODE_* enums by a few years. And while the driver has been retrofitted to use the PHYLIB, the old definitions have stuck around to this day. This patch replaces all occurences of PHY_MODE_* with the respective equivalent PHY_INTERFACE_MODE_* enum. And finally, it purges the old macros for good. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
这个提交包含在:
@@ -104,19 +104,6 @@ struct emac_regs {
|
||||
} u1;
|
||||
};
|
||||
|
||||
/*
|
||||
* PHY mode settings (EMAC <-> ZMII/RGMII bridge <-> PHY)
|
||||
*/
|
||||
#define PHY_MODE_NA PHY_INTERFACE_MODE_NA
|
||||
#define PHY_MODE_MII PHY_INTERFACE_MODE_MII
|
||||
#define PHY_MODE_RMII PHY_INTERFACE_MODE_RMII
|
||||
#define PHY_MODE_SMII PHY_INTERFACE_MODE_SMII
|
||||
#define PHY_MODE_RGMII PHY_INTERFACE_MODE_RGMII
|
||||
#define PHY_MODE_TBI PHY_INTERFACE_MODE_TBI
|
||||
#define PHY_MODE_GMII PHY_INTERFACE_MODE_GMII
|
||||
#define PHY_MODE_RTBI PHY_INTERFACE_MODE_RTBI
|
||||
#define PHY_MODE_SGMII PHY_INTERFACE_MODE_SGMII
|
||||
|
||||
/* EMACx_MR0 */
|
||||
#define EMAC_MR0_RXI 0x80000000
|
||||
#define EMAC_MR0_TXI 0x40000000
|
||||
|
在新工单中引用
屏蔽一个用户