]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: always compare hw-version vs MVPP21
authorStefan Chulski <stefanc@marvell.com>
Thu, 11 Feb 2021 10:48:51 +0000 (12:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2021 22:50:23 +0000 (14:50 -0800)
commit2ceb700a69fcda5e77c56f2a08c3b67e814b4db9
treecdc9e4a8ecec91df0cb84a84339f971df14323d4
parent26dd7123b27c3e07fd1ec8a4eccc1e878332268f
net: mvpp2: always compare hw-version vs MVPP21

Currently we have PP2v1 and PP2v2 hw-versions, with some different
handlers depending upon condition hw_version = MVPP21/MVPP22.
In a future there will be also PP2v3. Let's use now the generic
"if equal/notEqual MVPP21" for all cases instead of "if MVPP22".

This patch does not change any functionality.
It is not intended to introduce PP2v3.
It just modifies MVPP21/MVPP22 check-condition
bringing it to generic and unified form correct for new-code
introducing and PP2v3 net-next generation.

Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Acked-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c