linux/drivers/net/dsa/ocelot
Vladimir Oltean 009d30f1a7 net: mscc: ocelot: extend ocelot->fwd_domain_lock to cover ocelot->tas_lock
In a future commit we will have to call vsc9959_tas_guard_bands_update()
from ocelot_port_update_active_preemptible_tcs(), and that will be
impossible due to the AB/BA locking dependencies between
ocelot->tas_lock and ocelot->fwd_domain_lock.

Just like we did in commit 3ff468ef98 ("net: mscc: ocelot: remove
struct ocelot_mm_state :: lock"), the only solution is to expand the
scope of ocelot->fwd_domain_lock for it to also serialize changes made
to the Time-Aware Shaper, because those will have to result in a
recalculation of cut-through TCs, which is something that depends on the
forwarding domain.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Message-ID: <20230705104422.49025-2-vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-07-06 19:10:22 -07:00
..
felix.c net: mscc: ocelot: extend ocelot->fwd_domain_lock to cover ocelot->tas_lock 2023-07-06 19:10:22 -07:00
felix.h net: dsa: felix: allow serdes configuration for dsa ports 2023-03-20 09:08:48 +00:00
felix_vsc9959.c net: mscc: ocelot: extend ocelot->fwd_domain_lock to cover ocelot->tas_lock 2023-07-06 19:10:22 -07:00
Kconfig net: dsa: ocelot: fix selecting MFD_OCELOT 2023-02-16 13:03:15 +01:00
Makefile net: dsa: ocelot: add external ocelot switch control 2023-01-30 21:07:21 -08:00
ocelot_ext.c net: dsa: ocelot: add support for external phys 2023-03-20 09:08:48 +00:00
seville_vsc9953.c net: dsa: ocelot: use lynx_pcs_create_mdiodev() 2023-05-29 21:46:53 -07:00