net: phylink: add debug print for empty posssible_interfaces
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sun, 28 Apr 2024 14:51:02 +0000 (15:51 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Apr 2024 13:20:32 +0000 (15:20 +0200)
Add a debugging print in phylink_validate_phy() when we detect that the
PHY has not supplied a possible_interfaces bitmap.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://lore.kernel.org/r/E1s15rq-00AHye-22@rmk-PC.armlinux.org.uk
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/phylink.c

index 0e692a3bcf1aa99836179a43f2d7d99520fde60b..b7e5c669dc8ef13b7d44f8574d600c5981a2b1a3 100644 (file)
@@ -1838,6 +1838,9 @@ static int phylink_validate_phy(struct phylink *pl, struct phy_device *phy,
                                             interfaces);
        }
 
+       phylink_dbg(pl, "PHY %s doesn't supply possible interfaces\n",
+                   phydev_name(phy));
+
        /* Check whether we would use rate matching for the proposed interface
         * mode.
         */