Re: [PATCH V2] usb: dwc2: gadget: Repair DSTS register decoding

2015-12-17 Thread John Youn
On 12/17/2015 6:26 PM, Marek Vasut wrote: > The "enumspd" field is located in register DSTS[2:1], but the code > which checks the bitfield does not shift the value accordingly. This > in turn causes incorrect detection of gadget link partner speed in > dwc2_hsotg_irq_enumdone() . > > Shift the

[PATCH V2] usb: dwc2: gadget: Repair DSTS register decoding

2015-12-17 Thread Marek Vasut
The "enumspd" field is located in register DSTS[2:1], but the code which checks the bitfield does not shift the value accordingly. This in turn causes incorrect detection of gadget link partner speed in dwc2_hsotg_irq_enumdone() . Shift the value accordingly to fix the problem with speed