]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: move gmbus setup down to intel_modeset_init()
authorJani Nikula <jani.nikula@intel.com>
Fri, 4 Oct 2019 12:20:19 +0000 (15:20 +0300)
committerJani Nikula <jani.nikula@intel.com>
Sun, 6 Oct 2019 08:25:06 +0000 (11:25 +0300)
commitf0b3fc7f264990b878e85ab8990327542d2586ff
treefab8b14c0aa2af6d9b28d782065c1e76f350c607
parentc4c64d037ce06a2c9f61275d5ae29963bd2d7251
drm/i915: move gmbus setup down to intel_modeset_init()

Pair the gmbus setup and teardown in the same layer. This also fixes the
double gmbus teardown on the i915_driver_modeset_probe() error path.

Move the gmbus setup a bit later in the sequence to make the follow-up
refactoring easier, and to pinpoint any unexpected consequences of this
change right here, instead of the later refactoring.

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