Searched hist:"8038 f6d2881d58f5322109a2f5ec2de5aaa6fc30" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | composite.c | 8038f6d2881d58f5322109a2f5ec2de5aaa6fc30 Tue Feb 16 17:59:19 UTC 2016 Sam Protsenko <semen.protsenko@linaro.org> usb: gadget: composite: Correct recovery path for register
In case when usb_composite_register() failed once (for whatever reason), it will fail further even if all conditions are correct. Example:
=> fastboot 2 Invalid Controller Index couldn't find an available UDC g_dnl_register: failed!, error: -19 exit not allowed from main input shell.
=> fastboot 0 g_dnl_register: failed!, error: -22 exit not allowed from main input shell.
Despite that 0 is correct index for USB controller, "fastboot 0" command will fail, because "composite" structure wasn't cleared properly on previous fail (on "fastboot 2" command).
This patch fixes that erroneous behavior, allowing us to use composite even after previous failure.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
|