Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

igb: Add MII write support

To facilitate running PHY parametric tests, add support for the SIOCSMIIREG
ioctl. This allows a userspace application to write to the PHY registers
to enable the test modes.

Signed-off-by: Jackie Jone <jackie.jone@alliedtelesis.co.nz>
Acked-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20240618213330.982046-1-anthony.l.nguyen@intel.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Jackie Jone and committed by
Paolo Abeni
a012f9a7 e3511997

+4
+4
drivers/net/ethernet/intel/igb/igb_main.c
··· 9139 9139 return -EIO; 9140 9140 break; 9141 9141 case SIOCSMIIREG: 9142 + if (igb_write_phy_reg(&adapter->hw, data->reg_num & 0x1F, 9143 + data->val_in)) 9144 + return -EIO; 9145 + break; 9142 9146 default: 9143 9147 return -EOPNOTSUPP; 9144 9148 }