kernel: bump 6.1 to 6.1.47
[openwrt/staging/neocturne.git] / target / linux / bcm27xx / patches-6.1 / 950-0427-Populate-phy-driver-block-for-BCM54213PE.patch
1 From 437be8fec1433d9b023f34af8e4ac2dbe3a113f9 Mon Sep 17 00:00:00 2001
2 From: Jonathan Lemon <jonathan.lemon@gmail.com>
3 Date: Wed, 4 May 2022 14:33:05 -0700
4 Subject: [PATCH] Populate phy driver block for BCM54213PE
5
6 The BCM54213PE identifier is a RPI-specific addition.
7 Populate the remainder of the driver functions, including the
8 required probe routine.
9
10 Add a version of bcm54xx_suspend, from upstream.
11
12 Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
13 ---
14 drivers/net/phy/broadcom.c | 6 ++++++
15 1 file changed, 6 insertions(+)
16
17 --- a/drivers/net/phy/broadcom.c
18 +++ b/drivers/net/phy/broadcom.c
19 @@ -932,8 +932,14 @@ static struct phy_driver broadcom_driver
20 .phy_id_mask = 0xffffffff,
21 .name = "Broadcom BCM54213PE",
22 /* PHY_GBIT_FEATURES */
23 + .get_sset_count = bcm_phy_get_sset_count,
24 + .get_strings = bcm_phy_get_strings,
25 + .get_stats = bcm54xx_get_stats,
26 + .probe = bcm54xx_phy_probe,
27 .config_init = bcm54xx_config_init,
28 .config_intr = bcm_phy_config_intr,
29 + .suspend = bcm54xx_suspend,
30 + .resume = bcm54xx_resume,
31 }, {
32 .phy_id = PHY_ID_BCM5461,
33 .phy_id_mask = 0xfffffff0,