diff options
author | Tarun Kanti DebBarma <tarun.kanti@ti.com> | 2011-03-03 16:22:46 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2011-03-10 05:23:55 -0500 |
commit | 8985b63d072413f0446fd2d0d654795f2d683323 (patch) | |
tree | c17ab03d6f753808c03b6ad9583ffaf96afb61b7 /arch/arm/mach-omap2/omap_hwmod.c | |
parent | dd9c1549edef02290edced639f67b54a25abbe0e (diff) |
OMAP2+: hwmod: fix incorrect computation of autoidle_mask
Autoidle is a single bit, TIOCP_CFG[0], setting on OMAP1/2/3/4 platforms.
In _set_module_autoidle() I am seeing 0x3 value where the mask is computed.
This should be 0x1.
v2:
(1) Modified the subject.
(2) Modified the description with further specific information.
Baseline:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Tested Info:
Boot tested on OMAP 1/2/3/4.
Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Acked-by: Rajendra Nayak <rnayak@ti.com>
Acked-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index e282e35769fd..b18c36b1060f 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -373,7 +373,7 @@ static int _set_module_autoidle(struct omap_hwmod *oh, u8 autoidle, | |||
373 | } | 373 | } |
374 | 374 | ||
375 | autoidle_shift = oh->class->sysc->sysc_fields->autoidle_shift; | 375 | autoidle_shift = oh->class->sysc->sysc_fields->autoidle_shift; |
376 | autoidle_mask = (0x3 << autoidle_shift); | 376 | autoidle_mask = (0x1 << autoidle_shift); |
377 | 377 | ||
378 | *v &= ~autoidle_mask; | 378 | *v &= ~autoidle_mask; |
379 | *v |= autoidle << autoidle_shift; | 379 | *v |= autoidle << autoidle_shift; |