Populate phy driver block for BCM54213PE
authorJonathan Lemon <jonathan.lemon@gmail.com>
Wed, 4 May 2022 21:33:05 +0000 (14:33 -0700)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:23 +0000 (11:33 +0000)
The BCM54213PE identifier is a RPI-specific addition.
Populate the remainder of the driver functions, including the
required probe routine.

Add a version of bcm54xx_suspend, from upstream.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
drivers/net/phy/broadcom.c

index caeef60..359fd88 100644 (file)
@@ -1049,8 +1049,14 @@ static struct phy_driver broadcom_drivers[] = {
        .phy_id_mask    = 0xffffffff,
        .name           = "Broadcom BCM54213PE",
        /* PHY_GBIT_FEATURES */
+       .get_sset_count = bcm_phy_get_sset_count,
+       .get_strings    = bcm_phy_get_strings,
+       .get_stats      = bcm54xx_get_stats,
+       .probe          = bcm54xx_phy_probe,
        .config_init    = bcm54xx_config_init,
        .config_intr    = bcm_phy_config_intr,
+       .suspend        = bcm54xx_suspend,
+       .resume         = bcm54xx_resume,
 }, {
        .phy_id         = PHY_ID_BCM5461,
        .phy_id_mask    = 0xfffffff0,