public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Matti Vaittinen <mazziesaccount@gmail.com>,
	Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Cc: Lee Jones <lee@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH 4/6] regulator: bd96801: ROHM BD96801 PMIC regulators
Date: Wed, 3 Apr 2024 16:24:49 +0200	[thread overview]
Message-ID: <edb25c16-3f63-4f5b-97e5-363cf199d780@kernel.org> (raw)
In-Reply-To: <e0d760d7-5408-47b8-b204-7900bcd9c608@gmail.com>

On 03/04/2024 09:38, Matti Vaittinen wrote:
> Hi dee Ho Krzysztof,
> 
> Heading to the Seattle? If so - Enjoy! It's a bummer I'm not able to 
> share a beer with you in ELC this time.

Second chance, I hope, will be Vienna in September.


...

>>> +
>>> +	rdesc = &pdata->regulator_data[0];
>>> +
>>> +	config.driver_data = pdata;
>>> +	config.regmap = pdata->regmap;
>>> +	config.dev = parent;
>>> +
>>> +	ret = of_property_match_string(pdev->dev.parent->of_node,
>>> +				       "interrupt-names", "errb");
>> This does not guarantee that interrupts are properly set up.
> 
> Hmm. Yes, you're right. I'm not sure if I did think of this.
> 
>> Don't you
>> have some state shared between parent and this device where you could
>> mark that interrupts are OK?
> 
> There is currently no need to share/allocate any private data from the 
> MFD. We get the regmap using dev_get_regmap, and interrupts using the 
> platform_get_irq_byname(). Nothing else is shared between the MFD and 
> sub-devices.
> 
> Considering the use of platform_get_irq_byname() - and how failures to 
> get 'errb' IRQs are silently ignored in bd96801_global_errb_irqs() and
> in bd96801_rdev_errb_irqs() - this check is just a slight optimization 
> to not even try registering the errb IRQs if they're not found from the 
> device tree. So, I think things do not really go south even if we go to 
> "errb route" when the "errb" IRQs aren't successfully registered.
> 
> Whether this warrants a comment, or if this check is just unnecessarily 
> complex can be pondered. Personally I think the purpose is pretty clear 
> and thus the complexity is not added that much - but yes, a comment 
> above call(s) to the platform_get_irq_byname() saying errb IRQs are not 
> guaranteed to be populated might be justified.
> 

Fine with me.

Best regards,
Krzysztof


  reply	other threads:[~2024-04-03 14:24 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-02 13:07 [RFC PATCH 0/6] Support ROHM BD96801 scalable PMIC Matti Vaittinen
2024-04-02 13:07 ` [RFC PATCH 1/6] dt-bindings: ROHM BD96801 PMIC regulators Matti Vaittinen
2024-04-02 13:08 ` [RFC PATCH 2/6] dt-bindings: mfd: bd96801 PMIC core Matti Vaittinen
2024-04-02 13:08 ` [RFC PATCH 3/6] mfd: support ROHM BD96801 " Matti Vaittinen
2024-04-11 14:38   ` Lee Jones
2024-04-12  5:40     ` Matti Vaittinen
2024-04-12  5:50       ` Matti Vaittinen
2024-04-12  7:23       ` Lee Jones
2024-04-12  8:58         ` Matti Vaittinen
2024-04-17 12:24           ` Lee Jones
2024-04-02 13:10 ` [RFC PATCH 4/6] regulator: bd96801: ROHM BD96801 PMIC regulators Matti Vaittinen
2024-04-02 16:14   ` Krzysztof Kozlowski
2024-04-03  7:38     ` Matti Vaittinen
2024-04-03 14:24       ` Krzysztof Kozlowski [this message]
2024-04-02 13:11 ` [RFC PATCH 5/6] watchdog: ROHM BD96801 PMIC WDG driver Matti Vaittinen
2024-04-02 16:15   ` Krzysztof Kozlowski
2024-04-02 17:11   ` Guenter Roeck
2024-04-03  6:34     ` Matti Vaittinen
2024-04-03 12:41       ` Guenter Roeck
2024-04-03 12:47         ` Matti Vaittinen
2024-04-03 13:26           ` Guenter Roeck
2024-04-02 13:12 ` [RFC PATCH 6/6] MAINTAINERS: Add ROHM BD96801 'scalable PMIC' entries Matti Vaittinen
2024-04-04  7:26 ` [RFC PATCH 0/6] Support ROHM BD96801 scalable PMIC Matti Vaittinen
2024-04-04 12:09   ` Mark Brown
2024-04-04 13:15     ` Matti Vaittinen
2024-04-05  9:19       ` Matti Vaittinen
2024-04-05 21:27         ` Mark Brown
2024-04-22 10:52         ` Matti Vaittinen
2024-05-09  5:08           ` Mark Brown
2024-05-09  7:03             ` Matti Vaittinen
2024-05-09 15:38               ` Mark Brown

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=edb25c16-3f63-4f5b-97e5-363cf199d780@kernel.org \
    --to=krzk@kernel.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matti.vaittinen@fi.rohmeurope.com \
    --cc=mazziesaccount@gmail.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