Re: [PATCH 1/1] support new huawei devices in option.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2013-10-11 at 13:57 -0700, gregkh@xxxxxxxxxxxxxxxxxxx wrote:
> On Fri, Oct 11, 2013 at 03:48:21AM +0000, Fangxiaozhi (Franko) wrote:
> > 1. Add new supporting declarations to option.c, to support Huawei new devices with new bInterfaceSubClass value.
> > Signed-off-by: fangxiaozhi <huananhu@xxxxxxxxxx>
> 
> In the future, can you use an email client that doesn't turn tabs into
> spaces, so I don't have to edit the patch by hand?
> 
> Also:
> 
> > + { USB_VENDOR_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, 0xff, 0x03, 0x01) },
> > + { USB_VENDOR_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, 0xff, 0x03, 0x02) },
> 
> <snip>
> 
> That's a huge list of ids, is there any way we can just mark all of
> these as used by the device in an easier manner?
> 
> I'll take this for now, but I have a feeling that this list is just
> going to get worse over time, right?

This is very, very odd.  Note the (ab)use of tons of subclass/protocol
numbers here to match devices instead of VID/PID.  Perhaps Huawei is
actually *running out* of PIDs or something?  There's no way every
single one of these devices actually speaks a different comm protocol on
these USB interfaces.  There has to be a reason that Huawei is now using
subclass/protocol for device matching instead of VID/PID like everyone
else is...

That said, I'm not sure there's much we can do about it.  But it still
raises one of my eyebrows up to the ceiling.

Dan

> thanks,
> 
> greg k-h
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux