* [PATCH netdev] net: stmmac: dwmac-sun8i: Allow all RGMII modes
@ 2020-01-06 3:09 Chen-Yu Tsai
2020-01-08 20:32 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Chen-Yu Tsai @ 2020-01-06 3:09 UTC (permalink / raw)
To: David S. Miller, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
Maxime Ripard
Cc: netdev, Chen-Yu Tsai, linux-kernel, linux-arm-kernel
From: Chen-Yu Tsai <wens@csie.org>
Allow all the RGMII modes to be used. This would allow us to represent
the hardware better in the device tree with RGMII_ID where in most
cases the PHY's internal delay for both RX and TX are used.
Fixes: 9f93ac8d4085 ("net-next: stmmac: Add dwmac-sun8i")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
Maybe CC stable so future device trees can be used with stable kernels?
---
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
index 1c8d84ed8410..01b484cb177e 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
@@ -957,6 +957,9 @@ static int sun8i_dwmac_set_syscon(struct stmmac_priv *priv)
/* default */
break;
case PHY_INTERFACE_MODE_RGMII:
+ case PHY_INTERFACE_MODE_RGMII_ID:
+ case PHY_INTERFACE_MODE_RGMII_RXID:
+ case PHY_INTERFACE_MODE_RGMII_TXID:
reg |= SYSCON_EPIT | SYSCON_ETCS_INT_GMII;
break;
case PHY_INTERFACE_MODE_RMII:
--
2.24.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH netdev] net: stmmac: dwmac-sun8i: Allow all RGMII modes
2020-01-06 3:09 [PATCH netdev] net: stmmac: dwmac-sun8i: Allow all RGMII modes Chen-Yu Tsai
@ 2020-01-08 20:32 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-01-08 20:32 UTC (permalink / raw)
To: wens
Cc: alexandre.torgue, netdev, linux-kernel, mripard, wens, joabreu,
peppe.cavallaro, linux-arm-kernel
From: Chen-Yu Tsai <wens@kernel.org>
Date: Mon, 6 Jan 2020 11:09:45 +0800
> From: Chen-Yu Tsai <wens@csie.org>
>
> Allow all the RGMII modes to be used. This would allow us to represent
> the hardware better in the device tree with RGMII_ID where in most
> cases the PHY's internal delay for both RX and TX are used.
>
> Fixes: 9f93ac8d4085 ("net-next: stmmac: Add dwmac-sun8i")
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Applied and queued up for -stable.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-08 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-06 3:09 [PATCH netdev] net: stmmac: dwmac-sun8i: Allow all RGMII modes Chen-Yu Tsai
2020-01-08 20:32 ` 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).