Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751017Ab1EJSZ5 (ORCPT ); Tue, 10 May 2011 14:25:57 -0400 Received: from eriks.xs4all.nl ([83.160.41.216]:45415 "EHLO eriks.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750703Ab1EJSZ4 (ORCPT ); Tue, 10 May 2011 14:25:56 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=slagter.name; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type; q=dns; s=2007072601; b=ZQlhflSF/yCVYX8HffA0oD7/Aa 72jvPgSDDD/+L82OKwW5Nw4ASTXLntRRfcL0Yjke3YfmtGYPJkjQyY9s92IdnYtP NXxR/560iY9bR5iJshVp4tk0j0+YeyoM1K/tmdWo/n+4UoAeD0LUQHbLkngz8uhS r26apr3pZZFYDHC94= Message-ID: <4DC9832E.3040909@slagter.name> Date: Tue, 10 May 2011 20:25:50 +0200 From: Erik Slagter User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Mnenhy/0.8.3 Thunderbird/3.1.10 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: Greg KH CC: linux-kernel@vger.kernel.org, Maxin John Subject: Re: OOPS after connection Droids MuIn USB display References: <4DC3B0E3.7010008@slagter.name> <4DC3D296.9060707@slagter.name> <4DC42897.3000300@slagter.name> <4DC4EE99.1090205@slagter.name> <20110507200252.GA19753@kroah.com> In-Reply-To: <20110507200252.GA19753@kroah.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms050202010406060607000005" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 10186 Lines: 197 This is a cryptographically signed message in MIME format. --------------ms050202010406060607000005 Content-Type: multipart/mixed; boundary="------------040404070404060608030006" This is a multi-part message in MIME format. --------------040404070404060608030006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable On 07-05-11 22:02, Greg KH wrote: > On Sat, May 07, 2011 at 09:02:49AM +0200, Erik Slagter wrote: >>> Congratulations and thanks for explaining the details. >> And now my big question is, can this be fixed upstream? ;-) > Yes, if someone sends us a patch :) Hi Greg, Maxin John has been so kind as to make a patch which I tested and=20 tweaked a tiny bit. The attached patch set should do the trick. Does=20 this suffice this way? Thanks, Erik Slagter. --------------040404070404060608030006 Content-Type: text/x-csrc; name="diff-cdc-acm.c" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="diff-cdc-acm.c" --- cdc-acm.c-dist 2011-05-10 19:42:37.000000000 +0200 +++ cdc-acm.c 2011-05-10 19:50:07.000000000 +0200 @@ -946,7 +946,7 @@ u8 ac_management_function =3D 0; u8 call_management_function =3D 0; int call_interface_num =3D -1; - int data_interface_num; + int data_interface_num =3D -1; unsigned long quirks; int num_rx_buf; int i; @@ -1030,7 +1030,11 @@ if (!union_header) { if (call_interface_num > 0) { dev_dbg(&intf->dev, "No union descriptor, using call management descr= iptor\n"); - data_interface =3D usb_ifnum_to_if(usb_dev, (data_interface_num =3D c= all_interface_num)); + /* quirks for Droids MuIn LCD */ + if (quirks & NO_DATA_INTERFACE) + data_interface =3D usb_ifnum_to_if(usb_dev, 0); + else + data_interface =3D usb_ifnum_to_if(usb_dev, (data_interface_num =3D = call_interface_num)); control_interface =3D intf; } else { if (intf->cur_altsetting->desc.bNumEndpoints !=3D 3) { @@ -1622,6 +1626,11 @@ .driver_info =3D NOT_A_MODEM, }, =20 + /* Support for Droids MuIn LCD */ + { USB_DEVICE(0x04d8, 0x000b), + .driver_info =3D NO_DATA_INTERFACE, + }, + /* control interfaces without any protocol set */ { USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM, USB_CDC_PROTO_NONE) }, --------------040404070404060608030006 Content-Type: text/x-chdr; name="diff-cdc-acm.h" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="diff-cdc-acm.h" --- cdc-acm.h-dist 2011-05-10 19:43:18.000000000 +0200 +++ cdc-acm.h 2011-05-10 19:43:40.000000000 +0200 @@ -137,3 +137,4 @@ #define SINGLE_RX_URB 2 #define NO_CAP_LINE 4 #define NOT_A_MODEM 8 +#define NO_DATA_INTERFACE 16 --------------040404070404060608030006-- --------------ms050202010406060607000005 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIPWDCC BIowggNyoAMCAQICECf06hH0eobEbp27bqkXBwcwDQYJKoZIhvcNAQEFBQAwbzELMAkGA1UE BhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5h bCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9vdDAeFw0w NTA2MDcwODA5MTBaFw0yMDA1MzAxMDQ4MzhaMIGuMQswCQYDVQQGEwJVUzELMAkGA1UECBMC VVQxFzAVBgNVBAcTDlNhbHQgTGFrZSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5l dHdvcmsxITAfBgNVBAsTGGh0dHA6Ly93d3cudXNlcnRydXN0LmNvbTE2MDQGA1UEAxMtVVRO LVVTRVJGaXJzdC1DbGllbnQgQXV0aGVudGljYXRpb24gYW5kIEVtYWlsMIIBIjANBgkqhkiG 9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsjmFpPJ9q0E7YkY3rs3BYHW8OWX5ShpHornMSMxqmNVN NRm5pELlzkniii8efNIxB8dOtINknS4p1aJkxIW9hVE1eaROaJB7HHqkkqgX8pgV8pPMyaQy lbsMTzC9mKALi+VuG6JG+ni8om+rWV6lL8/K2m2qL+usobNq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1VVE4tVVNFUkZpcnN0LUNsaWVudCBBdXRoZW50aWNhdGlvbiBhbmQgRW1h aWwCEQCINeMohsQSwTXd5xIYntlXMIHXBgsqhkiG9w0BCRACCzGBx6CBxDCBrjELMAkGA1UE BhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2UgQ2l0eTEeMBwGA1UEChMV VGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExhodHRwOi8vd3d3LnVzZXJ0cnVzdC5j b20xNjA0BgNVBAMTLVVUTi1VU0VSRmlyc3QtQ2xpZW50IEF1dGhlbnRpY2F0aW9uIGFuZCBF bWFpbAIRAIg14yiGxBLBNd3nEhie2VcwDQYJKoZIhvcNAQEBBQAEggEAM8veJ4tJwtmfUO+B BdAobd5eEDeeIj3VslhCIEJs3Gj99zB21BL/t+FDV5KiuiZ3E4E0S8meUWUbWG2mIJr1dOZx +NLhlNzX+kGA1kaWOG878OEEIdsvq4XO6gwNMRobl6xDVfUW/OfYflaUyqV3TSZXEuQMWe69 IMTmfng2VvPy/4UyeuWxO+diEFwZoQmHYeX8qTuMmgNJNHvF4bUybd1KqnLWYDMMw80VAG8F LlnXijzXth39Hsw2fLSn0kKG+P+aLN/wN//Owh5Pq9QoyPTcO1wwoCWxlmpJILQshSBYKyug RdvLhkO7die1Bq65w5qpSp0Ju0e11vBNIu7QDgAAAAAAAA== --------------ms050202010406060607000005-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/