]> 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)
commitdec26207b3932bf5e375c0afb56b12eeb97e01ad
treecdc9e4a8ecec91df0cb84a84339f971df14323d4
parent6693b43a5cbab5c45c1de65111e2f3f83a24d6ff
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