android_kernel_xiaomi_sdm845/arch/blackfin
Michael Hennerich a2be393114 Blackfin arch: reset POLAR setting when acquiring a gpio for the first time
when requesting a GPIO for the first time, the POLAR setting is not
set to a sane state.  this can lead to indeterminate behavior that
cannot be resolved without an explicit write to the Blackfin port POLAR
register.

when requesting a GPIO for the first time via gpio_request(), the POLAR
setting for the GPIO in question should be set to sane state.  this
should occur if the GPIO has not been allocated in any other way.

some examples:
 - when doing something like "request_irq(); gpio_request();" on the
   same GPIO, the POLAR setting should not be reset.
 - when doing "gpio_request(); gpio_request();" on the same GPIO, the
   POLAR setting should be reset only the first time and not the second.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
2009-02-04 16:49:45 +08:00
..
boot kbuild: use KECHO convenience echo 2008-12-03 21:32:01 +01:00
configs Blackfin arch: enable bfin_eth in bf51x by default 2009-02-04 16:49:45 +08:00
include/asm Blackfin arch: Fix Bug - Kernel does not boot if re-program clocks 2009-02-04 16:49:45 +08:00
kernel Blackfin arch: reset POLAR setting when acquiring a gpio for the first time 2009-02-04 16:49:45 +08:00
lib Blackfin arch: merge adeos blackfin part to arch/blackfin/ 2009-01-07 23:14:39 +08:00
mach-bf518 Blackfin arch: add SDIO host driver platform data 2009-01-07 23:14:38 +08:00
mach-bf527 Blackfin arch: fix bug - BF527 0.2 silicon has different CPUID (DSPID) value 2009-01-07 23:14:39 +08:00
mach-bf533 Blackfin arch: Enlarge flash partition for kenel for bf533/bf537 boards 2009-01-07 23:14:38 +08:00
mach-bf537 Blackfin arch: Enlarge flash partition for kenel for bf533/bf537 boards 2009-01-07 23:14:38 +08:00
mach-bf538 Blackfin arch: merge adeos blackfin part to arch/blackfin/ 2009-01-07 23:14:39 +08:00
mach-bf548 Blackfin arch: add support for mobile ddr bf54x parts 2009-02-04 16:49:45 +08:00
mach-bf561 Blackfin arch: merge adeos blackfin part to arch/blackfin/ 2009-01-07 23:14:39 +08:00
mach-common Blackfin arch: Fix Bug - Kernel does not boot if re-program clocks 2009-02-04 16:49:45 +08:00
mm Blackfin arch: Faster C implementation of no-MPU CPLB handler 2009-01-07 23:14:38 +08:00
oprofile Blackfin arch: remove hardware PM code, oprofile not use it 2009-01-07 23:14:39 +08:00
Kconfig Blackfin arch: add support for mobile ddr bf54x parts 2009-02-04 16:49:45 +08:00
Kconfig.debug Blackfin arch: change HWTRACE Kconfig and set it on default 2009-01-07 23:14:38 +08:00
Makefile Blackfin arch: line up machine-/cpu- vars after BF54xM addition 2009-02-04 16:49:45 +08:00