From 95de8f043bd19e4fb9398bc0b3fe5a309e4a710b Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Wed, 17 Oct 2012 11:06:38 +0800 Subject: [PATCH] Change adb protocol to sdb protocol Currently, we have a forked sdbd for our kernel so there was no need to patch our kernel. However, the forked sdbd will be merged to upstream sdbd and to make it compatible with adb in userspace cost a large effort. So the better way is patch our kernel to adopt sdb protocol, on the other hand, no patch needed to sdbd user space server and client. Change-Id: I4b3f426d33b2c8fdb5042f9cd60a7b1226c92eb1 Signed-off-by: Chengwei Yang --- drivers/usb/gadget/f_adb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/f_adb.c b/drivers/usb/gadget/f_adb.c index 56c596e..04f2fd0 100644 --- a/drivers/usb/gadget/f_adb.c +++ b/drivers/usb/gadget/f_adb.c @@ -32,7 +32,7 @@ /* number of tx requests to allocate */ #define TX_REQ_MAX 4 -static const char adb_shortname[] = "android_adb"; +static const char adb_shortname[] = "samsung_sdb"; struct adb_dev { struct usb_function function; @@ -63,8 +63,8 @@ static struct usb_interface_descriptor adb_interface_desc = { .bInterfaceNumber = 0, .bNumEndpoints = 2, .bInterfaceClass = 0xFF, - .bInterfaceSubClass = 0x42, - .bInterfaceProtocol = 1, + .bInterfaceSubClass = 0x20, + .bInterfaceProtocol = 2, }; static struct usb_endpoint_descriptor adb_highspeed_in_desc = { -- 2.7.4