]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 23 Feb 2017 20:29:34 +0000 (14:29 -0600)
commitb4d9a7b38a5341a9dfe973b3c53aa7a755b2ac6e
treeeb67473aea5a72b39ff5912085022973f27291aa
parente84c8031a6350e3eab355d1413e213132ca2720b
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>
(cherry picked from commit c4e7beea21921733026b6a1bca0652c883d84680)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/qualcomm/emac/emac-ethtool.c
drivers/net/ethernet/qualcomm/emac/emac-mac.c
drivers/net/ethernet/qualcomm/emac/emac.h