Re: [PATCH] Add quirk for Lenovo Yoga 2 with ITE Chips

From: Ritesh Raj Sarraf
Date: Mon Oct 05 2015 - 07:42:16 EST


On Mon, 2015-10-05 at 13:28 +0200, Jiri Kosina wrote:
> On Mon, 5 Oct 2015, Ritesh Raj Sarraf wrote:
>
> Please insert a little bit more verbose changelog here (what exactly
> this
> device is, why does it need such quirk, etc).
>
> > Signed-off-by: Ritesh Raj Sarraf <rrs@xxxxxxxxxx>
>
> Adding Srinivas to CC as well.

Dropping stable

This patch is a follow-up to the one below. The USB ID is different for
the Lenovo Yoga 2 13. What Guilhem sent you was verified against Yoga 2
11 and Yoga 3 14. I guess this product line comes with a couple of
variants.

Without the quirk, no data is received from the accelerometer. I have
verified the patch, testing this on 4.3-rc4 (and 4.2 stable). With this
patch, proper orientation data is received.

rrs@learner:~/Community/UpstreamSources/linux-upstream_GIT (stable-42)$
monitor-sensor
** Message: Accelerometer orientation changed: bottom-up
** Message: Light changed: 0.000000 (lux)
Â** Message: Accelerometer orientation changed: left-up
** Message: Accelerometer orientation changed: bottom-up
** Message: Accelerometer orientation changed: left-up
** Message: Accelerometer orientation changed: normal
** Message: Light changed: 29.999999 (lux)


monitor-sensor can be found in the iio-sensor-proxy tool.


commit 47eeca8a4838714e582c2a3058458408a328ed60
Author: Guilhem Lettron <guilhem@xxxxxxxxxx>
Date:ÂÂÂSat Jun 27 17:02:23 2015 +0200

ÂÂÂÂHID: sensor-hub: Add in quirk for Lenovo Yogas with ITE
ÂÂÂÂ
ÂÂÂÂLike yogas with TEXAS_INSTRUMENTS, yogas with ITE chips needs
ÂÂÂÂto be initialized with enumeration quirks.
ÂÂÂÂ
ÂÂÂÂSigned-off-by: Jiri Kosina <jkosina@xxxxxxxx>


--
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System

Attachment: signature.asc
Description: This is a digitally signed message part