Re: [PATCH] USB: serial: Enforce USB driver and USB serial driver match

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

 



On Tue, 29 May 2012, Bjørn Mork wrote:

> Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> writes:
> 
> > Maybe the same thing would have happened in 3.3, which didn't have the 
> > new registration code.  Can you test it?
> 
> This is what happens in 3.3.7:
> 
> May 29 20:51:40 nemi kernel: [   97.008728] bus: 'usb': driver_probe_device: matched device 5-4:1.3 with driver usbserial_generic
> May 29 20:51:40 nemi kernel: [   97.008735] bus: 'usb': really_probe: probing driver usbserial_generic with device 5-4:1.3
> May 29 20:51:40 nemi kernel: [   97.008761] usbserial_generic: probe of 5-4:1.3 rejects match -19
> May 29 20:51:40 nemi kernel: [   97.008773] bus: 'usb': driver_probe_device: matched device 5-4:1.3 with driver sierra
> May 29 20:51:40 nemi kernel: [   97.008780] bus: 'usb': really_probe: probing driver sierra with device 5-4:1.3
> May 29 20:51:40 nemi kernel: [   97.008802] sierra 5-4:1.3: Sierra USB modem converter detected
> 
> So the usbserial_generic driver is probed first there as well, but the
> probe fails and everything is fine.

Okay.  generic_probe() used to reject bad matches, but that routine is 
gone now.  It was removed as part of the registration transition.

That explains why the problem started showing up now.

Alan Stern

--
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