From: Jochen Henneberg <jh@henneberg-systemdesign.com>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Maoyi Xie" <maoyixie.tju@gmail.com>,
linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: imu: bno555: Fix reset pin operation
Date: Fri, 04 Dec 2026 10:02:24 +0100 [thread overview]
Message-ID: <87y0a5s9jz.fsf@henneberg-systemdesign.com> (raw)
In-Reply-To: <axF8DAZgofjAIUnJ@ashevche-desk.local>
Andy Shevchenko <andriy.shevchenko@intel.com> writes:
> On Thu, Dec 03, 2026 at 11:49:43AM +0100, Jochen Henneberg wrote:
>> The reset input is low-active and this is how the dt bindinds example
>> configures it. However, the driver code treats it as high-active
>> because the gpio functions set the logical state not the physical
>> state.
>
> Please, just convert this to use reset-gpio driver and reset APIs.
> It will be better and might allow shared signals in the future
> (if ever required).
Just pushed v2 with the reset controller but after thinking about this
again it raised a question. The Kconfig does not enable
RESET_CONTROLLER, however, the fallback function if the reset subsystem
is not enabled returns ENOTSUPP which in case of this driver would cause
a probe error. Is this intended even though the reset is optional? Or
would it be better to select RESET_CONTROLLER from Kconfig? But then, in
case RESET_GPIO is not selected it will silently fail to setup the reset
controller because that does not cause an error (GPIO lookup does simply
not happen). This could also be confusing if everything looks good from
the device tree and no errors but no reset available.
I'm a bit confused here. Sorry that I have send the patch update before
asking the question but that came to my mind right after sending.
next prev parent reply other threads:[~2026-12-04 9:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 10:49 [PATCH] iio: imu: bno555: Fix reset pin operation Jochen Henneberg
2026-12-03 14:26 ` Andy Shevchenko
2026-12-04 9:02 ` Jochen Henneberg [this message]
2026-12-04 9:25 ` Arnav Kapoor
2026-12-04 16:34 ` Andy Shevchenko
2026-12-03 14:45 ` Arnav Kapoor
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=87y0a5s9jz.fsf@henneberg-systemdesign.com \
--to=jh@henneberg-systemdesign.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=maoyixie.tju@gmail.com \
--cc=nuno.sa@analog.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