net: mtk_eth_soc: move trgmii ddr2 check to probe function
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 7 Mar 2023 16:19:31 +0000 (16:19 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 9 Mar 2023 08:51:31 +0000 (09:51 +0100)
commit7910898e1b2ae8ba0646434294931bf69cc0fdb5
tree5bd18238b39d08e71e90310a8362ee2e93dd97de
parent04eb3d1cede014defaa8c259263439cc7e9ceda6
net: mtk_eth_soc: move trgmii ddr2 check to probe function

If TRGMII mode is not permitted when using DDR2 mode, we should handle
that when setting up phylink's ->supported_interfaces so phylink knows
that this is not supported by the hardware. Move this check to
mtk_add_mac().

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mediatek/mtk_eth_soc.c