UPSTREAM: HID: intel-ish-hid: Use VID/PID from ISH

The Intel ISH HID can now have other devices attached to it, not just
sensors. Hence ISH HID transport is no longer just used for sensors.
Currently the vendor and product id is hardcoded for sensors, but they
can be obtained from ISH firmware for the real device. The driver already
extract them and store as part of device_info structure in client_data.
So use vendor id/product id obtained from the ISH firmware.

Signed-off-by: Srinivas Pandruvada <>
Signed-off-by: Benjamin Tissoires <>
(cherry picked from commit 1578461a18596cf33093b392d1b7853ba4276154)
Signed-off-by: Shane McKee <>

TEST=$ `dmesg | grep ishtp` shows an ishtp driver being loaded
TEST=$ `watch -n 0.1 cat /sys/devices/pci0000:00/0000:00:13.0/
cros-ec-accel.0/iio:device0/in_accel_*_raw` should return 3
accelerometer values. Move the device around and ensure that movement
results in sane values.

Change-Id: I20fc1ad553271f0c015570032c31d16e60c4ef48
Signed-off-by: Nathan Ciobanu <>
Signed-off-by: Hyungwoo Yang <>
Commit-Ready: ChromeOS CL Exonerator Bot <>
Reviewed-by: Sean Paul <>
Reviewed-by: Jett Rink <>
1 file changed