From: Sonny Rao Date: Fri, 1 Aug 2014 05:58:00 +0000 (-0700) Subject: pinctrl: rockchip: fix rk3288 gpio0 configuration X-Git-Tag: omap-fixes-against-v3.17-rc3~35^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e872d953fb4484029c12dce909f514ae095d8d;p=pandora-kernel.git pinctrl: rockchip: fix rk3288 gpio0 configuration On rk3288, for gpio bank 0, the registers which configure pull-up, iomux, and drive strength don't implement the enable bits in the upper half of the register, unlike the other gpio configuration registers, and so the kernel must perform a read-modify-write of the register to update a particular gpio in that bank. The current code is actually clobbering the contents of the register, so this fixes it by using regmap_update_bits and masking out only the bits which require updating. In the case of bank0 on rk3288 the upper enable bits will just get ignored, and the other configurations won't get clobbered. Signed-off-by: Sonny Rao Reviewed-by: Heiko Stuebner Reviewed-by: Doug Anderson Signed-off-by: Linus Walleij --- Reading git-diff-tree failed