Re: [patch 2.6.21-rc5] usb-serial, ti_usb: fix usb configuration changing

Oleg Verych <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Palacky University in Olomouc, experimental physics department.
Message-ID <[email protected]>
On Mon, Apr 02, 2007 at 05:53:09AM -0500, Al Borchers wrote:
> Greg, Oleg --
> 
> I tested this in 2.6.21-rc5 and it no longer works.
> 
> The problem is a change in usb-serial.c, in usb_serial_probe().
> In 2.6.20 get_free_serial() is called before the attach function.
> In 2.6.21-rc5 get_free_serial() is called after the attach function.
> If the attach function returns non-zero (as it does in ti_usb_3410_5052
> when changing the configuration) then the device is disconnected,
> which calls usb_serial_disconnect(), usb_serial_put(), destroy_serial(),
> return_serial(), which NULLs out the serial table for minor number 0
> (the initial value of the usb_serial minor field before get_free_serial()
> is called.)  That is a problem if minor number 0 has already been allocated
> to another usb serial device.

OK, then i must recheck, why it works for me. Maybe it's just another
sysfs crap, because i tested on rc5 without any of it enabled.
____

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.