summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc2/hw.h
diff options
context:
space:
mode:
authorVahram Aharonyan <vahrama@synopsys.com>2016-11-10 06:27:46 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-11-18 14:54:18 +0300
commitaa4049f3a58ce8cf889ce89300b996f373e3b3a4 (patch)
treeb7dd73df47341426fa0380e993dec4c2179b406d /drivers/usb/dwc2/hw.h
parentec7032512829a0b09f3e4324f29ff789d74e514b (diff)
downloadlinux-aa4049f3a58ce8cf889ce89300b996f373e3b3a4.tar.xz
usb: dwc2: Make the DMA descriptor structure packed
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>
Diffstat (limited to 'drivers/usb/dwc2/hw.h')
-rw-r--r--drivers/usb/dwc2/hw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/hw.h b/drivers/usb/dwc2/hw.h
index 6031efed1155..ee827e8a2a94 100644
--- a/drivers/usb/dwc2/hw.h
+++ b/drivers/usb/dwc2/hw.h
@@ -802,7 +802,7 @@
struct dwc2_dma_desc {
u32 status;
u32 buf;
-};
+} __packed;
#define HOST_DMA_A (1 << 31)
#define HOST_DMA_STS_MASK (0x3 << 28)