]> git.baikalelectronics.ru Git - kernel.git/commit
net: xilinx: emaclite: add minimal ndo_do_ioctl hook
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 8 Apr 2019 09:01:57 +0000 (12:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 17:00:10 +0000 (10:00 -0700)
commitc94e28d89b3d2a5d9393ad6e613e161a63af78d4
tree45b8fc03bb468baa73291a00a94d4e0ea8e7fc3f
parente4e2752e06f2a4f97531e73f342cce1e184643f2
net: xilinx: emaclite: add minimal ndo_do_ioctl hook

This hook only implements a minimal set of ioctl hooks to be able to access
MII regs by using phytool.
When using this simple MAC controller, it's pretty difficult to do
debugging of the PHY chip without checking MII regs.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_emaclite.c