Thread (2 messages) 2 messages, 2 authors, 2026-02-24

Re: [PATCH net-next v3] net: atlantic: fix reading SFP module info on some AQC100 cards

From: Paolo Abeni <pabeni@redhat.com>
Date: 2026-02-24 12:06:41
Also in: lkml

On 2/23/26 1:41 AM, Tiernan Hubble wrote:
quoted hunk ↗ jump to hunk
@@ -992,15 +1024,15 @@ static int aq_ethtool_get_module_info(struct net_device *ndev,
 
 	/* Module EEPROM is only supported for controllers with external PHY */
 	if (aq_nic->aq_nic_cfg.aq_hw_caps->media_type != AQ_HW_MEDIA_TYPE_FIBRE ||
-	    !aq_nic->aq_hw_ops->hw_read_module_eeprom)
+	    !aq_ethtool_can_read_module_eeprom(aq_nic))
 		return -EOPNOTSUPP;
 
-	err = aq_nic->aq_hw_ops->hw_read_module_eeprom(aq_nic->aq_hw,
+	err = aq_ethtool_read_module_eeprom(aq_nic,
 		SFF_8472_ID_ADDR, SFF_8472_COMP_ADDR, 1, &compliance_val);
I'm sorry for nit picking, but here and later this leads a quite bad
indentation. You should reformat the whole argument list according to
the kernel coding style, i.e.
	
	err = aq_ethtool_read_module_eeprom(aq_nic, SFF_8472_ID_ADDR,
				            SFF_8472_COMP_ADDR, 1,
					    &compliance_val);

/P
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help