net: txgbe: change LAN reset mode
authorJiawen Wu <jiawenwu@trustnetic.com>
Mon, 17 Jul 2023 02:13:33 +0000 (10:13 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 19 Jul 2023 00:45:09 +0000 (17:45 -0700)
commit9843814fc651d590cc5a82488c644ccf70975f16
treee04b52fce4dbe07f97c8fa8ae4fec9fec2138355
parent3645c71b582b29e288598bc8e08c284ba5d2c94b
net: txgbe: change LAN reset mode

The old way to do LAN reset is sending reset command to firmware. Once
firmware performs reset, it reconfigures what it needs.

In the new firmware versions, veto bit is introduced for NCSI/LLDP to
block PHY domain in LAN reset. At this point, writing register of LAN
reset directly makes the same effect as the old way. And it does not
reset MNG domain, so that veto bit does not change.

Since veto bit was never used, the old firmware is compatible with the
driver before and after this change. The new firmware needs to use with
the driver after this change if it wants to implement the new feature,
otherwise it is the same as the old firmware.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20230717021333.94181-1-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/libwx/wx_hw.c
drivers/net/ethernet/wangxun/libwx/wx_hw.h
drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c