mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "Avoid fatal error if ICE registers are not defined"
This commit is contained in:
commit
487062ec55
2 changed files with 5 additions and 2 deletions
|
|
@ -254,7 +254,8 @@ int cqhci_crypto_qti_init_crypto(struct cqhci_host *host,
|
|||
if (!cqhci_ice_memres) {
|
||||
pr_debug("%s ICE not supported\n", __func__);
|
||||
host->icemmio = NULL;
|
||||
return PTR_ERR(cqhci_ice_memres);
|
||||
host->caps &= ~CQHCI_CAP_CRYPTO_SUPPORT;
|
||||
return err;
|
||||
}
|
||||
|
||||
host->icemmio = devm_ioremap(&host->pdev->dev,
|
||||
|
|
|
|||
|
|
@ -337,7 +337,9 @@ int ufshcd_crypto_qti_init_crypto(struct ufs_hba *hba,
|
|||
mmio_base = devm_ioremap_resource(hba->dev, mem_res);
|
||||
if (IS_ERR(mmio_base)) {
|
||||
pr_err("%s: Unable to get ufs_crypto mmio base\n", __func__);
|
||||
return PTR_ERR(mmio_base);
|
||||
hba->caps &= ~UFSHCD_CAP_CRYPTO;
|
||||
hba->quirks |= UFSHCD_QUIRK_BROKEN_CRYPTO;
|
||||
return err;
|
||||
}
|
||||
|
||||
hwkm_ice_memres = platform_get_resource_byname(pdev, IORESOURCE_MEM,
|
||||
|
|
|
|||
Loading…
Reference in a new issue