> Subject: [PATCH 04/16] drm/i915/de: Introduce intel_de_wait_us()
> 
> From: Ville Syrjälä <[email protected]>
> 
> Introduce intel_de_wait_us() as the microsecond based counterpart to the
> millisecond based intel_de_wait_ms().
> 
> Signed-off-by: Ville Syrjälä <[email protected]>

LGTM,
Reviewed-by: Suraj Kandpal <[email protected]>

> ---
>  drivers/gpu/drm/i915/display/intel_de.h | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_de.h
> b/drivers/gpu/drm/i915/display/intel_de.h
> index d449180d1d22..43a4160f760a 100644
> --- a/drivers/gpu/drm/i915/display/intel_de.h
> +++ b/drivers/gpu/drm/i915/display/intel_de.h
> @@ -114,6 +114,23 @@ __intel_de_wait_for_register_atomic_nowl(struct
> intel_display *display,
>                                        value, fast_timeout_us, 0, NULL);  }
> 
> +static inline int
> +intel_de_wait_us(struct intel_display *display, i915_reg_t reg,
> +              u32 mask, u32 value, unsigned int timeout_us,
> +              u32 *out_value)
> +{
> +     int ret;
> +
> +     intel_dmc_wl_get(display, reg);
> +
> +     ret = __intel_wait_for_register(__to_uncore(display), reg, mask,
> +                                     value, timeout_us, 0, out_value);
> +
> +     intel_dmc_wl_put(display, reg);
> +
> +     return ret;
> +}
> +
>  static inline int
>  intel_de_wait_ms(struct intel_display *display, i915_reg_t reg,
>                u32 mask, u32 value, unsigned int timeout_ms,
> --
> 2.49.1

Reply via email to