]> 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)
commit32e3ae50b287352a291803979c400309ca8f92ff
treed3a03f9b3c0347fa42603fe057eb637ca6a9ad9c
parent70697e29c8c5cfc8e081891d46197e0676832357
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