diff options
| author | Jiawen Wu <jiawenwu@trustnetic.com> | 2025-11-18 16:02:58 +0800 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2025-11-20 12:47:26 +0100 |
| commit | c6e97daec549c2c01434d2978ae48b1a2f71a893 (patch) | |
| tree | 8b889b6a98bdcee173334300b46c780108e605b8 | |
| parent | 57d39faed4c942ccd611588ce0065d1516778aab (diff) | |
net: txgbe: delay to identify modules in .ndo_open
For QSFP modules, there is a possibility that the module cannot be
identified when read I2C immediately in .ndo_open. So just set the flag
WX_FLAG_NEED_MODULE_RESET and do it in the subtask, which always wait
200 ms to identify the module. And this change has no impact on the
original adaptation.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://patch.msgid.link/20251118080259.24676-5-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
| -rw-r--r-- | drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c b/drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c index 5725e9557669..3b6ea456fbf7 100644 --- a/drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c +++ b/drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c @@ -345,7 +345,8 @@ void txgbe_setup_link(struct wx *wx) phy_interface_zero(txgbe->link_interfaces); linkmode_zero(txgbe->link_support); - txgbe_identify_module(wx); + set_bit(WX_FLAG_NEED_MODULE_RESET, wx->flags); + wx_service_event_schedule(wx); } static void txgbe_get_link_state(struct phylink_config *config, |
