]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: dpaa_eth: simplify dpaa_ioctl()
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 8 May 2025 12:47:53 +0000 (15:47 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 May 2025 23:40:22 +0000 (16:40 -0700)
commitc2d0b7da611a80596442f453dbf738623719521f
tree9967a14605fa043af90cb5ea70a570f7dc644e7c
parent7bf230556bfafd614b62c4242431a7a77711e99c
net: dpaa_eth: simplify dpaa_ioctl()

phylink_mii_ioctl() handles multiple ioctls in addition to just
SIOCGMIIREG: SIOCGMIIPHY, SIOCSMIIREG. Don't filter these out.

Also, phylink can handle the case where net_dev->phydev is NULL (like
optical SFP module, fixed-link). Be like other drivers and let phylink
do so without any driver-side call filtering.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Acked-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Link: https://patch.msgid.link/20250508124753.1492742-4-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c