On Wed, Jun 29, 2011 at 11:23:11AM -0400, Alan Stern wrote: > On Wed, 29 Jun 2011, Kirill Smelkov wrote: > > > > Apart from that one issue, > > > > > > Acked-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> > > > > Thanks. > > > > What should we do with this patch now? Should I put > > > > > > Copyright (C) 2007 by Alan Stern > > > > there? Or something else? > > Yes, put that in. > > > Or maybe drop that copyright notice altogether becase usually it gets > > outdated very quickly, and who made what is visible through git > > log/blame? > > Copyright information is important, and it must be present in the > actual file -- not somewhere else (such as a changelog). Ok, I've put that in. > > I'm ok with any case, please just tell me how to proceed. > > > > > > And what about main "[PATCH v2 2/2] USB: EHCI: Allow users to override > > 80% max periodic bandwidth"? > > > > Was it Acked together with this one, or not and review is pending? > > Curious because I'm new here... > > I haven't taken the time to review it yet, sorry... Nevermind, I've just pinged. > Mostly it looks okay. In store_uframe_periodic_max(), you can use > kstrtouint() instead of sscanf() -- that seems to be the trend these > days. Thanks for the advice - changed to kstrtouint (which as it turned out, with base=0 can read oct/hex/dec data as specified by user). > Also, when decreasing the schedule limit, do you think it is really > necessary to check that the current allocation doesn't exceed the new > limit? I think it would be sufficient to apply the new limit just to > new bandwidth allocation requests. After all, this API is meant for > experts only. I think yes, it is needed. E.g. because there is this check in periodic_usecs(): #ifdef DEBUG if (usecs > ehci->uframe_periodic_max) ehci_err (ehci, "uframe %d sched overrun: %d usecs\n", frame * 8 + uframe, usecs); #endif return usecs; } and periodic_usecs() is called in e.g. this chain: itd_submit iso_stream_schedule itd_slot_ok periodic_usecs and others. I'd leave this check as is - to me it would be useful in debug mode to verify that we've not overallocated a period. Also, even if this knob would be useful only to experts, it would be better to put feedback onto the knob so that people could know whether thir request could be served or not. What do you think? Kirill -- 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