linux/drivers/usb/otg
Shinya Kuribayashi 123bbceebe USB: gpio_vbus: use cached IRQ number for consistency with the probed one
gpio_vbus is designed to be able to get an IRQ number for VBUS change
interrupt either (1) through platform_get_resource(IORESOURCE_IRQ) or
(2) by processing gpio_to_irq(pdata->gpio_vbus), in probe() function.

On the other hand, gpio_vbus_set_peripheral() and gpio_vbus_remove()
are always doing gpio_to_irq(pdata->gpio_vbus) to get an IRQ number.

This is not just inconsistent, but also broken.  There is no guarantee
that an IRQ number obtained by platform_get_resource() is equal to
gpio_to_irq(pdata->gpio_vbus).

Cache an IRQ number in probe() function, and use it where necessary.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-05-17 11:20:34 -07:00
..
ab8500-usb.c usb: otg: ab8500-usb: make probe() work again 2012-03-02 16:22:11 -08:00
fsl_otg.c usb: otg: fsl: Start using struct usb_otg 2012-02-13 13:35:25 +02:00
fsl_otg.h usb: otg: fsl: Start using struct usb_otg 2012-02-13 13:35:25 +02:00
gpio_vbus.c USB: gpio_vbus: use cached IRQ number for consistency with the probed one 2012-05-17 11:20:34 -07:00
isp1301_omap.c usb: otg: isp1301_omap: Start using struct usb_otg 2012-02-13 13:35:34 +02:00
Kconfig Here we have a big rework done by Heikki Krogerus (thanks) which 2012-03-01 08:45:33 -08:00
Makefile usb: otg: kill langwell_otg driver 2012-01-24 15:41:51 +02:00
msm_otg.c usb: otg: msm: Start using struct usb_otg 2012-02-13 13:35:38 +02:00
mv_otg.c usb: otg: mv_otg: Start using struct usb_otg 2012-02-27 15:41:22 +02:00
mv_otg.h usb: otg: mv_otg: Start using struct usb_otg 2012-02-27 15:41:22 +02:00
nop-usb-xceiv.c usb: otg: nop: Start using struct usb_otg 2012-02-13 13:35:41 +02:00
otg_fsm.c usb: otg: fsl: Start using struct usb_otg 2012-02-13 13:35:25 +02:00
otg_fsm.h usb: otg: fsl: Start using struct usb_otg 2012-02-13 13:35:25 +02:00
otg.c usb: otg: Separate otg members from usb_phy 2012-02-13 13:35:06 +02:00
twl4030-usb.c usb: otg: twl4030: Start using struct usb_otg 2012-02-13 13:35:46 +02:00
twl6030-usb.c USB: twl6030-usb: pass IRQF_ONESHOT to request_threaded_irq 2012-05-17 09:49:23 -07:00
ulpi_viewport.c usb: otg: ulpi: Start using struct usb_otg 2012-02-13 13:35:56 +02:00
ulpi.c usb: otg: ulpi: Start using struct usb_otg 2012-02-13 13:35:56 +02:00