>From f8c35427986bad983f2b321c15cdcbe15cc45a4c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 5 Jan 2010 12:49:47 -0800 Subject: [PATCH] net: cdc_ether.c: Add SE J105i to device whitelist This patch adds the Sony Ericsson J105i (Naite) mobile phone to the cdc_ether device whitelist, enabling access to the modem. I would think more SE models of this generation (2009Q3) with builtin HSDPA modules also needs to be added to this list. Signed-off-by: Thomas Loo Signed-off-by: Marcel Holtmann --- drivers/net/usb/cdc_ether.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index 21e183a..a099d92 100644 --- a/drivers/net/usb/cdc_ether.c +++ b/drivers/net/usb/cdc_ether.c @@ -435,6 +435,14 @@ static const struct driver_info mbm_info = { .status = cdc_status, }; +static const struct driver_info mdlm_info = { + .description = "MDLM Ethernet Device", + .flags = FLAG_ETHER, + .bind = cdc_bind, + .unbind = usbnet_cdc_unbind, + .status = cdc_status, +}; + /*-------------------------------------------------------------------------*/ @@ -584,6 +592,11 @@ static const struct usb_device_id products [] = { USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), .driver_info = (unsigned long) &mbm_info, }, { + /* Sony Ericsson J105i (Naite) */ + USB_DEVICE_AND_INTERFACE_INFO(0x0fce, 0xd12d, USB_CLASS_COMM, + USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), + .driver_info = (unsigned long) &mdlm_info, +}, { /* Toshiba F3507g */ USB_DEVICE_AND_INTERFACE_INFO(0x0930, 0x130b, USB_CLASS_COMM, USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), -- 1.6.5.2