Skip to content

Commit

Permalink
usb: dwc2: Make the DMA descriptor structure packed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vahram Aharonyan authored and Felipe Balbi committed Nov 18, 2016
1 parent ec70325 commit aa4049f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/dwc2/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aa4049f

Please sign in to comment.