On Thu, Jan 04, 2024 at 04:00:32PM +0200, Vladimir Oltean wrote:
Currently the driver calls the non-OF devm_mdiobus_register() rather
than devm_of_mdiobus_register() for this case, but it seems to rather
be a confusing coincidence, and not a real use case that needs to be
supported.
If the device tree says status = "disabled" for the MDIO bus, we
shouldn't need an MDIO bus at all. Instead, just exit as early as
possible and do not call any MDIO API.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Alvin Šipraga <redacted>
---
drivers/net/dsa/qca/qca8k-8xxx.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)