]> bbs.cooldavid.org Git - net-next-2.6.git/commit
Blackfin: portmux: fix peripheral map overflow when requesting pins
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 13 Jul 2010 08:26:10 +0000 (08:26 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 6 Aug 2010 16:55:53 +0000 (12:55 -0400)
commit382dbe5b39a4efa6fdb3e5093e5d0bdbb5c5301f
tree083a8ed9275e2f30048ff325f9a22d3c342e37c2
parent3322c7bbf60801da2a22d7bd88865d2dc3bd73ac
Blackfin: portmux: fix peripheral map overflow when requesting pins

Some processors have groups of pins that aren't an even number of 16.
This causes the array size calculation to under count the number of
needed entries due to integer truncation.  So on the BF51x, while we
should have 3 bitmaps (41 / 16), we end up with 2 and pin requests for
the 3rd bank end up scribbling over the top of the GPIO IRQ array.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/bfin_gpio.c