kernel: bump 5.10 to 5.10.122
[openwrt/openwrt.git] / target / linux / generic / backport-5.10 / 740-v5.13-0003-net-dsa-b53-relax-is63xx-condition.patch
1 From ad426d7d966b525b73ed5a1842dd830312bbba71 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>
3 Date: Wed, 17 Mar 2021 09:42:01 +0100
4 Subject: [PATCH] net: dsa: b53: relax is63xx() condition
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 BCM63xx switches are present on bcm63xx and bmips devices.
10
11 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
12 Acked-by: Florian Fainelli <f.fainelli@gmail.com>
13 Signed-off-by: David S. Miller <davem@davemloft.net>
14 ---
15 drivers/net/dsa/b53/b53_priv.h | 4 ----
16 1 file changed, 4 deletions(-)
17
18 --- a/drivers/net/dsa/b53/b53_priv.h
19 +++ b/drivers/net/dsa/b53/b53_priv.h
20 @@ -186,11 +186,7 @@ static inline int is531x5(struct b53_dev
21
22 static inline int is63xx(struct b53_device *dev)
23 {
24 -#ifdef CONFIG_BCM63XX
25 return dev->chip_id == BCM63XX_DEVICE_ID;
26 -#else
27 - return 0;
28 -#endif
29 }
30
31 static inline int is5301x(struct b53_device *dev)