]> asedeno.scripts.mit.edu Git - linux.git/commit
net: netcp: ethss: use macro for checking ss_version consistently
authorMurali Karicheri <m-karicheri2@ti.com>
Tue, 17 Apr 2018 21:30:32 +0000 (17:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 01:00:56 +0000 (21:00 -0400)
commit2953586df76e76ec2e62ed05897c1d242c06874d
tree6401718b2914f7738750240be0601ca1eacb459a
parenta2dd6877b43ef14129f258910d60b2e81b32100b
net: netcp: ethss: use macro for checking ss_version consistently

Driver currently uses macro for NU and XBE hardwrae, while other
places for older hardware such as that on K2H/K SoC (version 1.4
of the cpsw hardware, it explicitly check for the ss_version
inline. Add a new macro for version 1.4 and use it to customize
code in the driver. While at it also fix similar issue with
checking XBE version by re-using existing macro IS_SS_ID_XGBE().

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_ethss.c