drm/xe/mmio: Use single logic for waiting functions
authorGustavo Sousa <gustavo.sousa@intel.com>
Tue, 23 Jul 2024 12:01:21 +0000 (09:01 -0300)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 25 Jul 2024 23:55:47 +0000 (16:55 -0700)
commitbe8f9f4c866f41b62a3df9a5cfd54e0e88fc3e3e
tree82f945c0698afa63f17d90623464337843c5ec17
parent641a118c9d91e53bc920ec0ea2ea350d84eb7a9d
drm/xe/mmio: Use single logic for waiting functions

The implementations for xe_mmio_wait32() and xe_mmio_wait32_not() are
almost identical. Let us avoid duplication of logic by having them
calling a common __xe_mmio_wait32() function.

Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240723120120.5443-2-gustavo.sousa@intel.com
drivers/gpu/drm/xe/xe_mmio.c