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

Configure Feed

Select the types of activity you want to include in your feed.

net: ethernet: ti: cpsw_ale: Remove obsolete macros

- ALE_VERSION_MAJOR/MINOR are no longer used following the transition to
regmaps in commit bbfc7e2b9ebe ("net: ethernet: ti: cpsw_ale: use
regfields for ALE registers")
- ALE_VERSION_IR3 is unused since entry mask bits are no longer
hardcoded with commit b5d31f294027 ("net: ethernet: ti: ale: optimize
ale entry mask bits configuartion")
- ALE_VERSION_IR4 has never been used since its introduction in commit
ca47130a744b ("net: netcp: ale: update to support unknown vlan
controls for NU switch")

Signed-off-by: Stefan Wiehler <stefan.wiehler@nokia.com>
Link: https://patch.msgid.link/20260114144425.3973272-1-stefan.wiehler@nokia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Stefan Wiehler and committed by
Jakub Kicinski
799759e6 2a85541d

-5
-5
drivers/net/ethernet/ti/cpsw_ale.c
··· 23 23 24 24 #define BITMASK(bits) (BIT(bits) - 1) 25 25 26 - #define ALE_VERSION_MAJOR(rev, mask) (((rev) >> 8) & (mask)) 27 - #define ALE_VERSION_MINOR(rev) (rev & 0xff) 28 - #define ALE_VERSION_1R3 0x0103 29 - #define ALE_VERSION_1R4 0x0104 30 - 31 26 /* ALE Registers */ 32 27 #define ALE_IDVER 0x00 33 28 #define ALE_STATUS 0x04