From: Colin Foster Date: Fri, 17 Mar 2023 18:54:12 +0000 (-0700) Subject: net: dsa: felix: attempt to initialize internal hsio plls X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3821fd0107b09966a0b8ef0b2de3e999ba534266;p=linux.git net: dsa: felix: attempt to initialize internal hsio plls The VSC7512 and VSC7514 have internal PLLs that can be used to control different peripherals. Initialize these high speed I/O (HSIO) PLLs when they exist, so that dependent peripherals like QSGMII can function. Signed-off-by: Colin Foster Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c index d4cc9e60f369f..21dcb9cadc12c 100644 --- a/drivers/net/dsa/ocelot/felix.c +++ b/drivers/net/dsa/ocelot/felix.c @@ -1555,6 +1555,9 @@ static int felix_setup(struct dsa_switch *ds) if (err) return err; + if (ocelot->targets[HSIO]) + ocelot_pll5_init(ocelot); + err = ocelot_init(ocelot); if (err) goto out_mdiobus_free;