From: "wangwensheng (C)" <wangwensheng4@huawei.com>
To: Saravana Kannan <saravanak@google.com>,
Greg KH <gregkh@linuxfoundation.org>
Cc: <rafael@kernel.org>, <dakr@kernel.org>, <tglx@linutronix.de>,
<robh@kernel.org>, <broonie@kernel.org>,
<linux-kernel@vger.kernel.org>, <chenjun102@huawei.com>
Subject: Re: [PATCH 3/3] irqchip/mbigen: Use fw_devlink_relax_consumers() helper
Date: Fri, 15 Aug 2025 10:15:33 +0800 [thread overview]
Message-ID: <cba05a2e-3121-4732-9e2f-73892e8047ab@huawei.com> (raw)
In-Reply-To: <CAGETcx-92+zN3YivUoEU-U68=GUnGs-68+g8rM7LnLXBRH=xyQ@mail.gmail.com>
在 2025/8/15 2:05, Saravana Kannan 写道:
> On Thu, Aug 14, 2025 at 4:39 AM Greg KH <gregkh@linuxfoundation.org> wrote:
>>
>> On Thu, Aug 14, 2025 at 07:10:23PM +0800, Wang Wensheng wrote:
>>> Use this to prevernt the consumer devices of mbigen to be probed too
>>> later.
>>>
>>> Signed-off-by: Wang Wensheng <wangwensheng4@huawei.com>
>>> ---
>>> drivers/irqchip/irq-mbigen.c | 2 ++
>>> 1 file changed, 2 insertions(+)
>>>
>>> diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c
>>> index 6f69f4e5dbac..4e96eb9b6a6a 100644
>>> --- a/drivers/irqchip/irq-mbigen.c
>>> +++ b/drivers/irqchip/irq-mbigen.c
>>> @@ -252,6 +252,8 @@ static int mbigen_of_create_domain(struct platform_device *pdev,
>>>
>>> if (!mbigen_create_device_domain(&child->dev, num_pins, mgn_chip))
>>> return -ENOMEM;
>>> +
>>> + fw_devlink_relax_consumers(&child->dev);
>>
>> Ick, no, individual drivers should not be doing this. Saravana, any
>> ideas?
>
> Yeah, I responded to patch 2/3.
>
> To give a more specific answer, this driver is just adding platform
> devices to the platform bus that it never probes. They should create a
> class for these and add these devices to their own class. fw_devlink
> is smart enough about not waiting on class devices to probe. If for
> whatever reason, switching it to a class is impossible, then they
> should write a stub driver to probe these devices.
>
> -Saravana
Thanks for your suggestion. I will try this way later.
prev parent reply other threads:[~2025-08-15 2:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-14 11:10 [PATCH 0/3] Fix issues for device probe Wang Wensheng
2025-08-14 11:10 ` [PATCH 1/3] driver core: Fix concurrent problem of deferred_probe_extend_timeout() Wang Wensheng
2025-08-14 11:37 ` Greg KH
2025-08-14 12:45 ` wangwensheng (C)
2025-08-14 11:37 ` Greg KH
2025-08-14 11:10 ` [PATCH 2/3] driver core: Introduce fw_devlink_relax_consumers helper Wang Wensheng
2025-08-14 11:39 ` Greg KH
2025-08-14 17:54 ` Saravana Kannan
2025-08-14 11:10 ` [PATCH 3/3] irqchip/mbigen: Use fw_devlink_relax_consumers() helper Wang Wensheng
2025-08-14 11:39 ` Greg KH
2025-08-14 18:05 ` Saravana Kannan
2025-08-15 2:15 ` wangwensheng (C) [this message]
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=cba05a2e-3121-4732-9e2f-73892e8047ab@huawei.com \
--to=wangwensheng4@huawei.com \
--cc=broonie@kernel.org \
--cc=chenjun102@huawei.com \
--cc=dakr@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=saravanak@google.com \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®