From: Andreas Kemnade <andreas@kemnade.info>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "Discussions about the Letux Kernel"
<letux-kernel@openphoenux.org>, "Rob Herring" <robh@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>,
devicetree <devicetree@vger.kernel.org>,
Linux-OMAP <linux-omap@vger.kernel.org>,
"Tony Lindgren" <tony@atomide.com>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
stable <stable@vger.kernel.org>,
linux-spi <linux-spi@vger.kernel.org>,
"Mark Brown" <broonie@kernel.org>,
"Benoît Cousson" <bcousson@baylibre.com>
Subject: Re: [Letux-kernel] [PATCH 2/2] DTS: ARM: gta04: introduce legacy spi-cs-high to make display work again
Date: Sat, 31 Aug 2019 08:48:52 +0200 [thread overview]
Message-ID: <20190831084852.5e726cfa@aktux> (raw)
In-Reply-To: <CACRpkdY0AVnkRa8sV_Z54qfX9SYufvaYYhU0k2+LitXo0sLx2w@mail.gmail.com>
Hi,
On Mon, 5 Aug 2019 12:29:19 +0200
Linus Walleij <linus.walleij@linaro.org> wrote:
> On Fri, Jul 26, 2019 at 12:43 AM Rob Herring <robh@kernel.org> wrote:
> > On Thu, Jul 25, 2019 at 12:23 AM H. Nikolaus Schaller <hns@goldelico.com> wrote:
>
> > > I tried to convince Linus that this is the right way but he convinced
> > > me that a fix that handles all cases does not exist.
> > >
> > > There seem to be embedded devices with older DTB (potentially in ROM)
> > > which provide a plain 0 value for a gpios definition. And either with
> > > or without spi-cs-high.
> > >
> > > Since "0" is the same as "GPIO_ACTIVE_HIGH", the absence of
> > > spi-cs-high was and must be interpreted as active low for these
> > > devices. This leads to the inversion logic in code.
> > >
> > > AFAIR it boils down to the question if gpiolib and the bindings
> > > should still support such legacy devices with out-of tree DTB,
> > > but force in-tree DTS to add the legacy spi-cs-high property.
> > >
> > > Or if we should fix the 2 or 3 cases of in-tree legacy cases
> > > and potentially break out-of tree DTBs.
> >
> > If it is small number of platforms, then the kernel could handle those
> > cases explicitly as needed.
> >
> > > IMHO it is more general to keep the out-of-tree DTBs working
> > > and "fix" what we can control (in-tree DTS).
> >
> > If we do this, then we need to not call spi-cs-high legacy because
> > we're stuck with it forever.
>
> I agree. The background on it is here:
> https://lkml.org/lkml/2019/4/2/4
>
> Not using the negatively defined (i.e. if it is no there, the line is
> by default active low) spi-cs-high would break
> PowerPC, who were AFAICT using this to ship devices.
>
is this thing now just waiting for someone to do a s/legacy//?
Regards,
Andreas
next prev parent reply other threads:[~2019-08-31 6:48 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-08 14:46 [PATCH 0/2] DTS: ARM: some minor updates and fixes for GTA04 H. Nikolaus Schaller
2019-07-08 14:46 ` [PATCH 1/2] DTS: ARM: gta04: define chosen/stdout-path H. Nikolaus Schaller
2019-08-13 11:47 ` Tony Lindgren
2019-07-08 14:46 ` [PATCH 2/2] DTS: ARM: gta04: introduce legacy spi-cs-high to make display work again H. Nikolaus Schaller
2019-07-24 19:42 ` Rob Herring
2019-07-25 6:23 ` H. Nikolaus Schaller
2019-07-25 22:42 ` Rob Herring
2019-08-05 10:29 ` Linus Walleij
2019-08-31 6:48 ` Andreas Kemnade [this message]
2019-09-16 10:59 ` [Letux-kernel] " H. Nikolaus Schaller
2019-09-16 22:52 ` Linus Walleij
2019-09-17 14:26 ` H. Nikolaus Schaller
2019-09-20 8:55 ` Linus Walleij
2019-09-20 9:19 ` H. Nikolaus Schaller
2019-09-20 14:20 ` Tony Lindgren
2019-09-20 14:54 ` H. Nikolaus Schaller
2019-09-20 15:29 ` Andreas Kemnade
2019-09-20 15:50 ` H. Nikolaus Schaller
2019-09-20 15:53 ` Tony Lindgren
2019-09-20 15:55 ` H. Nikolaus Schaller
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=20190831084852.5e726cfa@aktux \
--to=andreas@kemnade.info \
--cc=bcousson@baylibre.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=letux-kernel@openphoenux.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh@kernel.org \
--cc=stable@vger.kernel.org \
--cc=tony@atomide.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;
as well as URLs for NNTP newsgroup(s).