OSDN Git Service

drm/i915: Shove the PHY test into the hotplug work
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 30 Sep 2020 10:04:12 +0000 (13:04 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 1 Oct 2020 13:45:30 +0000 (16:45 +0300)
commit193af12cd6815ace3bdc93454454f5c7a053d3b6
tree5333ee52126242a3694db097e3751707c0455317
parent7ac469a0f7c627e1fd31b8d6f2e5b828b25f0877
drm/i915: Shove the PHY test into the hotplug work

Doing any kind modeset stuff from the short hpd handler is
verboten. The ad-hoc PHY test modeset code violates this. And
by calling various link training related functions it's now
blocking further work to plumb the crtc state down into the
link training code.

Let's hack around that by pushing the PHY test stuff into the
hotplug work where it's less of a problem. Still not great but
at least acceptable. We take a few pages from the link retraining
handbook to handle the locking and whatnot.

v2: Fix the intel_dp_hotplug() return value

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200930100412.9313-1-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_dp.c