ANDROID: GKI: add vendor hook to support emmc FFU
We need this vendor hook to support emmc FFU. Avoid init card fail due to changes in PRV of cid in the new firmware. Bug: 241854943 Change-Id: Ib92105264daabedcb68aa99d0b4c0d45b5b741b1 Signed-off-by: Zhenxiong Lai <zhenxiong.lai@unisoc.com>
This commit is contained in:
committed by
Treehugger Robot
parent
64ae41d79b
commit
6349c3bbd5
@@ -431,3 +431,4 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_add_page_to_lrulist);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_del_page_from_lrulist);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_page_should_be_protected);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mark_page_accessed);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mmc_ffu_update_cid);
|
||||
|
||||
@@ -1635,6 +1635,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
|
||||
goto err;
|
||||
|
||||
if (oldcard) {
|
||||
trace_android_vh_mmc_ffu_update_cid(host, oldcard, cid);
|
||||
if (memcmp(cid, oldcard->raw_cid, sizeof(cid)) != 0) {
|
||||
pr_debug("%s: Perhaps the card was replaced\n",
|
||||
mmc_hostname(host));
|
||||
|
||||
@@ -44,6 +44,9 @@ DECLARE_HOOK(android_vh_sdhci_get_cd,
|
||||
DECLARE_HOOK(android_vh_mmc_gpio_cd_irqt,
|
||||
TP_PROTO(struct mmc_host *host, bool *allow),
|
||||
TP_ARGS(host, allow));
|
||||
DECLARE_HOOK(android_vh_mmc_ffu_update_cid,
|
||||
TP_PROTO(struct mmc_host *host, struct mmc_card *card, u32 *cid),
|
||||
TP_ARGS(host, card, cid));
|
||||
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_mmc_cache_card_properties,
|
||||
TP_PROTO(struct mmc_host *host),
|
||||
|
||||
Reference in New Issue
Block a user