mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
drm/msm: a6x: Rework qmp_get() error handling
Fix the following for qmp_get() errors: 1. Correctly handle probe defer for A6x GPUs 2. Ignore other errors because those are okay when GPU ACD is not required. They are checked again during gpu acd probe. Signed-off-by: Akhil P Oommen <quic_akhilpo@quicinc.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Tested-by: Maya Matuszczyk <maccraft123mc@gmail.com> Tested-by: Anthony Ruhier <aruhier@mailbox.org> Patchwork: https://patchwork.freedesktop.org/patch/649346/ Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
5f02f5e78e
commit
8e98a81da2
|
|
@ -2043,9 +2043,10 @@ int a6xx_gmu_init(struct a6xx_gpu *a6xx_gpu, struct device_node *node)
|
|||
goto detach_cxpd;
|
||||
}
|
||||
|
||||
/* Other errors are handled during GPU ACD probe */
|
||||
gmu->qmp = qmp_get(gmu->dev);
|
||||
if (IS_ERR(gmu->qmp) && adreno_is_a7xx(adreno_gpu)) {
|
||||
ret = PTR_ERR(gmu->qmp);
|
||||
if (PTR_ERR_OR_ZERO(gmu->qmp) == -EPROBE_DEFER) {
|
||||
ret = -EPROBE_DEFER;
|
||||
goto detach_gxpd;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user