]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dp: Helper to check for DDI BUF status to get active
authorManasi Navare <manasi.d.navare@intel.com>
Wed, 1 Jul 2020 22:10:52 +0000 (15:10 -0700)
committerManasi Navare <manasi.d.navare@intel.com>
Wed, 8 Jul 2020 19:46:37 +0000 (12:46 -0700)
commitb323dd09441a3eaac5d0e19edea9b458145ef80c
tree617a6afd233990348ccdfb5d1d19c6c60389f6f4
parentd134c928d0cb16d8c74eedc7595129998300b494
drm/i915/dp: Helper to check for DDI BUF status to get active

Based on the platform, Bspec expects us to wait or poll with
timeout for DDI BUF IDLE bit to be set to 0 (non idle) or get active
after enabling DDI_BUF_CTL.

v2:
* Based on platform, fixed delay or poll (Ville)
* Use a helper to do this (Imre, Ville)
v3:
* Add a new function _active for DDI BUF CTL to be non idle (Ville)
v4:
* Use the timeout for GLK (Ville)
v5:
* Add bspec quote, change timeout to 500us (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-2-manasi.d.navare@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c