drm/nouveau/i2c: introduce locking at a per-port level
authorBen Skeggs <bskeggs@redhat.com>
Thu, 29 May 2014 01:35:10 +0000 (11:35 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 11 Jun 2014 06:10:34 +0000 (16:10 +1000)
commit9efc583ea9a474a8d89421da8aad4a2265f2ac5a
tree08749cfbc58a3235d7184095825a239c16a2c4d3
parentd2ae2eb4699506736e8b0879989a22ecd954e9f6
drm/nouveau/i2c: introduce locking at a per-port level

There's also provisions to allow a pad to be locked with a specific
routing, for an indefinite period of time.  This will be used in
future patches.

The G94+ pad driver will now also power-down pads when not required.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
14 files changed:
drivers/gpu/drm/nouveau/Makefile
drivers/gpu/drm/nouveau/core/include/subdev/i2c.h
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
drivers/gpu/drm/nouveau/core/subdev/i2c/nv04.c
drivers/gpu/drm/nouveau/core/subdev/i2c/nv4e.c
drivers/gpu/drm/nouveau/core/subdev/i2c/nv50.c
drivers/gpu/drm/nouveau/core/subdev/i2c/nv94.c
drivers/gpu/drm/nouveau/core/subdev/i2c/nvd0.c
drivers/gpu/drm/nouveau/core/subdev/i2c/nve0.c
drivers/gpu/drm/nouveau/core/subdev/i2c/pad.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/subdev/i2c/pad.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/subdev/i2c/padnv04.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/subdev/i2c/padnv94.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/subdev/i2c/priv.h