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 <gregkh@google.com>
Change-Id: I1826d885e3acf1f378d0e30b1ca2ddc56b16a9e4
This commit is contained in:
Greg Kroah-Hartman
2021-04-23 13:36:07 +02:00
committed by Carlos Llamas
parent e5fd26ff2d
commit db2b68eb63

View File

@@ -22,6 +22,7 @@
#include <linux/debugfs.h>
#include <linux/wait.h>
#include <linux/workqueue.h>
#include <linux/android_kabi.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
@@ -661,6 +662,8 @@ struct dwc3_event_buffer {
dma_addr_t dma;
struct dwc3 *dwc;
ANDROID_KABI_RESERVE(1);
};
#define DWC3_EP_FLAG_STALLED BIT(0)
@@ -756,6 +759,9 @@ struct dwc3_ep {
/* For isochronous START TRANSFER workaround only */
u8 combo_num;
int start_cmd_status;
ANDROID_KABI_RESERVE(1);
ANDROID_KABI_RESERVE(2);
};
enum dwc3_phy {
@@ -867,6 +873,9 @@ struct dwc3_hwparams {
u32 hwparams7;
u32 hwparams8;
u32 hwparams9;
ANDROID_KABI_RESERVE(1);
ANDROID_KABI_RESERVE(2);
};
/* HWPARAMS0 */
@@ -935,6 +944,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);
};
/*
@@ -1301,6 +1313,11 @@ struct dwc3 {
int max_cfg_eps;
int last_fifo_depth;
int num_ep_resized;
ANDROID_KABI_RESERVE(1);
ANDROID_KABI_RESERVE(2);
ANDROID_KABI_RESERVE(3);
ANDROID_KABI_RESERVE(4);
};
#define INCRX_BURST_MODE 0