]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/i2c: Track users of GMBUS force-bit
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 10 Nov 2012 15:58:21 +0000 (15:58 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 13 Nov 2012 15:10:04 +0000 (16:10 +0100)
commitdcd035741df08c39624bd97f28101fe6088025e4
tree43ca8b12502129c08dc7e88ba3376d1cd77582ed
parent4359c53d985994d6b9c2c19b0e634918c6034526
drm/i915/i2c: Track users of GMBUS force-bit

This fixes a regression for SDVO from

commit 9a2f77027f63e5aa4024b7009938f2489c6cd806
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 22 16:12:18 2012 +0300

    drm/i915/sdvo: restore i2c adapter config on intel_sdvo_init() failures

As SDVOB and SDVOC are multiplexed on the same pin, if a chipset does
not have the second SDVO encoder, it will then remove the force-bit
setting on the common i2c adapter during teardown. All subsequent
attempts of trying to use GMBUS with SDVOB then fail.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
[danvet: fixup inversion in the debug printout, noticed by Jani
Nikulai.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_i2c.c