Request: Lenovo Yoga 910 sensors bug

Marcelo Henrique Cerri marcelo.cerri at canonical.com
Wed Aug 2 12:03:01 UTC 2017


Hi Chris,

Please send the patch inline and following the formatting rules
described in this link:

https://wiki.ubuntu.com/Kernel/Dev/StablePatchFormat

-- 
Regards,
Marcelo

On Wed, Aug 02, 2017 at 11:40:33AM +0200, Chris MacNaughton wrote:
> Attached is the (mbox formatted?) patch
> 
> On 08/02/2017 11:35 AM, Chris MacNaughton wrote:
> > Referencing https://launchpad.net/ubuntu/+source/linux/+bug/1708120,
> >
> > Attached is the patch to enable to required quirks to make the sensors work.
> >
> > Chris MacNaughton
> >
> >
> >
> 

> From patchwork Sat Jul 15 12:27:21 2017
> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: HID: Add quirk for Lenovo Yoga 910 with ITE Chips
> From: Patrick Pedersen <ctx.xda at gmail.com>
> X-Patchwork-Id: 9842347
> Message-Id: <20170715122721.6908-1-ctx.xda at gmail.com>
> To: jikos at kernel.org
> Cc: benjamin.tissoires at redhat.com, jic23 at kernel.org,
>  srinivas.pandruvada at linux.intel.com, linux-input at vger.kernel.org,
>  linux-kernel at vger.kernel.org, linux-iio at vger.kernel.org
> Date: Sat, 15 Jul 2017 14:27:21 +0200
> 
> As with previous generations of this device (see https://patchwork.kernel.org/patch/7887361/), the ITE
> HID Sensor Hub, responsible for the accelerometer and als sensor, requires a quirk entry.
> 
> Without the entry, the Sensor Hub can't be accessed and the kernel fails to report any movements. As a result
> iio-sensor-proxy receives no new data.
> 
> It shall additionally be noted that the i2c-hid 'sleep' bug (present since kernel ver. 4.3)
> still affects the driver. This means that the sensor hub will not report any movement, until
> the device is suspended and resumed.
> 
> Signed-off-by: Patrick Pedersen <ctx.xda at gmail.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 4f9a3938189a..b427a0bcfbe8 100644
> --- a/drivers/hid/hid-ids.h
> +++ b/drivers/hid/hid-ids.h
> @@ -565,6 +565,7 @@
>  #define USB_DEVICE_ID_ITE_LENOVO_YOGA   0x8386
>  #define USB_DEVICE_ID_ITE_LENOVO_YOGA2  0x8350
>  #define USB_DEVICE_ID_ITE_LENOVO_YOGA900	0x8396
> +#define USB_DEVICE_ID_ITE_LENOVO_YOGA910	0x8186
>  
>  #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 4ef73374a8f9..85b8425483bd 100644
> --- a/drivers/hid/hid-sensor-hub.c
> +++ b/drivers/hid/hid-sensor-hub.c
> @@ -820,6 +820,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_YOGA900),
>  			.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_YOGA910),
> +			.driver_data = HID_SENSOR_HUB_ENUM_QUIRK},
>  	{ HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, USB_VENDOR_ID_INTEL_0,
>  			0x22D8),
>  			.driver_data = HID_SENSOR_HUB_ENUM_QUIRK},





> -- 
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20170802/f3eb06db/attachment.sig>


More information about the kernel-team mailing list