On Wed, 28 Sep 2016, Felipe Balbi wrote: > We have introduced a helper to calculate multiplier > value from wMaxPacketSize. Start using it. > > Cc: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> > Cc: <linux-usb@xxxxxxxxxxxxxxx> > Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx> > --- > drivers/usb/host/ehci-sched.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c > index 1dfe54f14737..6a9fa2c3a24e 100644 > --- a/drivers/usb/host/ehci-sched.c > +++ b/drivers/usb/host/ehci-sched.c > @@ -1064,7 +1064,7 @@ iso_stream_init( > > /* knows about ITD vs SITD */ > if (dev->speed == USB_SPEED_HIGH) { > - unsigned multi = hb_mult(maxp); > + unsigned multi = usb_endpoint_maxp_mult(&urb->ep->desc); > > stream->highspeed = 1; There are lots of other places where the new helpers might be used. Search for "max_packet" and "hb_mult" in ehci-q.c and ehci-sched.c. 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