> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of > Grzegorz Nitka > Sent: 21 February 2025 15:10 > To: [email protected] > Cc: [email protected]; Kolacinski, Karol <[email protected]>; > Olech, Milena <[email protected]>; Kitszel, Przemyslaw > <[email protected]> > Subject: [Intel-wired-lan] [PATCH iwl-net v1] ice: fix lane number calculation > > E82X adapters do not have sequential IDs, lane number is PF ID. > > Add check for ICE_MAC_GENERIC and skip checking port options. > > Also, adjust logical port number for specific E825 device with external PHY > support (PCI device id 0x579F). For this particular device, with 2x25G (PHY0) > and 2x10G (PHY1) port configuration, modification of pf_id -> lane_number > mapping is required. PF IDs on the 2nd PHY start from 4 in such scenario. > Otherwise, the lane number cannot be determined correctly, leading to PTP > init errors during PF initialization. > > Fixes: 258f5f9058159 ("ice: Add correct PHY lane assignment") > Co-developed-by: Karol Kolacinski <[email protected]> > Signed-off-by: Karol Kolacinski <[email protected]> > Signed-off-by: Grzegorz Nitka <[email protected]> > Reviewed-by: Przemek Kitszel <[email protected]> > Reviewed-by: Milena Olech <[email protected]> > --- > drivers/net/ethernet/intel/ice/ice_common.c | 9 +++++++++ > 1 file changed, 9 insertions(+) >
Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)
