From: Krzysztof Kozlowski <krzk@kernel.org>
To: Yann Sionneau <ysionneau@kalrayinc.com>,
linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>
Cc: Jonathan Borne <jborne@kalrayinc.com>,
Julian Vetter <jvetter@kalrayinc.com>,
Clement Leger <clement@clement-leger.fr>,
Guillaume Thouvenin <thouveng@gmail.com>,
Luc Michel <luc@lmichel.fr>, Jules Maselbas <jmaselbas@zdiv.net>,
bpf@vger.kernel.org
Subject: Re: [RFC PATCH v3 35/37] kvx: Add IPI driver
Date: Sat, 7 Sep 2024 15:20:33 +0200 [thread overview]
Message-ID: <0c9ff8b4-9e69-41cc-a622-2aea11def2e2@kernel.org> (raw)
In-Reply-To: <42e7d388-a4c8-42f9-bf2f-001871a7d948@kalrayinc.com>
On 23/08/2024 16:46, Yann Sionneau wrote:
> Hello Krzysztof,
>
> On 22/07/2024 14:39, Krzysztof Kozlowski wrote:
>> On 22/07/2024 11:41, ysionneau@kalrayinc.com wrote:
>>> From: Yann Sionneau <ysionneau@kalrayinc.com>
>>>
>>> [...]
>>> +
>>> +int __init kvx_ipi_ctrl_init(struct device_node *node,
>>> + struct device_node *parent)
>>> +{
>>> + int ret;
>>> + unsigned int ipi_irq;
>>> + void __iomem *ipi_base;
>>> +
>>> + BUG_ON(!node);
>> Fix your code instead.
>
> I am not sure I understand your comment here, I don't have the control over what the kernel passes to my driver, do I?
In general you have. Investigate the path and check whether NULL is
allowed. If it is allowed, then this should be handled correctly and
gracefully. If it is not allowed, then BUG_ON() is not welcomed in general.
>
> On the other hand, "node" being the node that matches the compatible, maybe it can never be NULL, is that what you're saying?
I don't remember the context anymore. You responded one month after my
review. But if this is about matching, then obviously this cannot happen
for DT platforms. If this can be matched via different methods then it
should not be BUG_ON...
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-09-07 13:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240722094226.21602-1-ysionneau@kalrayinc.com>
2024-07-22 9:41 ` [RFC PATCH v3 13/37] kvx: Add build infrastructure ysionneau
2024-07-23 9:46 ` Arnd Bergmann
2024-07-22 9:41 ` [RFC PATCH v3 30/37] kvx: Add multi-processor (SMP) support ysionneau
2024-07-27 14:22 ` Thomas Gleixner
2024-07-22 9:41 ` [RFC PATCH v3 34/37] kvx: Add power controller driver ysionneau
2024-07-22 12:37 ` Krzysztof Kozlowski
2024-08-23 13:07 ` Yann Sionneau
2024-07-22 9:41 ` [RFC PATCH v3 35/37] kvx: Add IPI driver ysionneau
2024-07-22 12:39 ` Krzysztof Kozlowski
2024-08-23 14:46 ` Yann Sionneau
2024-09-07 13:20 ` Krzysztof Kozlowski [this message]
2024-07-27 14:08 ` Thomas Gleixner
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=0c9ff8b4-9e69-41cc-a622-2aea11def2e2@kernel.org \
--to=krzk@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=clement@clement-leger.fr \
--cc=jborne@kalrayinc.com \
--cc=jmaselbas@zdiv.net \
--cc=jvetter@kalrayinc.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luc@lmichel.fr \
--cc=tglx@linutronix.de \
--cc=thouveng@gmail.com \
--cc=ysionneau@kalrayinc.com \
/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