diff options
author | Konrad Dybcio <[email protected]> | 2023-01-02 11:02:00 +0100 |
---|---|---|
committer | Rob Clark <[email protected]> | 2023-01-05 15:11:34 -0800 |
commit | 13ef096e342b00e30b95a90c6c13eee1f0bec4c5 (patch) | |
tree | 9961a3861731f71897c905f3a4d86071c322d43e /drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c | |
parent | 00dd060ab3cf95ca6ede7853bc14397014971b5e (diff) |
drm/msm/adreno: Make adreno quirks not overwrite each other
So far the adreno quirks have all been assigned with an OR operator,
which is problematic, because they were assigned consecutive integer
values, which makes checking them with an AND operator kind of no bueno..
Switch to using BIT(n) so that only the quirks that the programmer chose
are taken into account when evaluating info->quirks & ADRENO_QUIRK_...
Fixes: 370063ee427a ("drm/msm/adreno: Add A540 support")
Reviewed-by: Dmitry Baryshkov <[email protected]>
Reviewed-by: Marijn Suijten <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Signed-off-by: Konrad Dybcio <[email protected]>
Reviewed-by: Akhil P Oommen <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/516456/
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c')
0 files changed, 0 insertions, 0 deletions