]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: dwmac-mediatek: remove the dwmac_fix_mac_speed
authorBiao Huang <biao.huang@mediatek.com>
Thu, 5 Jan 2023 01:07:11 +0000 (09:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:58:24 +0000 (11:58 +0100)
commitd4e2e6f4d60dcad486fb404f6095002a8b29c209
tree5b3fe6f8706bd51b87ff300dd5125bddde9fe9a5
parentc3e611649279f594200c1b7c98670b1f98724378
stmmac: dwmac-mediatek: remove the dwmac_fix_mac_speed

[ Upstream commit c26de7507d1f5ffa5daf6a4980ef7896889691a9 ]

In current driver, MAC will always enable 2ns delay in RGMII mode,
but that's not the correct usage.

Remove the dwmac_fix_mac_speed() in driver, and recommend "rgmii-id"
for phy-mode in device tree.

Fixes: b041f9d18629 ("stmmac: dwmac-mediatek: add support for mt8195")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c