* [PATCH net-next] fsl/fman: Add MII mode support.
@ 2021-01-11 4:39 Maxim Kochetkov
2021-01-13 4:10 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Maxim Kochetkov @ 2021-01-11 4:39 UTC (permalink / raw)
Cc: madalin.bucur, davem, kuba, netdev, Maxim Kochetkov
Set proper value to IF_MODE register for MII mode.
Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
---
drivers/net/ethernet/freescale/fman/fman_memac.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/ethernet/freescale/fman/fman_memac.c b/drivers/net/ethernet/freescale/fman/fman_memac.c
index bb9887f98841..62f42921933d 100644
--- a/drivers/net/ethernet/freescale/fman/fman_memac.c
+++ b/drivers/net/ethernet/freescale/fman/fman_memac.c
@@ -111,6 +111,7 @@ do { \
#define IF_MODE_MASK 0x00000003 /* 30-31 Mask on i/f mode bits */
#define IF_MODE_10G 0x00000000 /* 30-31 10G interface */
+#define IF_MODE_MII 0x00000001 /* 30-31 MII interface */
#define IF_MODE_GMII 0x00000002 /* 30-31 GMII (1G) interface */
#define IF_MODE_RGMII 0x00000004
#define IF_MODE_RGMII_AUTO 0x00008000
@@ -442,6 +443,9 @@ static int init(struct memac_regs __iomem *regs, struct memac_cfg *cfg,
case PHY_INTERFACE_MODE_XGMII:
tmp |= IF_MODE_10G;
break;
+ case PHY_INTERFACE_MODE_MII:
+ tmp |= IF_MODE_MII;
+ break;
default:
tmp |= IF_MODE_GMII;
if (phy_if == PHY_INTERFACE_MODE_RGMII ||
--
2.29.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] fsl/fman: Add MII mode support.
2021-01-11 4:39 [PATCH net-next] fsl/fman: Add MII mode support Maxim Kochetkov
@ 2021-01-13 4:10 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-01-13 4:10 UTC (permalink / raw)
To: Maxim Kochetkov; +Cc: madalin.bucur, davem, kuba, netdev
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Mon, 11 Jan 2021 07:39:03 +0300 you wrote:
> Set proper value to IF_MODE register for MII mode.
>
> Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
> ---
> drivers/net/ethernet/freescale/fman/fman_memac.c | 4 ++++
> 1 file changed, 4 insertions(+)
Here is the summary with links:
- [net-next] fsl/fman: Add MII mode support.
https://git.kernel.org/netdev/net-next/c/5bc8f5ab3b75
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-13 4:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 4:39 [PATCH net-next] fsl/fman: Add MII mode support Maxim Kochetkov
2021-01-13 4:10 ` patchwork-bot+netdevbpf
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).