Bug 216261

Summary: Ethernet adapter i225_LM probe fail, return -1
Product: Networking Reporter: Linjun Bao (joseph.bao)
Component: IPV4Assignee: Stephen Hemminger (stephen)
Status: NEW ---    
Severity: blocking    
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.4.y Subsystem:
Regression: No Bisected commit-id:
Attachments: This patch is based on 5.4.206, fix the i225 probe issue caused by unnecessary point check.

Description Linjun Bao 2022-07-20 01:19:08 UTC
Created attachment 301461 [details]
This patch is based on 5.4.206, fix the i225 probe issue caused by unnecessary point check.

Running kernel 5.4 with intel CPU alderlake-s and Ethernet adapter i225-LM, encounter probe failure, return err code -2. 

The root cause is that i225 devices have only one PHY vendor. There is no point checking _I_PHY_ID during the link establishment and auto-negotiation process.

Refer to the link below.   

https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git/commit/drivers/net/ethernet/intel/igc?h=dev-queue&id=7c496de538eebd8212dc2a3c9a468386b264d0d4

Attach the patch to clean up these pointless checkings.

I tried another branch 5.15.y, it fixes this issue but has another issue related to PCIe switch & nvme SSD, so I have to stay kernel 5.4.