From 807752459ea830320d347781fe5fc995c3e48899 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 23 Apr 2021 13:36:07 +0200 Subject: [PATCH] ANDROID: GKI: dwc3: add Android ABI padding to some structures Try to mitigate potential future driver core api changes by adding padding to a number of dwc3 structures. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman Change-Id: I1826d885e3acf1f378d0e30b1ca2ddc56b16a9e4 --- drivers/usb/dwc3/core.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index e79a1a94f0e0..09d7d733dd97 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -678,6 +679,8 @@ struct dwc3_event_buffer { dma_addr_t dma; struct dwc3 *dwc; + + ANDROID_KABI_RESERVE(1); }; #define DWC3_EP_FLAG_STALLED BIT(0) @@ -773,6 +776,7 @@ struct dwc3_ep { /* For isochronous START TRANSFER workaround only */ u8 combo_num; int start_cmd_status; + ANDROID_KABI_RESERVE(1); ANDROID_KABI_RESERVE(2); }; @@ -886,6 +890,9 @@ struct dwc3_hwparams { u32 hwparams7; u32 hwparams8; u32 hwparams9; + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); }; /* HWPARAMS0 */ @@ -958,7 +965,9 @@ struct dwc3_request { unsigned int needs_extra_trb:1; unsigned int direction:1; unsigned int mapped:1; + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); }; /* @@ -1341,6 +1350,7 @@ struct dwc3 { int last_fifo_depth; int num_ep_resized; struct dentry *debug_root; + ANDROID_KABI_RESERVE(1); ANDROID_KABI_RESERVE(2); ANDROID_KABI_RESERVE(3);