> Subject: [PATCH 08/16] drm/i915/de: Introduce intel_de_wait_for_{set,
> clear}_us()
> 
> From: Ville Syrjälä <[email protected]>
> 
> Add intel_de_wait_for_set_us() and intel_de_wait_for_clear_us() as the
> microsecond counterparts to intel_de_wait_for_set_ms() and
> intel_de_wait_for_clear_ms().
> 
> Signed-off-by: Ville Syrjälä <[email protected]>

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

> ---
>  drivers/gpu/drm/i915/display/intel_de.h | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_de.h
> b/drivers/gpu/drm/i915/display/intel_de.h
> index 2566079f695e..a82da6443af9 100644
> --- a/drivers/gpu/drm/i915/display/intel_de.h
> +++ b/drivers/gpu/drm/i915/display/intel_de.h
> @@ -165,6 +165,20 @@ intel_de_wait_fw_ms(struct intel_display *display,
> i915_reg_t reg,
>       return ret;
>  }
> 
> +static inline int
> +intel_de_wait_for_set_us(struct intel_display *display, i915_reg_t reg,
> +                      u32 mask, unsigned int timeout_us)
> +{
> +     return intel_de_wait_us(display, reg, mask, mask, timeout_us, NULL);
> }
> +
> +static inline int
> +intel_de_wait_for_clear_us(struct intel_display *display, i915_reg_t reg,
> +                        u32 mask, unsigned int timeout_us) {
> +     return intel_de_wait_us(display, reg, mask, 0, timeout_us, NULL); }
> +
>  static inline int
>  intel_de_wait_for_set_ms(struct intel_display *display, i915_reg_t reg,
>                        u32 mask, unsigned int timeout_ms)
> --
> 2.49.1

Reply via email to