Re: [PATCH] phy: phy-sun4i-usb: Fix optional gpios failing probe

2016-06-17 Thread Kishon Vijay Abraham I
On Monday 13 June 2016 05:15 PM, Quentin Schulz wrote: > The interrupt 0 is not a valid interrupt number. In the event where the > retrieval of the vbus-det gpio would return null, the gpiod_to_irq > callback would return 0, while the current code makes the assumption > that it is a valid

Re: [PATCH] phy: phy-sun4i-usb: Fix optional gpios failing probe

2016-06-17 Thread Kishon Vijay Abraham I
On Monday 13 June 2016 05:15 PM, Quentin Schulz wrote: > The interrupt 0 is not a valid interrupt number. In the event where the > retrieval of the vbus-det gpio would return null, the gpiod_to_irq > callback would return 0, while the current code makes the assumption > that it is a valid

[PATCH] phy: phy-sun4i-usb: Fix optional gpios failing probe

2016-06-13 Thread Quentin Schulz
The interrupt 0 is not a valid interrupt number. In the event where the retrieval of the vbus-det gpio would return null, the gpiod_to_irq callback would return 0, while the current code makes the assumption that it is a valid interrupt, and would go on calling request_irq. Obviously, this would

[PATCH] phy: phy-sun4i-usb: Fix optional gpios failing probe

2016-06-13 Thread Quentin Schulz
The interrupt 0 is not a valid interrupt number. In the event where the retrieval of the vbus-det gpio would return null, the gpiod_to_irq callback would return 0, while the current code makes the assumption that it is a valid interrupt, and would go on calling request_irq. Obviously, this would