Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: axienet: Drop MDIO interrupt registers from ethtools dump

Newer revisions of the IP don't have these registers. Since we don't
really use them, just drop them from the ethtools dump.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Andre Przywara and committed by
David S. Miller
c30cb8f0 d6349e3e

-11
-7
drivers/net/ethernet/xilinx/xilinx_axienet.h
··· 165 165 #define XAE_MDIO_MCR_OFFSET 0x00000504 /* MII Management Control */ 166 166 #define XAE_MDIO_MWD_OFFSET 0x00000508 /* MII Management Write Data */ 167 167 #define XAE_MDIO_MRD_OFFSET 0x0000050C /* MII Management Read Data */ 168 - #define XAE_MDIO_MIS_OFFSET 0x00000600 /* MII Management Interrupt Status */ 169 - /* MII Mgmt Interrupt Pending register offset */ 170 - #define XAE_MDIO_MIP_OFFSET 0x00000620 171 - /* MII Management Interrupt Enable register offset */ 172 - #define XAE_MDIO_MIE_OFFSET 0x00000640 173 - /* MII Management Interrupt Clear register offset. */ 174 - #define XAE_MDIO_MIC_OFFSET 0x00000660 175 168 #define XAE_UAW0_OFFSET 0x00000700 /* Unicast address word 0 */ 176 169 #define XAE_UAW1_OFFSET 0x00000704 /* Unicast address word 1 */ 177 170 #define XAE_FMI_OFFSET 0x00000708 /* Filter Mask Index */
-4
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
··· 1258 1258 data[20] = axienet_ior(lp, XAE_MDIO_MCR_OFFSET); 1259 1259 data[21] = axienet_ior(lp, XAE_MDIO_MWD_OFFSET); 1260 1260 data[22] = axienet_ior(lp, XAE_MDIO_MRD_OFFSET); 1261 - data[23] = axienet_ior(lp, XAE_MDIO_MIS_OFFSET); 1262 - data[24] = axienet_ior(lp, XAE_MDIO_MIP_OFFSET); 1263 - data[25] = axienet_ior(lp, XAE_MDIO_MIE_OFFSET); 1264 - data[26] = axienet_ior(lp, XAE_MDIO_MIC_OFFSET); 1265 1261 data[27] = axienet_ior(lp, XAE_UAW0_OFFSET); 1266 1262 data[28] = axienet_ior(lp, XAE_UAW1_OFFSET); 1267 1263 data[29] = axienet_ior(lp, XAE_FMI_OFFSET);