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)
commit5a2ad99bcedf0ebbfb29e5d7a9764aae301ac64b
tree5dfa145afb488960141d07edc3e7835301aa0034
parent9459fd5945f66d9d2b85824fea4ce57723e04ab8
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