net: arc_emac: Add support for ndo_do_ioctl net_device_ops operation
authorRomain Perier <romain.perier@collabora.com>
Thu, 3 Aug 2017 07:49:03 +0000 (09:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 22:14:34 +0000 (15:14 -0700)
commite11e8729fafd3dc49397c28f320ac3b2d483abbc
tree67f118ce34cfd513cd5519509451c82659fdfc81
parentf4b2a42073fb9b51366e379b6d79e2d1290fcb75
net: arc_emac: Add support for ndo_do_ioctl net_device_ops operation

This operation is required for handling ioctl commands like SIOCGMIIREG,
when debugging MDIO registers from userspace.

This commit adds support for this operation.

Signed-off-by: Romain Perier <romain.perier@collabora.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac_main.c