From: Pavel Machek <pavel@ucw.cz>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Doug Anderson <dianders@chromium.org>,
Stephen Boyd <swboyd@chromium.org>,
Enric Balletbo i Serra <enric.balletbo@collabora.com>,
Benson Leung <bleung@chromium.org>,
LKML <linux-kernel@vger.kernel.org>,
"open list:HID CORE LAYER" <linux-input@vger.kernel.org>,
Guenter Roeck <groeck@chromium.org>
Subject: Re: [PATCH] Input: cros_ec_keyb: Add support for a front proximity switch
Date: Tue, 2 Feb 2021 14:43:59 +0100 [thread overview]
Message-ID: <20210202134359.GA25474@duo.ucw.cz> (raw)
In-Reply-To: <X/dlKKeAHU/Ab+VD@google.com>
[-- Attachment #1: Type: text/plain, Size: 2459 bytes --]
Hi!
> > > > Reviewed-by: Douglas Anderson <dianders@chromium.org>
> > > >
> > > > Given that it touches a header file owned by the Chrome OS maintainers
> > > > and a driver owned by input, how should it land? One maintainer Acks
> > > > and the other lands?
> > >
> > > Sorry about missing this one, however the "front proximity" switch has
> > > been introduced for the benefit of phone devices, to be emitted when a
> > > device is raised to user's ear, and I do not think we should be using
> > > this here.
> > >
> > > We have just recently had similar discussion with regard to palm- and
> > > lap-mode sensors and whether they should be reported over input or IIO
> > > as true proximity sensors:
> > >
> > > https://lore.kernel.org/linux-iio/9f9b0ff6-3bf1-63c4-eb36-901cecd7c4d9@redhat.com/
> > >
> > > Based on what we are doing for other Chrome OS devices that expose
> > > proximity sensors (for example trogdor) we have decided that we all
> > > should be using IIO as it will allow not only on/off, but true proximity
> > > reporting with potential of implementing smarter policies by userspace.
> > >
> > > Because of that we should do the same here and export this as IIO
> > > proximity sensor as well.
> >
> > For devices with a true proximity sensor that's exactly what we're
> > doing. I've only been involved in the periphery of the discussion,
> > but as I understand it there are some models of laptop for which we
> > don't have a true proximity sensor. On these devices, the EC is in
> > charge of deciding about proximity based on a number of factors.
>
> Yes, I understand that on some devices the proximity sensors are not
> true sensors but rather on/off signals, potentially derived from a
> multitude of sources. However there is still a benefit in exposing them
> as IIO proximity devices with limited reporting representing
> [near, infinity] range/values. This will mean that userspace needs to
> monitor only one set of devices (IIO) instead of both IIO and input, and
> will not require constantly expanding EV_SW set to account for
> ever-growing number of proximity sensors (lap, palm, general presence,
> etc).
While I believe one set of devices is good goal, I don't think IIO is
good solution here. It is being used for user input after
all... Routing on/off values to IIO is strange.
Best regards,
Pavel
--
http://www.livejournal.com/~pavelmachek
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2021-02-02 13:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-05 0:47 [PATCH] Input: cros_ec_keyb: Add support for a front proximity switch Stephen Boyd
2021-01-07 1:16 ` Doug Anderson
2021-01-07 2:21 ` Dmitry Torokhov
2021-01-07 14:57 ` Doug Anderson
2021-01-07 19:46 ` Dmitry Torokhov
2021-01-15 22:45 ` Stephen Boyd
2021-02-02 13:43 ` Pavel Machek [this message]
[not found] ` <CABXOdTcT4f_mg=ukPd0sD90o-aKg3qgiuLDRNPU8SUuFnFbRxA@mail.gmail.com>
2021-01-15 22:43 ` Stephen Boyd
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=20210202134359.GA25474@duo.ucw.cz \
--to=pavel@ucw.cz \
--cc=bleung@chromium.org \
--cc=dianders@chromium.org \
--cc=dmitry.torokhov@gmail.com \
--cc=enric.balletbo@collabora.com \
--cc=groeck@chromium.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=swboyd@chromium.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 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).