]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/hpd: Replace the loop-within-loop with two independent loops
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 5 Feb 2020 18:35:42 +0000 (20:35 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 20 Feb 2020 19:47:23 +0000 (21:47 +0200)
commita4773125fe02a35c7a504d9f1cef45f615916c8d
treed3a03f9b3c0347fa42603fe057eb637ca6a9ad9c
parentb0be923633784517ba757c0befac35c38ed877d5
drm/i915/hpd: Replace the loop-within-loop with two independent loops

No point in looping over all connectors for each hpd pin. Just loop
over each connector first and deal with each one's hpd pin. Then
loop over all the hpd pins to mark them as enabled again.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200205183546.9291-2-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_hotplug.c