]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/langwell_gpio: ack the correct bit for langwell gpio interrupts
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 8 Jul 2011 09:02:18 +0000 (10:02 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 8 Jul 2011 15:32:01 +0000 (09:32 -0600)
commit6e3ee664ceb51dd923cb93ace077b09a0a08dbf0
treefd0ed3845b64d9972abb332f4c39d20c5b5a1536
parentcf42114ffbd3da5fd572e9aa85ca359de9dfdf05
gpio/langwell_gpio: ack the correct bit for langwell gpio interrupts

The wrong bit was masked when acking langwell gpio interrupts.

Reason for maskig the wrong bit was probably because__ffs() and ffs() functions
return bit indexes differently (0..31 vs 1..32)

This fixes langwell based devices from hanging when a gpio interrupt is
triggered and undoes the breakage which occurred in change set
4c875801385f60040a57ba6e20a12b4bcb233406

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/langwell_gpio.c