From: Chen-Yu Tsai Date: Mon, 30 Jun 2014 16:04:59 +0000 (+0800) Subject: pinctrl: sunxi: Fix multi bank interrupt support in gpio_to_irq X-Git-Tag: cleanup-for-v3.18~87^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d3bafac658de2f8e267df805a61e597449699b5;p=pandora-kernel.git pinctrl: sunxi: Fix multi bank interrupt support in gpio_to_irq When mapping the interrupts, the gpio_to_irq function did not consider the bank number of the gpio pin in question, only the offset or the interrupt number in the bank. As a result, requests for interrupts in the later banks get mapped to the first bank. This issue was discovered while enabling mmc on the new sun8i platform. The tablet I have uses a pin/interrupt from the second bank to do mmc card detection. Tested on this very device with register inspection and actual mmc card insertion/removal. Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard Signed-off-by: Linus Walleij --- Reading git-diff-tree failed