lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1444063327.17895.41.camel@spandruv-desk3.jf.intel.com>
Date:	Mon, 05 Oct 2015 09:42:07 -0700
From:	Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
To:	Ritesh Raj Sarraf <rrs@...ian.org>
Cc:	linux-kernel@...r.kernel.org, jkosina@...e.cz
Subject: Re: [PATCH] Add quirk for Lenovo Yoga 2 with ITE Chips

On Mon, 2015-10-05 at 22:02 +0530, Ritesh Raj Sarraf wrote:
> This patch is a follow-up to the one below, send by Guilhem Lettron.
> 
> The Lenovo Yoga 2 13 seems to be sold in multiple variants with minor
> difference3s. IN my case, the USB ID for ITE chip is different than the
> Yoga 2 11 and Yoga 3 14.
> 
> 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@...rner:~/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@...tron.fr>
> 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@...e.com>
> 
> 
> Signed-off-by: Ritesh Raj Sarraf <rrs@...ian.org>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
> ---
>  drivers/hid/hid-ids.h        | 1 +
>  drivers/hid/hid-sensor-hub.c | 3 +++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
> index f769208..127c777 100644
> --- a/drivers/hid/hid-ids.h
> +++ b/drivers/hid/hid-ids.h
> @@ -510,6 +510,7 @@
>  
>  #define USB_VENDOR_ID_ITE               0x048d
>  #define USB_DEVICE_ID_ITE_LENOVO_YOGA   0x8386
> +#define USB_DEVICE_ID_ITE_LENOVO_YOGA2  0x8350
>  
>  #define USB_VENDOR_ID_JABRA		0x0b0e
>  #define USB_DEVICE_ID_JABRA_SPEAK_410	0x0412
> diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c
> index a76eb2a..05afa25 100644
> --- a/drivers/hid/hid-sensor-hub.c
> +++ b/drivers/hid/hid-sensor-hub.c
> @@ -777,6 +777,9 @@ static const struct hid_device_id sensor_hub_devices[] = {
>  	{ HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, USB_VENDOR_ID_ITE,
>  			USB_DEVICE_ID_ITE_LENOVO_YOGA),
>  			.driver_data = HID_SENSOR_HUB_ENUM_QUIRK},
> +	{ HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, USB_VENDOR_ID_ITE,
> +			USB_DEVICE_ID_ITE_LENOVO_YOGA2),
> +			.driver_data = HID_SENSOR_HUB_ENUM_QUIRK},
>  	{ HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, HID_ANY_ID,
>  		     HID_ANY_ID) },
>  	{ }


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ