* [PATCH v2] net/ibm/emac: bump version numbers for correct work with ethtool
@ 2015-09-25 7:52 Ivan Mikhaylov
2015-09-29 5:23 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Mikhaylov @ 2015-09-25 7:52 UTC (permalink / raw)
To: netdev, linux-kernel, David S. Miller, Ben Hutchings
The size of the MAC register dump used to be the size specified by the
reg property in the device tree. Userland has no good way of finding
out that size, and it was not specified consistently for each MAC type,
so ethtool would end up printing junk at the end of the register dump
if the device tree didn't match the size it assumed.
Using the new version numbers indicates unambiguously that the size of
the MAC register dump is dependent only on the MAC type.
Fixes: 5369c71f7ca2 ("net/ibm/emac: fix size of emac dump memory areas")
Signed-off-by: Ivan Mikhaylov <ivan@ru.ibm.com>
---
drivers/net/ethernet/ibm/emac/core.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/ibm/emac/core.h b/drivers/net/ethernet/ibm/emac/core.h
index 28df374..ac02c67 100644
--- a/drivers/net/ethernet/ibm/emac/core.h
+++ b/drivers/net/ethernet/ibm/emac/core.h
@@ -460,8 +460,8 @@ struct emac_ethtool_regs_subhdr {
u32 index;
};
-#define EMAC_ETHTOOL_REGS_VER 0
-#define EMAC4_ETHTOOL_REGS_VER 1
-#define EMAC4SYNC_ETHTOOL_REGS_VER 2
+#define EMAC_ETHTOOL_REGS_VER 3
+#define EMAC4_ETHTOOL_REGS_VER 4
+#define EMAC4SYNC_ETHTOOL_REGS_VER 5
#endif /* __IBM_NEWEMAC_CORE_H */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] net/ibm/emac: bump version numbers for correct work with ethtool
2015-09-25 7:52 [PATCH v2] net/ibm/emac: bump version numbers for correct work with ethtool Ivan Mikhaylov
@ 2015-09-29 5:23 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-09-29 5:23 UTC (permalink / raw)
To: ivan; +Cc: netdev, linux-kernel, ben
From: Ivan Mikhaylov <ivan@ru.ibm.com>
Date: Fri, 25 Sep 2015 11:52:27 +0400
> The size of the MAC register dump used to be the size specified by the
> reg property in the device tree. Userland has no good way of finding
> out that size, and it was not specified consistently for each MAC type,
> so ethtool would end up printing junk at the end of the register dump
> if the device tree didn't match the size it assumed.
>
> Using the new version numbers indicates unambiguously that the size of
> the MAC register dump is dependent only on the MAC type.
>
> Fixes: 5369c71f7ca2 ("net/ibm/emac: fix size of emac dump memory areas")
>
> Signed-off-by: Ivan Mikhaylov <ivan@ru.ibm.com>
Applied and queued up for -stable.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-29 5:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-25 7:52 [PATCH v2] net/ibm/emac: bump version numbers for correct work with ethtool Ivan Mikhaylov
2015-09-29 5:23 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).