Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64add897 authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: misc: Add support for 9902 and 9903 PIDs



Add support for creation of misc device, diag and IPC
traffic channels, when the connected device has 0x05C6
VID and 0x9902 or 0x9903 PID.
   0x9902 : WLAN + QMI + DIAG + Sahara
   0x9903 : BT ACL + BT SCO + WLAN + QMI + DIAG + Sahara

Change-Id: I7fa081abbb8860ff4d4c802522d4eb77cf573a18
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 88a22f28
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -806,6 +806,18 @@ static const struct usb_device_id diag_bridge_ids[] = {
	/* 9901, ifc#3 refers to IPC client interface */
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x9901, 3),
	.driver_info =	DEV_ID(1), },
	/* 9902, ifc#2 refers to diag client interface */
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x9902, 2),
	.driver_info =	DEV_ID(0), },
	/* 9902, ifc#1 refers to IPC client interface */
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x9902, 1),
	.driver_info =	DEV_ID(1), },
	/* 9903, ifc#4 refers to diag client interface */
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x9903, 4),
	.driver_info =	DEV_ID(0), },
	/* 9903, ifc#3 refers to IPC client interface */
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x9903, 3),
	.driver_info =	DEV_ID(1), },

	{} /* terminating entry */
};
+6 −0
Original line number Diff line number Diff line
@@ -467,6 +467,10 @@ static const struct usb_device_id ksb_usb_ids[] = {
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x900E, 0), },
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x9900, 0), },
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x9901, 0), },
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x9902, 3),
	.driver_info = (unsigned long)&ksb_fboot_dev, },
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x9903, 5),
	.driver_info = (unsigned long)&ksb_fboot_dev, },
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x9048, 2),
	.driver_info = (unsigned long)&ksb_efs_hsic_dev, },
	{ USB_DEVICE_INTERFACE_NUMBER(0x5c6, 0x904C, 2),
@@ -724,6 +728,8 @@ ksb_usb_probe(struct usb_interface *ifc, const struct usb_device_id *id)
		mdev->name = ksb->name;
		break;
	case 0x9008:
	case 0x9902:
	case 0x9903:
		ksb = __ksb[bus_id];
		mdev = &fbdev[bus_id];
		break;