ARM: OMAP3: hwmod data: set sw control flag on dss hwmods
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 27 May 2016 23:48:17 +0000 (02:48 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 3 Jul 2016 00:23:25 +0000 (03:23 +0300)
commit880b242a2b42f1706cbaec98848efa3d0f5a9b3e
tree94ea1dba8b61d2d5ad9e31d66ddc1032ceebbc97
parent40d3e984595c7bd2557e232d86fbfb4ddb96d370
ARM: OMAP3: hwmod data: set sw control flag on dss hwmods

Without this hwmod's _setup() enables interface clock and leaves it on
forever supposedly for hw autoidle to manage. However this causes
clockdomain's reference counter to never return to zero and
omap3xxx_clkdm_clk_disable() never gets called to remove autoteps to
MPU, which means DSS ends up needlessly transitioning alog with the CPU.

This hack avoids such switching. It also makes context loss counter work
without need to call pwrdm_{pre,post}_transition on all power domains in
omap_sram_idle() as it's taken care by clkdm enable/disable.

Could not measure any power usage differences though.
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c