drm/nouveau/i2c: balance port acquire/release
authorBen Skeggs <bskeggs@redhat.com>
Thu, 29 May 2014 01:07:16 +0000 (11:07 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 11 Jun 2014 06:10:33 +0000 (16:10 +1000)
commitd2ae2eb4699506736e8b0879989a22ecd954e9f6
treefbfa1567571bc9ff140b8b8447e913dc6d417d3f
parent0ff32977eae68852cc65b90fea89f6bbefc53a55
drm/nouveau/i2c: balance port acquire/release

This was a half-finished hack before, just enough to handle the shared
aux/i2c pad thing on G94 and up.

We got lucky with locking etc up until now, as this was (generally) all
protected by the DRM mode_config lock.  It's about to become a lot more
likely to hit the races.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/include/subdev/i2c.h
drivers/gpu/drm/nouveau/core/subdev/i2c/aux.c
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
drivers/gpu/drm/nouveau/core/subdev/i2c/bit.c