]> www.infradead.org Git - users/hch/misc.git/commit
net: ethernet: sunplus: Switch to ndo_eth_ioctl
author谢致邦 (XIE Zhibang) <Yeking@Red54.com>
Mon, 13 Jan 2025 09:41:56 +0000 (09:41 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Jan 2025 02:09:04 +0000 (18:09 -0800)
commit5b4c2fdf72f3b47dce9208473c8f52086a0c2d26
tree786cb0b70e870d72e5e34cfe557025e032e418af
parent8e178ae00566235f9bc5b0fa6fef80319078123d
net: ethernet: sunplus: Switch to ndo_eth_ioctl

The device ioctl handler no longer calls ndo_do_ioctl, but calls
ndo_eth_ioctl to handle mii ioctls since commit a76053707dbf
("dev_ioctl: split out ndo_eth_ioctl"). However, sunplus still used
ndo_do_ioctl when it was introduced. So switch to ndo_eth_ioctl.

Bad commit fd3040b9394c ("net: ethernet: Add driver for Sunplus SP7021")
was the initial driver commit, meaning that PHY IOCTLs where never
available on this driver. Therefore don't consider this as a fix.

Found by code inspection.

Signed-off-by: 谢致邦 (XIE Zhibang) <Yeking@Red54.com>
Link: https://patch.msgid.link/tencent_8CF8A72C708E96B9C7DC1AF96FEE19AF3D05@qq.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sunplus/spl2sw_driver.c