diff options
author | Jules Maselbas <jmaselbas@kalray.eu> | 2021-11-22 18:31:23 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-25 08:45:23 +0100 |
commit | f9e320b6fee489a5634aca59fe5715e208353621 (patch) | |
tree | a96ae36eac174c63af6335a328723324137eb293 /dts/Bindings/arm | |
parent | 9d90cd0274bce967a11e790c424530e6393be2a6 (diff) | |
download | barebox-f9e320b6fee489a5634aca59fe5715e208353621.tar.gz barebox-f9e320b6fee489a5634aca59fe5715e208353621.tar.xz |
usb: dwc2: host: Do not map buffer on zero len packet
The transfer_chunk can be called for zero length packet, in such case
the buffer pointer is NULL and can fail to be mapped for the device.
In such case the device DMA address can be directly set to 0, as the
buffer address should be NULL anyway, without calling map/unmap at all.
Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu>
Link: https://lore.barebox.org/20211122173123.17252-1-jmaselbas@kalray.eu
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'dts/Bindings/arm')
0 files changed, 0 insertions, 0 deletions