]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: abstract i2c bit banging fallback in gmbus xfer
authorJani Nikula <jani.nikula@intel.com>
Tue, 1 Dec 2015 14:29:26 +0000 (16:29 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 2 Dec 2015 11:29:41 +0000 (13:29 +0200)
commit7233db0457bdd457403d34991cfdef6e5915438d
tree6bda4975b36467d0f4460f824ff201751e9eb7b2
parentaba278109a7d0f0bc5c7f120d2bfe8d7ea02cdf9
drm/i915: abstract i2c bit banging fallback in gmbus xfer

Choose between i2c bit banging and gmbus in a new higher level function,
and let the i2c core retry the first time we fall back to bit banging.

The i2c core imposes a timeout on -EAGAIN, but it defaults to 1 second,
and shouldn't be a problem for us.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1448980166-23055-2-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_i2c.c