All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darren Hart <dvhart@infradead.org>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Ritesh Raj Sarraf <rrs@debian.org>,
	Platform Driver <platform-driver-x86@vger.kernel.org>,
	Ike Panhc <ike.pan@canonical.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state
Date: Wed, 3 May 2017 09:11:04 -0700	[thread overview]
Message-ID: <20170503161104.GA30927@fury> (raw)
In-Reply-To: <CAHp75Vefzv_1UdRyWVN3tCzTiPpWX616spNLbXoG=VEORuUyFA@mail.gmail.com>

On Wed, May 03, 2017 at 05:42:02PM +0300, Andy Shevchenko wrote:
> On Wed, May 3, 2017 at 5:36 PM, Ritesh Raj Sarraf <rrs@debian.org> wrote:
> > Resending again, as Google servers are behaving weird lately.
> >
> > On Sun, 2017-04-30 at 15:54 +0300, Andy Shevchenko wrote:
> >> > > the main issue that driver doesn't
> >> > > send SW_TABLET_MODE event through input device.
> >> >
> >> > Well. Yes. That is one part. If SW_TABLET_MODE is done in the driver, much
> >> > better. My patch was simply in line with some of the other drivers (hp-wmi
> >> > and
> >> > thinkpad_acpi) to get it working for Lenovo Yoga series.
> >>
> >> sysfs ABI for drivers that provide input interface is quite strong for
> >> my opinion. It means I'm not totally objecting, but I would accept it
> >> if and only if there is nothing else could be done.
> >
> > The need we have in the user application is for read-only access.
> 
> I does not matter at all! You are proposing a part of ABI which will
> be closer to what is "carved in stone". Here is the problem.
> 
> So, I'm really trying hard to get avoid such "small things" which
> would make our lives quite hard in long term prospective while fixing
> short-term issues in a good will.
> 
> Please, consider to do it better. For now I didn't hear any proof that
> there is no other way to achieve your goal.

I spent a day with the Lenovo Yoga 2 11 I have available, and have not yet found
a reliable means of detecting the tablet mode (reverse engineering these things
isn't something I'm expert at though). I've reached out to the original author
for some context, but that didn't lead to any revelations as of yet.

Ultimately, this sysfs attribute is no better or worse than others that exist in
our tree. So until we can provide a better solution, we do need to be careful
to not inadvertently favor one laptop driver over another while seeking to avoid
sysfs stable API issues.

I do think we need to start distinguishing between core kernel userspace
interfaces and leaf node driver sysfs attributes.

-- 
Darren Hart
VMware Open Source Technology Center

  reply	other threads:[~2017-05-03 16:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-17 18:47 [PATCH v4] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state Ritesh Raj Sarraf
2017-02-22 10:24 ` Ritesh Raj Sarraf
2017-03-01 23:16   ` Andy Shevchenko
2017-04-28 19:17   ` Andy Shevchenko
2017-04-28 19:17     ` Andy Shevchenko
2017-04-29  6:52     ` Ritesh Raj Sarraf
2017-04-30 12:54       ` Andy Shevchenko
2017-05-01 16:05         ` Darren Hart
2017-05-01 18:27           ` Ritesh Raj Sarraf
2017-05-01 19:16             ` Darren Hart
2017-05-03 14:36         ` Ritesh Raj Sarraf
2017-05-03 14:42           ` Andy Shevchenko
2017-05-03 16:11             ` Darren Hart [this message]
2017-05-07 11:36               ` Andy Shevchenko

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=20170503161104.GA30927@fury \
    --to=dvhart@infradead.org \
    --cc=andy.shevchenko@gmail.com \
    --cc=ike.pan@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rrs@debian.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.