From: Rob Herring <robh@kernel.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Marco Felsch <m.felsch@pengutronix.de>,
andriy.shevchenko@linux.intel.com, bparrot@ti.com,
andy.shevchenko@gmail.com, simon.budig@kernelconcepts.de,
hdegoede@redhat.com, fcooper@ti.com, linux-input@vger.kernel.org,
devicetree@vger.kernel.org, kernel@pengutronix.de
Subject: Re: [PATCH 2/6] dt-bindings: Input: edt-ft5x06 - add disable wakeup-source documentation
Date: Mon, 30 Sep 2019 18:11:46 -0500 [thread overview]
Message-ID: <20190930231146.GA30010@bogus> (raw)
In-Reply-To: <20190917172658.GQ237523@dtor-ws>
On Tue, Sep 17, 2019 at 10:26:58AM -0700, Dmitry Torokhov wrote:
> On Tue, Sep 17, 2019 at 07:18:14PM +0200, Marco Felsch wrote:
> > Hi Dmitry,
> >
> > On 19-09-17 10:07, Dmitry Torokhov wrote:
> > > On Tue, Sep 17, 2019 at 05:58:04PM +0200, Marco Felsch wrote:
> > > > The default driver behaviour is to enable the wakeup-source everytime.
> > > > There are hardware designs which have a dedicated gpio to act as wakeup
> > > > device. So it must be allowed to disable the wakeup-source capability.
> > > >
> > > > This patch adds the binding documentation to disable the wakeup-source
> > > > capability.
> > > >
> > > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> > > > ---
> > > > .../devicetree/bindings/input/touchscreen/edt-ft5x06.txt | 4 ++++
> > > > 1 file changed, 4 insertions(+)
> > > >
> > > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt
> > > > index 870b8c5cce9b..4d6524fe3cf4 100644
> > > > --- a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt
> > > > +++ b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt
> > > > @@ -35,6 +35,10 @@ Optional properties:
> > > > - pinctrl-0: a phandle pointing to the pin settings for the
> > > > control gpios
> > > >
> > > > + - edt,disable-wakeup-source: If left the device will act as wakeup-source
> > > > + (for legacy compatibility). Add the property
> > > > + so the device won't act as wakeup-source.
> > >
> > > I think this is too ugly and I consider it being a bug in the driver
> > > that it enables wakeup unconditionally.
> >
> > That's right.
> >
> > > Let's just update DTS in tree for devices that actually want it (I am
> > > curious how many that do not declare "wakeup-source" have it working and
> > > actually want it) and key the dirver behavior off the standard property.
> >
> > There are a few DTS using this driver and the current driver behaviour.
> > We need to keep the backward compatibility since the DTB is part of the
> > firmware and firmware isn't always included during a system-update. I
> > know its ugly but IMHO that's the right way to go to keep the backward
> > compatibility. Let us see what the DT-folk says.
> >
> > > Until we start seeing this controller in devices that actually have DTS
> > > in hardware device tree I think it is better to use standard property.
> >
> > Sorry, I didn't get you here..
>
> What I was trying to say is that I have not actually seen DTB that is
> part of hardware or separately upgradable frimware (not talking about
> ppc or sparc boxes, but ones that might be using this driver). It is
> always built into the kernel in my experience, so backward compatibility
> is simply a tool that is being used to prevent us from being too wild
> with hacking on bindings, but rarely a practical concern.
Well, that's self fulfilling...
> In cases like this I think it is worthwhile to simply update in-tree
> DTS and arrive at a sane binding.
Get the maintainers of the affected platforms to agree to the changes.
Rob
next parent reply other threads:[~2019-09-30 23:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190917155808.27818-1-m.felsch@pengutronix.de>
[not found] ` <20190917155808.27818-3-m.felsch@pengutronix.de>
[not found] ` <20190917170743.GO237523@dtor-ws>
[not found] ` <20190917171814.owcttekv56xgmsts@pengutronix.de>
[not found] ` <20190917172658.GQ237523@dtor-ws>
2019-09-30 23:11 ` Rob Herring [this message]
2019-10-02 13:00 ` [PATCH 2/6] dt-bindings: Input: edt-ft5x06 - add disable wakeup-source documentation Marco Felsch
2019-10-02 14:48 ` Maxime Ripard
2019-10-02 15:20 ` Benoit Parrot
2019-10-02 17:30 ` Dmitry Torokhov
2019-10-02 15:24 ` Alexandre Belloni
2019-10-14 9:14 ` Shawn Guo
[not found] ` <20190917155808.27818-6-m.felsch@pengutronix.de>
2019-09-30 23:12 ` [PATCH 5/6] dt-bindings: Input: edt-ft5x06 - add vdd supply documentation Rob Herring
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=20190930231146.GA30010@bogus \
--to=robh@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=bparrot@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=fcooper@ti.com \
--cc=hdegoede@redhat.com \
--cc=kernel@pengutronix.de \
--cc=linux-input@vger.kernel.org \
--cc=m.felsch@pengutronix.de \
--cc=simon.budig@kernelconcepts.de \
/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).