Re: [RFC] raise the maximum number of usb-serial devices to 512

2013-06-04 Thread Greg KH
On Tue, Jun 04, 2013 at 07:27:20PM +0200, Tobias Winter wrote: > On 04.06.2013 04:49, Greg KH wrote: > > Tobias, can you test this patch out? Note, I only compiled it, did not > > get the chance to actually run it, so it might not work at all. > > Sure, I'll gladly give it a try. Seeing the comme

Re: [RFC] raise the maximum number of usb-serial devices to 512

2013-06-04 Thread Tobias Winter
On 04.06.2013 04:49, Greg KH wrote: > Tobias, can you test this patch out? Note, I only compiled it, did not > get the chance to actually run it, so it might not work at all. Sure, I'll gladly give it a try. Seeing the comments on the code, I'm just wondering if there might be a more recent versi

Re: [RFC] raise the maximum number of usb-serial devices to 512

2013-06-04 Thread Greg KH
On Tue, Jun 04, 2013 at 01:04:01PM +0200, Johan Hovold wrote: > On Mon, Jun 03, 2013 at 07:49:59PM -0700, Greg KH wrote: > > On Mon, May 27, 2013 at 02:28:51PM +0200, Bjørn Mork wrote: > > > But, IMHO, a nicer approach would be to make the allocation completely > > > dynamic, using e.g. the idr sub

Re: [RFC] raise the maximum number of usb-serial devices to 512

2013-06-04 Thread Greg KH
On Tue, Jun 04, 2013 at 10:13:47AM -0400, Alan Stern wrote: > On Mon, 3 Jun 2013, Greg KH wrote: > > > On Mon, May 27, 2013 at 02:28:51PM +0200, Bj?rn Mork wrote: > > > But, IMHO, a nicer approach would be to make the allocation completely > > > dynamic, using e.g. the idr subsystem. Static tables

Re: [RFC] raise the maximum number of usb-serial devices to 512

2013-06-04 Thread Greg KH
On Mon, Jun 03, 2013 at 10:59:08PM -0400, Dave Jones wrote: > On Mon, Jun 03, 2013 at 07:49:59PM -0700, Greg Kroah-Hartman wrote: > > On Mon, May 27, 2013 at 02:28:51PM +0200, Bjørn Mork wrote: > > > But, IMHO, a nicer approach would be to make the allocation completely > > > dynamic, using e.g.

Re: [RFC] raise the maximum number of usb-serial devices to 512

2013-06-04 Thread Alan Stern
On Mon, 3 Jun 2013, Greg KH wrote: > On Mon, May 27, 2013 at 02:28:51PM +0200, Bj�rn Mork wrote: > > But, IMHO, a nicer approach would be to make the allocation completely > > dynamic, using e.g. the idr subsystem. Static tables are always feel > > like straight jackets to me, no matter how big th

Re: [RFC] raise the maximum number of usb-serial devices to 512

2013-06-04 Thread Johan Hovold
On Mon, Jun 03, 2013 at 07:49:59PM -0700, Greg KH wrote: > On Mon, May 27, 2013 at 02:28:51PM +0200, Bjørn Mork wrote: > > But, IMHO, a nicer approach would be to make the allocation completely > > dynamic, using e.g. the idr subsystem. Static tables are always feel > > like straight jackets to me,

Re: [RFC] raise the maximum number of usb-serial devices to 512

2013-06-03 Thread Dave Jones
On Mon, Jun 03, 2013 at 07:49:59PM -0700, Greg Kroah-Hartman wrote: > On Mon, May 27, 2013 at 02:28:51PM +0200, Bjørn Mork wrote: > > But, IMHO, a nicer approach would be to make the allocation completely > > dynamic, using e.g. the idr subsystem. Static tables are always feel > > like straight

Re: [RFC] raise the maximum number of usb-serial devices to 512

2013-06-03 Thread Greg KH
On Mon, May 27, 2013 at 02:28:51PM +0200, Bjørn Mork wrote: > But, IMHO, a nicer approach would be to make the allocation completely > dynamic, using e.g. the idr subsystem. Static tables are always feel > like straight jackets to me, no matter how big they are :) You are right, I didn't change th

Re: [RFC] raise the maximum number of usb-serial devices to 512

2013-05-27 Thread Bjørn Mork
Tobias Winter writes: > Hi, > > I did a bit more fiddling with the usb-serial stack and got it to > support more than 256 devices. I tested it with up to 281 FTDI > singleport adapters. (After that i ran out of usb cables.. ) > > Signed-off-by: Jakob-Tobias Winter > --- > include/linux/usb/seri

[RFC] raise the maximum number of usb-serial devices to 512

2013-05-27 Thread Tobias Winter
Hi, I did a bit more fiddling with the usb-serial stack and got it to support more than 256 devices. I tested it with up to 281 FTDI singleport adapters. (After that i ran out of usb cables.. ) Signed-off-by: Jakob-Tobias Winter --- include/linux/usb/serial.h |6 +++--- 1 file changed, 3 in