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>
Showing
- drivers/gpu/drm/nouveau/core/include/subdev/i2c.h 2 additions, 0 deletionsdrivers/gpu/drm/nouveau/core/include/subdev/i2c.h
- drivers/gpu/drm/nouveau/core/subdev/i2c/aux.c 23 additions, 9 deletionsdrivers/gpu/drm/nouveau/core/subdev/i2c/aux.c
- drivers/gpu/drm/nouveau/core/subdev/i2c/base.c 27 additions, 3 deletionsdrivers/gpu/drm/nouveau/core/subdev/i2c/base.c
- drivers/gpu/drm/nouveau/core/subdev/i2c/bit.c 4 additions, 2 deletionsdrivers/gpu/drm/nouveau/core/subdev/i2c/bit.c
Loading
Please register or sign in to comment