delayed_clk_gate_wrk function has to be set before
calling sdhci_add_host. Otherwise the timer_function
will be empty and the race can cause kernel panic
Bug
1432964
Change-Id: I0ec921c3588c8368d1119d7b3089c82cc6c08e1e
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/352674
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
if (plat->nominal_vcore_mv <= plat->boot_vcore_mv)
plat->en_nominal_vcore_tuning = false;
+ INIT_DELAYED_WORK(&host->delayed_clk_gate_wrk, delayed_clk_gate_cb);
rc = sdhci_add_host(host);
if (rc)
goto err_add_host;
- INIT_DELAYED_WORK(&host->delayed_clk_gate_wrk, delayed_clk_gate_cb);
-
if (gpio_is_valid(plat->cd_gpio)) {
rc = request_threaded_irq(gpio_to_irq(plat->cd_gpio), NULL,
carddetect_irq,