]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: dwc2: Make the DMA descriptor structure packed
authorVahram Aharonyan <vahrama@synopsys.com>
Thu, 10 Nov 2016 03:27:46 +0000 (19:27 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:18 +0000 (13:54 +0200)
Make the DMA descriptor structure packed to guarantee alignment and size
in memory.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/hw.h

index 6031efed11553ef988c56cb20d616182268ad05a..ee827e8a2a940465e800bcb0724587eb152280f9 100644 (file)
 struct dwc2_dma_desc {
        u32 status;
        u32 buf;
-};
+} __packed;
 
 #define HOST_DMA_A                     (1 << 31)
 #define HOST_DMA_STS_MASK              (0x3 << 28)