Skip to contentSkip to conversation

Added SIOCSMIIREG (mii write) support to intel igb driver

PATCH NAK Michael Moese 2 participants 2 messages Jun 22, 2017 – Jun 26, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Added SIOCSMIIREG (mii write) support to intel igb driver

From: Andreas Werner <[email protected]>

---
 drivers/net/ethernet/intel/igb/igb_main.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/ethernet/intel/igb/igb_main.c +4 -0
index 1cf74aa4ebd9..87e496eeefb1 100644
@@ -7716,6 +7716,10 @@ static int igb_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
 			return -EIO;
 		break;
 	case SIOCSMIIREG:
+		if (igb_write_phy_reg(&adapter->hw, data->reg_num & 0x1F,
+				      data->val_in))
+			return -EIO;
+		break;
 	default:
 		return -EOPNOTSUPP;
 	}
Signature · 1 line
2.12.3
#1 lore raw
Quoted 6 lines · Michael Moese

From: Andreas Werner <[email protected]>

---
?drivers/net/ethernet/intel/igb/igb_main.c | 4 ++++ ?1 file changed, 4 insertions(+)

NACK

Why? Your lack of patch description does not provide a reasoning on why we need this change. I need a patch description that provides justification on why we need this change, before I add this to my queue for testing and acceptance upstream.

Please resubmit with the requested information/change.

Quoted 16 lines
drivers/net/ethernet/intel/igb/igb_main.c +0 -0
index 1cf74aa4ebd9..87e496eeefb1 100644
@@ -7716,6 +7716,10 @@ static int igb_mii_ioctl(struct net_device
 *netdev, struct ifreq *ifr, int cmd)
 ?			return -EIO;
 ?		break;

? case SIOCSMIIREG:

drivers/net/ethernet/intel/igb/igb_main.c +1 -0
+		if (igb_write_phy_reg(&adapter->hw, data->reg_num &

0x1F,

drivers/net/ethernet/intel/igb/igb_main.c +3 -0
+				??????data->val_in))
+			return -EIO;
+		break;
Quoted 3 lines

? default:
? return -EOPNOTSUPP;
? }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20170626/1ff7d9df/attachment-0001.asc>