On Thu, 2012-03-15 at 19:27 +0800, Ming Lei wrote: > Hi, > > On Thu, Mar 15, 2012 at 7:14 PM, Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote: > > >> > Also, is there a guarantee your: iface - interface[0] thing is <8 ? If > >> > not, its broken. > >> > >> One configuration may support at most 32 interfaces in current usb stack, > >> but looks there aren't such devices with more than 8 mass storage > >> interfaces in reality. Alan, did you hear such devices? > > > > So you're putting yourself in the hands of device manufacturers? Doesn't > > seem like a good place to be if you ask me. > > So how about using lockdep_set_class to address the problem? Can do, you say the USB spec allows for 32 interfaces, what happens if a device manufacturer 'mis-reads' the spec and puts 64 on? Will that simply not work or will we get 'fun' results? -- 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