]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dp: Helper for checking DDI_BUF_CTL Idle status
authorManasi Navare <manasi.d.navare@intel.com>
Wed, 1 Jul 2020 22:10:51 +0000 (15:10 -0700)
committerManasi Navare <manasi.d.navare@intel.com>
Wed, 8 Jul 2020 19:46:00 +0000 (12:46 -0700)
commitd134c928d0cb16d8c74eedc7595129998300b494
tree5dfa145afb488960141d07edc3e7835301aa0034
parent040128adc2e6ddc8dee06515fa739671d362e1c7
drm/i915/dp: Helper for checking DDI_BUF_CTL Idle status

Modify the helper to add a fixed delay or poll with timeout
based on platform specification to check for either Idle bit
set (DDI_BUF_CTL is idle for disable case)

v2:
* Use 2 separate functions or idle and active (Ville)
v3:
* Change the timeout to 16usecs (Ville)
v4:
* Change the timeout 8, follow spec (Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200701221052.8946-1-manasi.d.navare@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c