drm/msm: rearrange the gpu_rmw() function
authorSharat Masetty <smasetty@codeaurora.org>
Wed, 25 Nov 2020 07:00:14 +0000 (12:30 +0530)
committerRob Clark <robdclark@chromium.org>
Sun, 29 Nov 2020 19:03:04 +0000 (11:03 -0800)
commit40a72b0c7f99cf7b856dccca9624b81140955911
tree49cbd0bbe3cbcd1b234ce1e9a82e85571738a2f4
parent9e0673c00cb0839fbe64e4ee4dbf150fd28483eb
drm/msm: rearrange the gpu_rmw() function

The register read-modify-write construct is generic enough
that it can be used by other subsystems as needed, create
a more generic rmw() function and have the gpu_rmw() use
this new function.

Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gpu.h