net: ethernet: ti: am65-cpsw: Move mode specific config to mac_config()
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Tue, 4 Apr 2023 06:14:57 +0000 (11:44 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Apr 2023 02:46:15 +0000 (19:46 -0700)
commitce639b767139b27500fa5bc3f8d7126b18d0d310
tree750f44900e5e8e6a9d88775d6fa0e7afa1436327
parente28531143b257a4cbfdc1c3358eff18cc3024783
net: ethernet: ti: am65-cpsw: Move mode specific config to mac_config()

Move the interface mode specific configuration to the mac_config()
callback am65_cpsw_nuss_mac_config().

Also, do not reset the MAC Control register on mac_link_down(). Only
clear those bits that can possibly be set in mac_link_up().

Let the MAC remain in IDLE state after mac_link_down(). Bring it out of
the IDLE state on mac_link_up().

Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c