libpayload udc: Support legal edge case of GET_CONFIGURATION call

Hardware / Coreboot - Patrick Georgi [google.com] - 18 April 2015 01:42 UTC

I doubt anybody will ask for the configuration and request that 0 bytes be returned, but AFAICS that's legal, so let's support it.

Should have no effect on ChipIdea since it knows not to send more data than requested by the host.

BRANCH=none BUG=none TEST=none

Change-Id: Ibfe57b593015fa5e0381c45ff9e39c3f912b4d4d

3c6e5db libpayload udc: Support legal edge case of GET_CONFIGURATION call
payloads/libpayload/drivers/udc/udc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Upstream: review.coreboot.org


  • Share