| From be4de1136b8ecc82a50cbbda7381e0c5faa3d32c Mon Sep 17 00:00:00 2001 |
| From: Michael Shuen <mshuen@nvidia.com> |
| Date: Tue, 10 Dec 2024 23:54:51 +0000 |
| Subject: [PATCH] meta-hgxr: Bind CP2112 driver to MCU VID/PID |
| |
| Fixes jira https://jirasw.nvidia.com/browse/DGXOPENBMC-14257 |
| |
| Upstream-Status: Pending |
| Signed-off-by: Jinliang Wang <jinliangw@google.com> |
| --- |
| drivers/hid/hid-cp2112.c | 5 +++++ |
| 1 file changed, 5 insertions(+) |
| |
| diff --git a/drivers/hid/hid-cp2112.c b/drivers/hid/hid-cp2112.c |
| index 4900aa03ef47..18308ad27fbd 100644 |
| --- a/drivers/hid/hid-cp2112.c |
| +++ b/drivers/hid/hid-cp2112.c |
| @@ -50,6 +50,10 @@ static const char * const cp2112_cell_names[] = { |
| #define CP2112_GPIO_MAX_GPIO 8 |
| #define CP2112_GPIO_ALL_GPIO_MASK GENMASK(7, 0) |
| |
| +#ifndef USB_VENDOR_ID_NVIDIA |
| +#define USB_VENDOR_ID_NVIDIA 0x0955 |
| +#endif |
| + |
| enum { |
| CP2112_GPIO_CONFIG = 0x02, |
| CP2112_GPIO_GET = 0x03, |
| @@ -166,6 +170,7 @@ static const int RESPONSE_TIMEOUT = 50; |
| |
| static const struct hid_device_id cp2112_devices[] = { |
| { HID_USB_DEVICE(USB_VENDOR_ID_CYGNAL, USB_DEVICE_ID_CYGNAL_CP2112) }, |
| + { HID_USB_DEVICE(USB_VENDOR_ID_NVIDIA, 0xCF11) }, |
| { } |
| }; |
| MODULE_DEVICE_TABLE(hid, cp2112_devices); |
| -- |
| 2.52.0.313.g674ac2bdf7-goog |
| |