From: Krzysztof Kozlowski <krzk@kernel.org>
To: Bartosz Golaszewski <brgl@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>
Cc: Sergey Suloev <sergey.suloev@gmail.com>,
ulf.hansson@linaro.org, catalin.popescu@leica-geosystems.com,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
Linus Walleij <linusw@kernel.org>
Subject: Re: [PATCH] mmc: pwrseq_simple: fix probe failure when CONFIG_RESET_GPIO is enabled
Date: Thu, 5 Mar 2026 11:46:40 +0100 [thread overview]
Message-ID: <8d991c0f-3244-4c0a-af4a-8d7aeb8ca35b@kernel.org> (raw)
In-Reply-To: <CAMRc=MdAp9fgp2zoU0AXow2avejqB=ZjiKanVgFVxokcmFAvuQ@mail.gmail.com>
On 05/03/2026 11:04, Bartosz Golaszewski wrote:
>
>>> Philipp, Krzysztof: what do you think?
>>
>> I think this is a missing feature in reset-gpio.
>> This driver could fall back to to devm_gpiod_get_array() also if
>> devm_reset_control_get_optional_shared() returns -ENOENT instead of
>> erroring out (maybe -ENOTSUPP would be a better return code for [1]?).
>>
>
> I did not write the initial version but Krzysztof: is there any reason we only
> support a single, two-cell GPIO? Would it be problematic to support any kind of
> reset GPIO setup?
It was only due to limitation of my initial solution - see even a TODO
note in reset/core.c. I think the problem I had is that GPIO specifier
without flags (so cells=1) would mess with GPIO_LOOKUP(). And if we have
cells=3, where do the flags are? If you assume flags are last argument,
that's an implied ABI encoded in the reset core.
Well, heh, implied ABI that 2nd argument are flags is already there, so
the code is partially hacky, I agree.
So honestly I believe that GPIO core should handle all this mapping of
original reset-gpios property into platform data to reset-gpio driver.
That's the answer for your question "would it be problematic".
For reference, original patch:
https://lore.kernel.org/all/20240129115216.96479-5-krzysztof.kozlowski@linaro.org/
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-03-05 10:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-20 19:47 Sergey Suloev
2026-03-04 16:03 ` Ulf Hansson
2026-03-04 16:41 ` Bartosz Golaszewski
2026-03-05 9:43 ` Philipp Zabel
2026-03-05 10:04 ` Bartosz Golaszewski
2026-03-05 10:46 ` Krzysztof Kozlowski [this message]
2026-03-09 9:36 ` Bartosz Golaszewski
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=8d991c0f-3244-4c0a-af4a-8d7aeb8ca35b@kernel.org \
--to=krzk@kernel.org \
--cc=brgl@kernel.org \
--cc=catalin.popescu@leica-geosystems.com \
--cc=linusw@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=sergey.suloev@gmail.com \
--cc=ulf.hansson@linaro.org \
/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
Powered by JetHome