forked from rubenslte/android_kernel_samsung_msm8226
Merge "iommu: msm: Ensure power is on in pg fault handler"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
cd15392137
@@ -804,6 +804,19 @@ irqreturn_t msm_iommu_fault_handler_v2(int irq, void *dev_id)
|
||||
ctx_drvdata = dev_get_drvdata(&pdev->dev);
|
||||
BUG_ON(!ctx_drvdata);
|
||||
|
||||
if (!drvdata->ctx_attach_count) {
|
||||
pr_err("Unexpected IOMMU page fault!\n");
|
||||
pr_err("name = %s\n", drvdata->name);
|
||||
pr_err("Power is OFF. Unable to read page fault information\n");
|
||||
/*
|
||||
* We cannot determine which context bank caused the issue so
|
||||
* we just return handled here to ensure IRQ handler code is
|
||||
* happy
|
||||
*/
|
||||
ret = IRQ_HANDLED;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
ret = __enable_clocks(drvdata);
|
||||
if (ret) {
|
||||
ret = IRQ_NONE;
|
||||
|
||||
Reference in New Issue
Block a user