Patch "ARM: OMAP2+: hwmod: Fix updating of sysconfig register" has been added to the 4.5-stable tree
Subsystems (5)
This is a note to let you know that I've just added the patch titled
ARM: OMAP2+: hwmod: Fix updating of sysconfig register
to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
arm-omap2-hwmod-fix-updating-of-sysconfig-register.patch
and it can be found in the queue-4.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
3ca4a238106dedc285193ee47f494a6584b6fd2fMon Sep 17 00:00:00 2001
From: Lokesh Vutla <[email protected]>
Date: Sat, 26 Mar 2016 23:08:55 -0600
Subject: ARM: OMAP2+: hwmod: Fix updating of sysconfig register
From: Lokesh Vutla <[email protected]>
commit 3ca4a238106dedc285193ee47f494a6584b6fd2f upstream.
Commit 127500ccb766f ("ARM: OMAP2+: Only write the sysconfig on idle when necessary") talks about verification of sysconfig cache value before updating it, only during idle path. But the patch is adding the verification in the enable path. So, adding the check in a proper place as per the commit description.
Not keeping this check during enable path as there is a chance of losing context and it is safe to do on idle as the context of the register will never be lost while the device is active.
[[email protected]: appears to have been caused by my own mismerge of the
originally posted patch]
--- arch/arm/mach-omap2/omap_hwmod.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/mach-omap2/omap_hwmod.c +4 -4
@@ -1416,9 +1416,7 @@ static void _enable_sysc(struct omap_hwm (sf & SYSC_HAS_CLOCKACTIVITY))_set_clockactivity (oh, oh->class->sysc->clockact, &v); -/* If the cached value is the same as the new value, skip the write */ -if (oh->_sysc_cache != v) -_write_sysconfig (v, oh); +_write_sysconfig (v, oh);/* * Set the autoidle bit only after setting the smartidle bit
@@ -1481,7 +1479,9 @@ static void _idle_sysc(struct omap_hwmod_set_master_standbymode (oh, idlemode, &v); } -_write_sysconfig (v, oh); +/* If the cached value is the same as the new value, skip the write */ +if (oh->_sysc_cache != v) +_write_sysconfig (v, oh); }/**
Patches currently in stable-queue which might be from [email protected] are
queue-4.5/arm-omap2-hwmod-fix-updating-of-sysconfig-register.patch queue-4.5/arm-dts-am43x-epos-fix-clk-parent-for-synctimer.patch