net: qcom/emac: add ethtool support for reading hardware registers
authorTimur Tabi <timur@codeaurora.org>
Wed, 8 Feb 2017 21:49:27 +0000 (15:49 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Feb 2017 22:09:19 +0000 (17:09 -0500)
commitc4e7beea21921733026b6a1bca0652c883d84680
treea2374e3d8faaf3733e8792df1e60404418dae13a
parent15c2e102412d95af4fe88e5b28b3eba124545bbf
net: qcom/emac: add ethtool support for reading hardware registers

Implement the get_regs_len and get_regs ethtool methods.  The driver
returns the values of selected hardware registers.

The make the register offsets known to emac_ethtool, the the register
offset macros are all combined into one header file.  They were
inexplicably and arbitrarily split between two files.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac-ethtool.c
drivers/net/ethernet/qualcomm/emac/emac-mac.c
drivers/net/ethernet/qualcomm/emac/emac.h