mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
soc: qcom: Update the probe error path when rmb status register not present
Some of the SoCs may not have support "rmb_general_purpose" register, So handle the error path to load the firmware from kernel. Change-Id: Id64c8e531bb6fe79ea40e6fa34b20aa2e1891ad8 Signed-off-by: Santosh Dronamraju <sdronamr@codeaurora.org>
This commit is contained in:
parent
9c25b4600c
commit
41b3ee2015
1 changed files with 2 additions and 2 deletions
|
|
@ -1440,7 +1440,7 @@ static int pil_tz_generic_probe(struct platform_device *pdev)
|
|||
if (IS_ERR(d->rmb_gp_reg)) {
|
||||
dev_err(&pdev->dev, "Invalid resource for rmb_gp_reg\n");
|
||||
rc = PTR_ERR(d->rmb_gp_reg);
|
||||
goto err_ramdump;
|
||||
goto load_from_pil;
|
||||
}
|
||||
|
||||
rmb_gp_reg_val = __raw_readl(d->rmb_gp_reg);
|
||||
|
|
@ -1455,7 +1455,7 @@ static int pil_tz_generic_probe(struct platform_device *pdev)
|
|||
pr_info("spss is brought out of reset by UEFI\n");
|
||||
d->subsys_desc.powerup = subsys_powerup_boot_enabled;
|
||||
}
|
||||
|
||||
load_from_pil:
|
||||
res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
|
||||
"sp2soc_irq_status");
|
||||
d->irq_status = devm_ioremap_resource(&pdev->dev, res);
|
||||
|
|
|
|||
Loading…
Reference in a new issue