]> git.dujemihanovic.xyz Git - u-boot.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)
commit2addee35f2da178bf858403f2e2cb20a59df734f
treeac0d157e9d272c998513384ac8ab43b233f738e1
parentc96137000e4cf486dcb164fd67a1a0b5b2fb99c6
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