mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
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:
committed by
Todd Kjos
parent
866797c77d
commit
81ab760224
@@ -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)
|
||||
@@ -754,6 +757,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 {
|
||||
@@ -864,6 +870,9 @@ struct dwc3_hwparams {
|
||||
u32 hwparams7;
|
||||
u32 hwparams8;
|
||||
u32 hwparams9;
|
||||
|
||||
ANDROID_KABI_RESERVE(1);
|
||||
ANDROID_KABI_RESERVE(2);
|
||||
};
|
||||
|
||||
/* HWPARAMS0 */
|
||||
@@ -934,6 +943,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);
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -1286,6 +1298,11 @@ struct dwc3 {
|
||||
unsigned dis_split_quirk:1;
|
||||
|
||||
u16 imod_interval;
|
||||
|
||||
ANDROID_KABI_RESERVE(1);
|
||||
ANDROID_KABI_RESERVE(2);
|
||||
ANDROID_KABI_RESERVE(3);
|
||||
ANDROID_KABI_RESERVE(4);
|
||||
};
|
||||
|
||||
#define INCRX_BURST_MODE 0
|
||||
|
||||
Reference in New Issue
Block a user