diff mbox series

USB: zaurus: support another broken Zaurus

Message ID 20220210122643.12274-1-oneukum@suse.com (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series USB: zaurus: support another broken Zaurus | expand

Checks

Context Check Description
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers warning 1 maintainers not CCed: oliver@neukum.org
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch fail CHECK: No space is necessary after a cast ERROR: code indent should use tabs where possible WARNING: please, no spaces at the start of a line
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/tree_selection success Guessing tree name failed - patch did not apply

Commit Message

Oliver Neukum Feb. 10, 2022, 12:26 p.m. UTC
This SL-6000 says Direct Line, not Ethernet

Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
 drivers/net/usb/cdc_ether.c | 12 ++++++++++++
 drivers/net/usb/zaurus.c    | 12 ++++++++++++
 2 files changed, 24 insertions(+)

Comments

Greg Kroah-Hartman Feb. 10, 2022, 12:58 p.m. UTC | #1
On Thu, Feb 10, 2022 at 01:26:43PM +0100, Oliver Neukum wrote:
> This SL-6000 says Direct Line, not Ethernet
> 
> Signed-off-by: Oliver Neukum <oneukum@suse.com>
> ---
>  drivers/net/usb/cdc_ether.c | 12 ++++++++++++
>  drivers/net/usb/zaurus.c    | 12 ++++++++++++
>  2 files changed, 24 insertions(+)
> 
> diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
> index eb3817d70f2b..9b4dfa3001d6 100644
> --- a/drivers/net/usb/cdc_ether.c
> +++ b/drivers/net/usb/cdc_ether.c
> @@ -583,6 +583,11 @@ static const struct usb_device_id	products[] = {
>  	.bInterfaceSubClass	= USB_CDC_SUBCLASS_ETHERNET, \
>  	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
>  
> +#define ZAURUS_FAKE_INTERFACE \
> +	.bInterfaceClass	= USB_CLASS_COMM, \
> +	.bInterfaceSubClass	= USB_CDC_SUBCLASS_MDLM, \
> +	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
> +
>  /* SA-1100 based Sharp Zaurus ("collie"), or compatible;
>   * wire-incompatible with true CDC Ethernet implementations.
>   * (And, it seems, needlessly so...)
> @@ -636,6 +641,13 @@ static const struct usb_device_id	products[] = {
>  	.idProduct              = 0x9032,	/* SL-6000 */
>  	ZAURUS_MASTER_INTERFACE,
>  	.driver_info		= 0,
> +}, {
> +	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
> +		 | USB_DEVICE_ID_MATCH_DEVICE,
> +	.idVendor               = 0x04DD,
> +	.idProduct              = 0x9032,	/* SL-6000 */
> +	ZAURUS_FAKE_INTERFACE,
> +	.driver_info		= 0,
>  }, {
>  	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
>  		 | USB_DEVICE_ID_MATCH_DEVICE,
> diff --git a/drivers/net/usb/zaurus.c b/drivers/net/usb/zaurus.c
> index 8e717a0b559b..9243be9bd2aa 100644
> --- a/drivers/net/usb/zaurus.c
> +++ b/drivers/net/usb/zaurus.c
> @@ -256,6 +256,11 @@ static const struct usb_device_id	products [] = {
>  	.bInterfaceSubClass	= USB_CDC_SUBCLASS_ETHERNET, \
>  	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
>  
> +#define ZAURUS_FAKE_INTERFACE \
> +	.bInterfaceClass	= USB_CLASS_COMM, \
> +	.bInterfaceSubClass	= USB_CDC_SUBCLASS_MDLM, \
> +	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
> +
>  /* SA-1100 based Sharp Zaurus ("collie"), or compatible. */
>  {
>  	.match_flags	=   USB_DEVICE_ID_MATCH_INT_INFO
> @@ -313,6 +318,13 @@ static const struct usb_device_id	products [] = {
>  	.idProduct              = 0x9032,	/* SL-6000 */
>  	ZAURUS_MASTER_INTERFACE,
>  	.driver_info = ZAURUS_PXA_INFO,
> +}, {
> +        .match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
> +                 | USB_DEVICE_ID_MATCH_DEVICE,
> +        .idVendor               = 0x04DD,
> +        .idProduct              = 0x9032,       /* SL-6000 */
> +        ZAURUS_FAKE_INTERFACE,
> +        .driver_info = (unsigned long) &bogus_mdlm_info,

No tabs here?

And isn't there a needed "Reported-by:" for this one as it came from a
bug report?

thanks,

greg k-h
Oliver Neukum Feb. 10, 2022, 2:13 p.m. UTC | #2
On 10.02.22 13:58, Greg KH wrote:
> On Thu, Feb 10, 2022 at 01:26:43PM +0100, Oliver Neukum wrote:
>> This SL-6000 says Direct Line, not Ethernet
>>
>> Signed-off-by: Oliver Neukum <oneukum@suse.com>
>> ---
>>  drivers/net/usb/cdc_ether.c | 12 ++++++++++++
>>  drivers/net/usb/zaurus.c    | 12 ++++++++++++
>>  2 files changed, 24 insertions(+)
>>
>> diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
>> index eb3817d70f2b..9b4dfa3001d6 100644
>> --- a/drivers/net/usb/cdc_ether.c
>> +++ b/drivers/net/usb/cdc_ether.c
>> @@ -583,6 +583,11 @@ static const struct usb_device_id	products[] = {
>>  	.bInterfaceSubClass	= USB_CDC_SUBCLASS_ETHERNET, \
>>  	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
>>  
>> +#define ZAURUS_FAKE_INTERFACE \
>> +	.bInterfaceClass	= USB_CLASS_COMM, \
>> +	.bInterfaceSubClass	= USB_CDC_SUBCLASS_MDLM, \
>> +	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
>> +
>>  /* SA-1100 based Sharp Zaurus ("collie"), or compatible;
>>   * wire-incompatible with true CDC Ethernet implementations.
>>   * (And, it seems, needlessly so...)
>> @@ -636,6 +641,13 @@ static const struct usb_device_id	products[] = {
>>  	.idProduct              = 0x9032,	/* SL-6000 */
>>  	ZAURUS_MASTER_INTERFACE,
>>  	.driver_info		= 0,
>> +}, {
>> +	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
>> +		 | USB_DEVICE_ID_MATCH_DEVICE,
>> +	.idVendor               = 0x04DD,
>> +	.idProduct              = 0x9032,	/* SL-6000 */
>> +	ZAURUS_FAKE_INTERFACE,
>> +	.driver_info		= 0,
>>  }, {
>>  	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
>>  		 | USB_DEVICE_ID_MATCH_DEVICE,
>> diff --git a/drivers/net/usb/zaurus.c b/drivers/net/usb/zaurus.c
>> index 8e717a0b559b..9243be9bd2aa 100644
>> --- a/drivers/net/usb/zaurus.c
>> +++ b/drivers/net/usb/zaurus.c
>> @@ -256,6 +256,11 @@ static const struct usb_device_id	products [] = {
>>  	.bInterfaceSubClass	= USB_CDC_SUBCLASS_ETHERNET, \
>>  	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
>>  
>> +#define ZAURUS_FAKE_INTERFACE \
>> +	.bInterfaceClass	= USB_CLASS_COMM, \
>> +	.bInterfaceSubClass	= USB_CDC_SUBCLASS_MDLM, \
>> +	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
>> +
>>  /* SA-1100 based Sharp Zaurus ("collie"), or compatible. */
>>  {
>>  	.match_flags	=   USB_DEVICE_ID_MATCH_INT_INFO
>> @@ -313,6 +318,13 @@ static const struct usb_device_id	products [] = {
>>  	.idProduct              = 0x9032,	/* SL-6000 */
>>  	ZAURUS_MASTER_INTERFACE,
>>  	.driver_info = ZAURUS_PXA_INFO,
>> +}, {
>> +        .match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
>> +                 | USB_DEVICE_ID_MATCH_DEVICE,
>> +        .idVendor               = 0x04DD,
>> +        .idProduct              = 0x9032,       /* SL-6000 */
>> +        ZAURUS_FAKE_INTERFACE,
>> +        .driver_info = (unsigned long) &bogus_mdlm_info,
> No tabs here?
Checking ...
>
> And isn't there a needed "Reported-by:" for this one as it came from a
> bug report?
Do we do these for reports by the kernel.org bugzilla?

    Regards
        Oliver
Greg Kroah-Hartman Feb. 10, 2022, 2:17 p.m. UTC | #3
On Thu, Feb 10, 2022 at 03:13:49PM +0100, Oliver Neukum wrote:
> 
> On 10.02.22 13:58, Greg KH wrote:
> > On Thu, Feb 10, 2022 at 01:26:43PM +0100, Oliver Neukum wrote:
> >> This SL-6000 says Direct Line, not Ethernet
> >>
> >> Signed-off-by: Oliver Neukum <oneukum@suse.com>
> >> ---
> >>  drivers/net/usb/cdc_ether.c | 12 ++++++++++++
> >>  drivers/net/usb/zaurus.c    | 12 ++++++++++++
> >>  2 files changed, 24 insertions(+)
> >>
> >> diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
> >> index eb3817d70f2b..9b4dfa3001d6 100644
> >> --- a/drivers/net/usb/cdc_ether.c
> >> +++ b/drivers/net/usb/cdc_ether.c
> >> @@ -583,6 +583,11 @@ static const struct usb_device_id	products[] = {
> >>  	.bInterfaceSubClass	= USB_CDC_SUBCLASS_ETHERNET, \
> >>  	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
> >>  
> >> +#define ZAURUS_FAKE_INTERFACE \
> >> +	.bInterfaceClass	= USB_CLASS_COMM, \
> >> +	.bInterfaceSubClass	= USB_CDC_SUBCLASS_MDLM, \
> >> +	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
> >> +
> >>  /* SA-1100 based Sharp Zaurus ("collie"), or compatible;
> >>   * wire-incompatible with true CDC Ethernet implementations.
> >>   * (And, it seems, needlessly so...)
> >> @@ -636,6 +641,13 @@ static const struct usb_device_id	products[] = {
> >>  	.idProduct              = 0x9032,	/* SL-6000 */
> >>  	ZAURUS_MASTER_INTERFACE,
> >>  	.driver_info		= 0,
> >> +}, {
> >> +	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
> >> +		 | USB_DEVICE_ID_MATCH_DEVICE,
> >> +	.idVendor               = 0x04DD,
> >> +	.idProduct              = 0x9032,	/* SL-6000 */
> >> +	ZAURUS_FAKE_INTERFACE,
> >> +	.driver_info		= 0,
> >>  }, {
> >>  	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
> >>  		 | USB_DEVICE_ID_MATCH_DEVICE,
> >> diff --git a/drivers/net/usb/zaurus.c b/drivers/net/usb/zaurus.c
> >> index 8e717a0b559b..9243be9bd2aa 100644
> >> --- a/drivers/net/usb/zaurus.c
> >> +++ b/drivers/net/usb/zaurus.c
> >> @@ -256,6 +256,11 @@ static const struct usb_device_id	products [] = {
> >>  	.bInterfaceSubClass	= USB_CDC_SUBCLASS_ETHERNET, \
> >>  	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
> >>  
> >> +#define ZAURUS_FAKE_INTERFACE \
> >> +	.bInterfaceClass	= USB_CLASS_COMM, \
> >> +	.bInterfaceSubClass	= USB_CDC_SUBCLASS_MDLM, \
> >> +	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
> >> +
> >>  /* SA-1100 based Sharp Zaurus ("collie"), or compatible. */
> >>  {
> >>  	.match_flags	=   USB_DEVICE_ID_MATCH_INT_INFO
> >> @@ -313,6 +318,13 @@ static const struct usb_device_id	products [] = {
> >>  	.idProduct              = 0x9032,	/* SL-6000 */
> >>  	ZAURUS_MASTER_INTERFACE,
> >>  	.driver_info = ZAURUS_PXA_INFO,
> >> +}, {
> >> +        .match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
> >> +                 | USB_DEVICE_ID_MATCH_DEVICE,
> >> +        .idVendor               = 0x04DD,
> >> +        .idProduct              = 0x9032,       /* SL-6000 */
> >> +        ZAURUS_FAKE_INTERFACE,
> >> +        .driver_info = (unsigned long) &bogus_mdlm_info,
> > No tabs here?
> Checking ...
> >
> > And isn't there a needed "Reported-by:" for this one as it came from a
> > bug report?
> Do we do these for reports by the kernel.org bugzilla?

We should, why not?
Oliver Neukum Feb. 10, 2022, 2:20 p.m. UTC | #4
On 10.02.22 15:17, Greg KH wrote:
> On Thu, Feb 10, 2022 at 03:13:49PM +0100, Oliver Neukum wrote:
>>
>>> And isn't there a needed "Reported-by:" for this one as it came from a
>>> bug report?
>> Do we do these for reports by the kernel.org bugzilla?
> We should, why not?

Hi,


because it sort of implies that it was reported to a mailing list.
If there is a bugzilla for it, shouldn't we reference it?

    Regards
        Oliver
Greg Kroah-Hartman Feb. 10, 2022, 2:49 p.m. UTC | #5
On Thu, Feb 10, 2022 at 03:20:38PM +0100, Oliver Neukum wrote:
> 
> On 10.02.22 15:17, Greg KH wrote:
> > On Thu, Feb 10, 2022 at 03:13:49PM +0100, Oliver Neukum wrote:
> >>
> >>> And isn't there a needed "Reported-by:" for this one as it came from a
> >>> bug report?
> >> Do we do these for reports by the kernel.org bugzilla?
> > We should, why not?
> 
> Hi,
> 
> 
> because it sort of implies that it was reported to a mailing list.
> If there is a bugzilla for it, shouldn't we reference it?

Yes please do that as well, that's what the "Link:" tag is for.

thanks,

greg k-h
diff mbox series

Patch

diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index eb3817d70f2b..9b4dfa3001d6 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -583,6 +583,11 @@  static const struct usb_device_id	products[] = {
 	.bInterfaceSubClass	= USB_CDC_SUBCLASS_ETHERNET, \
 	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
 
+#define ZAURUS_FAKE_INTERFACE \
+	.bInterfaceClass	= USB_CLASS_COMM, \
+	.bInterfaceSubClass	= USB_CDC_SUBCLASS_MDLM, \
+	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
+
 /* SA-1100 based Sharp Zaurus ("collie"), or compatible;
  * wire-incompatible with true CDC Ethernet implementations.
  * (And, it seems, needlessly so...)
@@ -636,6 +641,13 @@  static const struct usb_device_id	products[] = {
 	.idProduct              = 0x9032,	/* SL-6000 */
 	ZAURUS_MASTER_INTERFACE,
 	.driver_info		= 0,
+}, {
+	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
+		 | USB_DEVICE_ID_MATCH_DEVICE,
+	.idVendor               = 0x04DD,
+	.idProduct              = 0x9032,	/* SL-6000 */
+	ZAURUS_FAKE_INTERFACE,
+	.driver_info		= 0,
 }, {
 	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
 		 | USB_DEVICE_ID_MATCH_DEVICE,
diff --git a/drivers/net/usb/zaurus.c b/drivers/net/usb/zaurus.c
index 8e717a0b559b..9243be9bd2aa 100644
--- a/drivers/net/usb/zaurus.c
+++ b/drivers/net/usb/zaurus.c
@@ -256,6 +256,11 @@  static const struct usb_device_id	products [] = {
 	.bInterfaceSubClass	= USB_CDC_SUBCLASS_ETHERNET, \
 	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
 
+#define ZAURUS_FAKE_INTERFACE \
+	.bInterfaceClass	= USB_CLASS_COMM, \
+	.bInterfaceSubClass	= USB_CDC_SUBCLASS_MDLM, \
+	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
+
 /* SA-1100 based Sharp Zaurus ("collie"), or compatible. */
 {
 	.match_flags	=   USB_DEVICE_ID_MATCH_INT_INFO
@@ -313,6 +318,13 @@  static const struct usb_device_id	products [] = {
 	.idProduct              = 0x9032,	/* SL-6000 */
 	ZAURUS_MASTER_INTERFACE,
 	.driver_info = ZAURUS_PXA_INFO,
+}, {
+        .match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
+                 | USB_DEVICE_ID_MATCH_DEVICE,
+        .idVendor               = 0x04DD,
+        .idProduct              = 0x9032,       /* SL-6000 */
+        ZAURUS_FAKE_INTERFACE,
+        .driver_info = (unsigned long) &bogus_mdlm_info,
 }, {
 	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
 		 | USB_DEVICE_ID_MATCH_DEVICE,