If platform_get_irq() returns IRQ0 (considered invalid according to Linus)
the driver blithely passes it to usb_add_hcd() that treats IRQ0 as no IRQ
at all. Deny IRQ0 right away, returning -EINVAL from the probe() method...
Fixes: 0cbd4b34cda9 ("xhci: mediatek: support MTK xHCI host controller")
Signed-off-by: Sergey Shtylyov <redacted>
---
drivers/usb/host/xhci-mtk.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
On Tue, 2021-10-26 at 20:39 +0300, Sergey Shtylyov wrote:
quoted hunk
If platform_get_irq() returns IRQ0 (considered invalid according to
Linus)
the driver blithely passes it to usb_add_hcd() that treats IRQ0 as no
IRQ
at all. Deny IRQ0 right away, returning -EINVAL from the probe()
method...
Fixes: 0cbd4b34cda9 ("xhci: mediatek: support MTK xHCI host
controller")
Signed-off-by: Sergey Shtylyov <redacted>
---
drivers/usb/host/xhci-mtk.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
If platform_get_irq() returns IRQ0 (considered invalid according to
Linus)
the driver blithely passes it to usb_add_hcd() that treats IRQ0 as no
IRQ
at all. Deny IRQ0 right away, returning -EINVAL from the probe()
method...
Fixes: 0cbd4b34cda9 ("xhci: mediatek: support MTK xHCI host
controller")
Signed-off-by: Sergey Shtylyov <redacted>
---
drivers/usb/host/xhci-mtk.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
On Wed, 2021-10-27 at 12:25 +0300, Sergey Shtylyov wrote:
On 27.10.2021 12:18, Chunfeng Yun wrote:
quoted
quoted
If platform_get_irq() returns IRQ0 (considered invalid according
to
Linus)
the driver blithely passes it to usb_add_hcd() that treats IRQ0
as no
IRQ
at all. Deny IRQ0 right away, returning -EINVAL from the probe()
method...
Fixes: 0cbd4b34cda9 ("xhci: mediatek: support MTK xHCI host
controller")
Signed-off-by: Sergey Shtylyov <redacted>
---
drivers/usb/host/xhci-mtk.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
On Tue, 2021-10-26 at 20:39 +0300, Sergey Shtylyov wrote:
quoted hunk
If platform_get_irq() returns IRQ0 (considered invalid according to
Linus)
the driver blithely passes it to usb_add_hcd() that treats IRQ0 as no
IRQ
at all. Deny IRQ0 right away, returning -EINVAL from the probe()
method...
Fixes: 0cbd4b34cda9 ("xhci: mediatek: support MTK xHCI host
controller")
Signed-off-by: Sergey Shtylyov <redacted>
---
drivers/usb/host/xhci-mtk.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)