Skip to content

Commit 08b91dd

Browse files
committed
bus: ti-sysc: Ignore clockactivity unless specified as a quirk
We must ignore the clockactivity bit for most modules and not set it unless specified for the module with SYSC_QUIRK_USE_CLOCKACT. Otherwise the interface clock can be automatically gated constantly causing unexpected performance issues. Fixes: ae9ae12 ("bus: ti-sysc: Handle clockactivity for enable and disable") Cc: Laurent Pinchart <[email protected]> Cc: Tomi Valkeinen <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent d46f9fb commit 08b91dd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

drivers/bus/ti-sysc.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -988,10 +988,13 @@ static int sysc_enable_module(struct device *dev)
988988
regbits = ddata->cap->regbits;
989989
reg = sysc_read(ddata, ddata->offsets[SYSC_SYSCONFIG]);
990990

991-
/* Set CLOCKACTIVITY, we only use it for ick */
991+
/*
992+
* Set CLOCKACTIVITY, we only use it for ick. And we only configure it
993+
* based on the SYSC_QUIRK_USE_CLOCKACT flag, not based on the hardware
994+
* capabilities. See the old HWMOD_SET_DEFAULT_CLOCKACT flag.
995+
*/
992996
if (regbits->clkact_shift >= 0 &&
993-
(ddata->cfg.quirks & SYSC_QUIRK_USE_CLOCKACT ||
994-
ddata->cfg.sysc_val & BIT(regbits->clkact_shift)))
997+
(ddata->cfg.quirks & SYSC_QUIRK_USE_CLOCKACT))
995998
reg |= SYSC_CLOCACT_ICK << regbits->clkact_shift;
996999

9971000
/* Set SIDLE mode */

0 commit comments

Comments
 (0)