]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: GPMC: fix device size setup
authorYegor Yefremov <yegor_sub1@visionsystems.de>
Mon, 23 Jan 2012 07:32:23 +0000 (08:32 +0100)
committerTony Lindgren <tony@atomide.com>
Thu, 26 Jan 2012 23:30:30 +0000 (15:30 -0800)
commit42d2d49d2522d1dffe93163f57dd05eb4981e344
tree3ff62f33654275913f0d7d59336f64c72bb65ee9
parent02dcd5ee92e42cfc3b51d50add05543c7f30e554
ARM: OMAP2+: GPMC: fix device size setup

following statement can only change device size from 8-bit(0) to 16-bit(1),
but not vice versa:

regval |= GPMC_CONFIG1_DEVICESIZE(wval);

so as this field has 1 reserved bit, that could be used in future,
just clear both bits and then OR with the desired value

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c