]> git.baikalelectronics.ru Git - uboot.git/commit
usb: dwc2: handle return code of dev_read_size() in of to, plat function
authorWolfgang Grandegger <wg@aries-embedded.de>
Mon, 14 Mar 2022 08:32:53 +0000 (09:32 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 14 Mar 2022 11:31:12 +0000 (12:31 +0100)
commitc7b16e477d28682156956c25fb5764068fc27b23
treeac0d157e9d272c998513384ac8ab43b233f738e1
parent8503134bd32595600ec5bfed9225e9408fec8493
usb: dwc2: handle return code of dev_read_size() in of to, plat function

dev_read_size() returns -EINVAL (-22) if the property "g-tx-fifo-size"
does not exist. If that's the case, we now keep the default value of 0.

Signed-off-by: Wolfgang Grandegger <wg@aries-embedded.de>
drivers/usb/gadget/dwc2_udc_otg.c