From: Krzysztof Kozlowski <krzk@kernel.org>
To: Alex Lanzano <lanzano.alex@gmail.com>, devicetree@vger.kernel.org
Cc: "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Josef Luštický" <josef.lusticky@braiins.cz>
Subject: Re: Bug in mipi_dbi_hw_reset() causes incorrect DT entries
Date: Sun, 16 Mar 2025 12:51:29 +0100 [thread overview]
Message-ID: <ebfdad9d-fe4b-41ac-b7df-eb7354dd9052@kernel.org> (raw)
In-Reply-To: <v7krb2k3aybcpbzyx4ysjxpdpljpadk6xugpdsehzc6wp6aejw@53flicuphar4>
On 15/03/2025 16:20, Alex Lanzano wrote:
> Hi all,
>
> There is a bug in the mipi_dbi_hw_reset() function that handles the
> reset logic of the controller. Currently, it will set the reset gpio
> value to 0, wait a specified time, then set the reset gpio value to 1.
>
> The issue with this implementation is that the MIPI DBI spec states that
> the reset signal is active low. So, in order to correct for this logic,
> the developer needs to incorrectly define the reset gpio as active high
> in the DT.
You should address it to driver and subsystem maintainers. Instead you
skipped all maintainers but Cc-ed people who have nothing to do with
MIPI DBI drivers in the kernel.
>
> Fixing the logic in the driver would cause all the displays using this
> driver downstream to stop working. To mitigate this, Josef and I were
> thinking about adding an additional boolean property to the DT that when
> present would use the correct reset logic in the driver. And if it's not
> present use the current reset logic and print out a warning that this
> reset logic is deprecated.
>
> The overall plan would be to have this temporary fix for a few release
> cycles so downstream has time to be aware of the issue and update their
> DT. Eventually, we would remove the incorrect reset logic in the driver
> and this addtional boolean property.
That's an ABI now, so you cannot change it without affecting users. Code
is from 2018 so you have plenty of users now.
I did some workaround for wsa88xx speakers but that's an exception and
it should not necessarily be a pattern to follow.
Not sure if it the issue is worth changing considering the impact.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-03-16 11:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-15 15:20 Bug in mipi_dbi_hw_reset() causes incorrect DT entries Alex Lanzano
2025-03-16 11:51 ` Krzysztof Kozlowski [this message]
2025-03-21 16:07 ` Alex Lanzano
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=ebfdad9d-fe4b-41ac-b7df-eb7354dd9052@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=josef.lusticky@braiins.cz \
--cc=krzk+dt@kernel.org \
--cc=lanzano.alex@gmail.com \
--cc=robh@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.