Re: [PATCH] usb: core: message: remember to reset 'ret' to 0 when necessary

2017-11-09 Thread sathyanarayanan kuppuswamy
Works in APL platform. Tested-by: Kuppuswamy Sathyanarayanan On 11/09/2017 02:59 AM, Felipe Balbi wrote: usb_control_msg() will return the amount of bytes transferred, if that amount matches what we wanted to transfer, we need to reset 'ret' to 0

Re: [PATCH] usb: core: message: remember to reset 'ret' to 0 when necessary

2017-11-09 Thread Tony Lindgren
* Felipe Balbi [171109 11:01]: > usb_control_msg() will return the amount of bytes transferred, if that > amount matches what we wanted to transfer, we need to reset 'ret' to 0 > from usb_get_status(). Thanks that fixes the issue I was seeing: Tested-by: Tony

[PATCH] usb: core: message: remember to reset 'ret' to 0 when necessary

2017-11-09 Thread Felipe Balbi
usb_control_msg() will return the amount of bytes transferred, if that amount matches what we wanted to transfer, we need to reset 'ret' to 0 from usb_get_status(). Fixes: 2e43f0fe379c ("usb: core: add a 'type' parameter to usb_get_status()") Reported-by: Tony Lindgren