]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc2: fix possible alignment issues
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Thu, 21 Nov 2019 21:15:23 +0000 (22:15 +0100)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 22 Nov 2019 00:25:40 +0000 (01:25 +0100)
commit7dc0ac6015718f5fb66bb79bf53df19f64fbfeee
tree90dc7aba5f52d0c02a9a7d2b79a40310639135b6
parent616ebd8b9cb455c5949bd94c47283835eba1954a
usb: dwc2: fix possible alignment issues

Since upgrading to gcc9, warnings are issued:
"taking address of packed member of ‘...’ may result in an unaligned
pointer value"

Fix this by converting dwc2_fifo_read to use unaligned access since packed
structures may be on an unaligned address, depending on USB hardware.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c