drm/amdgpu: Fix masking binary not operator on two mask operations
authorColin Ian King <colin.king@canonical.com>
Fri, 22 Jan 2021 15:00:22 +0000 (15:00 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jan 2021 22:47:05 +0000 (17:47 -0500)
commit5993e79398d35d665b4c84ecb79aba3b83a965cc
treebc0ed3766c8cc33df0fd3a444775dc330e869d65
parenteb3b425166cbdb942b7c38bd9998b97837bd6b29
drm/amdgpu: Fix masking binary not operator on two mask operations

Currently the ! operator is incorrectly being used to flip bits on
mask values. Fix this by using the bit-wise ~ operator instead.

Addresses-Coverity: ("Logical vs. bitwise operator")
Fixes: 3c9a7b7d6e7520 ("drm/amdgpu: update mmhub mgcg&ls for mmhub_v2_3")
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c