On Fri, Feb 21, 2025 at 10:39:49AM +0100, Grzegorz Nitka wrote: > E82X adapters do not have sequential IDs, lane number is PF ID. > > Add check for ICE_MAC_GENERIC and skip checking port options.
This I see. > > 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 <karol.kolacin...@intel.com> > Signed-off-by: Karol Kolacinski <karol.kolacin...@intel.com> > Signed-off-by: Grzegorz Nitka <grzegorz.ni...@intel.com> > Reviewed-by: Przemek Kitszel <przemyslaw.kits...@intel.com> > Reviewed-by: Milena Olech <milena.ol...@intel.com> Reviewed-by: Simon Horman <ho...@kernel.org>