]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/icl: reverse uninit order
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 14 Nov 2018 01:15:08 +0000 (17:15 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Fri, 16 Nov 2018 00:36:58 +0000 (16:36 -0800)
commit680eaa995d688b89f53bcc823db84e314af1d635
tree764fe4a1217c2aea193ba5c5678b8fbfad2617ec
parentfa528ece98b145b2e6bdbda4887b864a72ac61cb
drm/i915/icl: reverse uninit order

Bspec 21257 says "DDIA PHY is the comp master, so it must
not be un-initialized if other combo PHYs are in use". Here
we are shutting down all phys, so it's not strictly required.
However let's be consistent on deinitializing things in the
reversed order we initialized them.

v2: simplify protection for enum port being unsigned in future
v3: spell out reverse rather than rev

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181114011509.3667-2-lucas.demarchi@intel.com
drivers/gpu/drm/i915/intel_combo_phy.c