Re: [PATCH 2/2] gpio: realtek-otto: decide bank_read/write by device endianness

Linus Walleij <[email protected]>
Newsgroups org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel
Message-ID <CAD++jLn3ubs-Q1vqzr4WZFa6D4Fh=2M+8b5EFVrmou++jrxCEw@mail.gmail.com>
On Sun, Jul 19, 2026 at 6:17 AM Rustam Adilov <[email protected]> wrote:

> > That's irrelevant as there may be devicetrees out in the wild and we can't
> > just break them.
>
> So, what is the solution then?

Make a endianness-dependent quirk in the driver that retain the
current behaviour for old device trees and accepts new ones?
I.e. enforce the right behaviour using code no matter what the
device tree says.

Yours,
Linus Walleij
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.