* [PATCH RESEND net-next] net: stmmac: socfpga: add RMII phy mode
@ 2019-06-03 14:44 Dinh Nguyen
2019-06-04 18:58 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Dinh Nguyen @ 2019-06-03 14:44 UTC (permalink / raw)
To: netdev; +Cc: dinguyen, davem, Florian Fainelli, Wei Liang Lim
Add option for enabling RMII phy mode.
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Wei Liang Lim <wei.liang.lim@intel.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
index d466e33635b0..75a6471db76c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
@@ -251,6 +251,9 @@ static int socfpga_dwmac_set_phy_mode(struct socfpga_dwmac *dwmac)
case PHY_INTERFACE_MODE_SGMII:
val = SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_GMII_MII;
break;
+ case PHY_INTERFACE_MODE_RMII:
+ val = SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_RMII;
+ break;
default:
dev_err(dwmac->dev, "bad phy mode %d\n", phymode);
return -EINVAL;
--
2.20.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH RESEND net-next] net: stmmac: socfpga: add RMII phy mode
2019-06-03 14:44 [PATCH RESEND net-next] net: stmmac: socfpga: add RMII phy mode Dinh Nguyen
@ 2019-06-04 18:58 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-06-04 18:58 UTC (permalink / raw)
To: dinguyen; +Cc: netdev, f.fainelli, wei.liang.lim
From: Dinh Nguyen <dinguyen@kernel.org>
Date: Mon, 3 Jun 2019 09:44:18 -0500
> Add option for enabling RMII phy mode.
>
> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
> Signed-off-by: Wei Liang Lim <wei.liang.lim@intel.com>
> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-04 18:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-03 14:44 [PATCH RESEND net-next] net: stmmac: socfpga: add RMII phy mode Dinh Nguyen
2019-06-04 18:58 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).