ANDROID: GKI: mmc: add Android ABI padding to some structures

Add ABI padding to some of the data structures to accommodate
new eMMC features enablement later.

Bug: 192337957
Change-Id: Ica3f96ea004fb89e4b46ef9734864c655cdcd277
Signed-off-by: Sahitya Tummala <quic_stummala@quicinc.com>
This commit is contained in:
Sahitya Tummala
2021-06-30 11:04:47 +05:30
committed by Todd Kjos
parent 00d9f57a69
commit f45304d091
3 changed files with 5 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ struct mmc_bus_ops {
int (*hw_reset)(struct mmc_host *); int (*hw_reset)(struct mmc_host *);
int (*sw_reset)(struct mmc_host *); int (*sw_reset)(struct mmc_host *);
bool (*cache_enabled)(struct mmc_host *); bool (*cache_enabled)(struct mmc_host *);
ANDROID_VENDOR_DATA_ARRAY(1, 2);
}; };
void mmc_attach_bus(struct mmc_host *host, const struct mmc_bus_ops *ops); void mmc_attach_bus(struct mmc_host *host, const struct mmc_bus_ops *ops);

View File

@@ -313,6 +313,8 @@ struct mmc_card {
unsigned int bouncesz; /* Bounce buffer size */ unsigned int bouncesz; /* Bounce buffer size */
struct workqueue_struct *complete_wq; /* Private workqueue */ struct workqueue_struct *complete_wq; /* Private workqueue */
ANDROID_VENDOR_DATA(1);
}; };
static inline bool mmc_large_sector(struct mmc_card *card) static inline bool mmc_large_sector(struct mmc_card *card)

View File

@@ -485,6 +485,7 @@ struct mmc_host {
/* Host Software Queue support */ /* Host Software Queue support */
bool hsq_enabled; bool hsq_enabled;
ANDROID_VENDOR_DATA(1);
ANDROID_OEM_DATA(1); ANDROID_OEM_DATA(1);
unsigned long private[] ____cacheline_aligned; unsigned long private[] ____cacheline_aligned;