ANDROID: GKI: update vendor hook for sd

Fix to execute free card when err is not equal to 0.

Fixes: a8c1d81605 ("ANDROID: GKI: add vendor hook for sd")

Bug: 245887115
Change-Id: I2c41ea725ee65ad969932c20d8d0b72307e62cee
Signed-off-by: Wenchao Chen <wenchao.chen@unisoc.com>
This commit is contained in:
Wenchao Chen
2022-09-09 19:20:11 +08:00
committed by Treehugger Robot
parent 010f93525d
commit 66e0726ca5

View File

@@ -1519,6 +1519,7 @@ retry:
*/
mmc_set_clock(host, mmc_sd_get_max_clock(card));
err = 0;
trace_android_vh_mmc_sd_update_cmdline_timing(card, &err);
trace_android_rvh_mmc_sd_cmdline_timing(card, &err);
if (err)
@@ -1536,6 +1537,7 @@ retry:
mmc_set_bus_width(host, MMC_BUS_WIDTH_4);
}
err = 0;
trace_android_vh_mmc_sd_update_dataline_timing(card, &err);
trace_android_rvh_mmc_sd_dataline_timing(card, &err);
if (err)