From: Sergey Shtylyov <s.shtylyov@omp.ru>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <linux-usb@vger.kernel.org>,
Alan Stern <stern@rowland.harvard.edu>,
Mathias Nyman <mathias.nyman@intel.com>
Subject: Re: [PATCH 00/22] Explicitly deny IRQ0 in the USB host drivers
Date: Tue, 19 Oct 2021 21:28:08 +0300 [thread overview]
Message-ID: <fb0e0bfc-ca56-e70b-5563-a23fe546f651@omp.ru> (raw)
In-Reply-To: <YW50ZLkVDkVuYdBp@kroah.com>
On 10/19/21 10:31 AM, Greg Kroah-Hartman wrote:
[...]
>>> Here are 22 patches against the 'usb-next' branch of Greg KH's 'usb.git' repo.
>>> The affected drivers use platform_get_irq() which can return IRQ0 (considered
>>> invalid, according to Linus) that means broken HCD when passed to usb_add_hcd()
>>> called at the end of the probe methods. I think that the solution to this issue
>>> is either explicitly deny or accept IRQ0 in usb_add_hcd()... /but/ here's this
>>> patch set to get the things going...
>>
>> Why not fix the root of the problem for your platform that is failing to
>> assign a valid irq for the device?
>>
>> Are you going to make this change to all callers of this function in the
>> kernel tree?
>
> Also, you should have gotten a huge WARNING in your kernel log if this
> happens to let you know that something bad is going on.
That's the relatively recent addition, yet it doesn't override IRQ0 to s/th
like -EINVAL.
> Is this patch
> series going to really change any of that?
How? It doesn't touch drivers/base/platform.c...
>
> What is the root problem here that you are trying to paper over with
> this patchset?
As I said, it would be preferrable to either deny IRQ0 in usb_add_hcd() or
just don't try to filter it out. The real problem is that usb_add_hcd() does
add a non-functioning HCD without the necessary IRQ handling (it only hooks
an IRQ when it's non-zero).
> thanks,
>
> greg k-h
MBR, Sergey
next prev parent reply other threads:[~2021-10-19 18:28 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-18 18:39 [PATCH 00/22] Explicitly deny IRQ0 in the USB host drivers Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 01/22] usb: host: ehci-exynos: deny IRQ0 Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 02/22] usb: host: ehci-mv: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 03/22] usb: host: ehci-npcm7xx: " Sergey Shtylyov
2021-10-19 7:11 ` Avi Fishman
2021-10-18 18:39 ` [PATCH 04/22] usb: host: ehci-omap: " Sergey Shtylyov
2021-10-21 6:28 ` kernel test robot
2021-10-18 18:39 ` [PATCH 05/22] usb: host: ehci-platform: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 06/22] usb: host: ehci-spear: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 07/22] usb: host: ehci-st: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 08/22] usb: host: ohci-at91: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 09/22] usb: host: ohci-da8xx: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 10/22] usb: host: ohci-exynos: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 11/22] usb: host: ohci-at91: " Sergey Shtylyov
2021-10-19 11:15 ` Alexander Dahl
2021-10-19 16:51 ` Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 12/22] usb: host: ohci-omap: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 13/22] usb: host: ohci-platform: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 14/22] usb: host: ohci-pxa27x: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 15/22] usb: host: ohci-sm501: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 16/22] usb: host: ohci-spear: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 17/22] usb: host: ohci-st: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 18/22] usb: host: ohci-tmio: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 19/22] usb: host: xhci-histb: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 20/22] usb: host: xhci-mtk: " Sergey Shtylyov
2021-10-20 7:32 ` Chunfeng Yun
2021-10-18 18:39 ` [PATCH 21/22] usb: host: xhci-plat: " Sergey Shtylyov
2021-10-18 18:39 ` [PATCH 22/22] usb: host: xhci-tegra: " Sergey Shtylyov
2021-10-21 9:09 ` Dmitry Osipenko
2021-10-26 18:24 ` Sergey Shtylyov
2021-10-27 11:13 ` Dmitry Osipenko
2021-10-19 1:35 ` [PATCH 00/22] Explicitly deny IRQ0 in the USB host drivers Alan Stern
2021-10-19 5:41 ` Greg Kroah-Hartman
2021-10-19 7:31 ` Greg Kroah-Hartman
2021-10-19 18:28 ` Sergey Shtylyov [this message]
2021-10-19 18:35 ` Alan Stern
2021-10-19 18:46 ` Sergey Shtylyov
2021-10-20 16:06 ` Sergey Shtylyov
2021-10-19 18:18 ` Sergey Shtylyov
2021-10-20 16:16 ` Greg Kroah-Hartman
2021-10-20 18:50 ` Sergey Shtylyov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fb0e0bfc-ca56-e70b-5563-a23fe546f651@omp.ru \
--to=s.shtylyov@omp.ru \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox