From: Barry Song Date: Sat, 11 Jan 2014 08:48:43 +0000 (+0800) Subject: pinctrl: sirf: put gpio interrupt pin into input status automatically X-Git-Tag: v3.14-rc1~144^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b07ddcdcb28764d4deb26933d803cb38c370f01b;p=pandora-kernel.git pinctrl: sirf: put gpio interrupt pin into input status automatically busses like i2c, spi and so on can parse the virq of their subnode automatically by irq_of_parse_and_map(). for example, i2c will do that in of_i2c_register_devices(). people can put hwirq number attached to a gpio controller in dts, and drivers can directly request the parsed virq. for example, for an i2c client as below, tangoc-ts@5c{ compatible = "pixcir,tangoc-ts"; interrupt-parent = <&gpio>; interrupts = <3 0>; reg = <0x5c>; }; in i2c client probe(), it will request_irq(client->irq, ...) without calling gpio_direction_input(). so here when we set irq type, we also put the pin to input direction. Signed-off-by: Barry Song Signed-off-by: Linus Walleij --- Reading git-diff-tree failed