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)
commitfcf9782573eccb6a9a79140ff221898c02923fd0
tree45b8fc03bb468baa73291a00a94d4e0ea8e7fc3f
parent9a80ba067a9c6435a142d0afd6c369091c0ff990
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