[PATCH v3 05/33] drm: Pass the drm_dp_aux->hw_mutex to i2c for its locking

2016-06-03 Thread Ville Syrjälä
On Fri, Jun 03, 2016 at 03:36:48PM +0100, Chris Wilson wrote: > Rather than have both drm_dp_aux lock within its transfer, and i2c to > lock around the transfer, use the same lock by filling in the locking > callbacks that i2c wants to use. We require our own hw_mutex as we > bypass i2c_transfer

[PATCH v3 05/33] drm: Pass the drm_dp_aux->hw_mutex to i2c for its locking

2016-06-03 Thread Chris Wilson
Rather than have both drm_dp_aux lock within its transfer, and i2c to lock around the transfer, use the same lock by filling in the locking callbacks that i2c wants to use. We require our own hw_mutex as we bypass i2c_transfer for drm_dp_dpcd_access(). Signed-off-by: Chris Wilson Cc: Dave Airlie