aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/subdev/i2c/nv4e.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-05-29 11:35:10 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-06-11 16:10:34 +1000
commit9efc583ea9a474a8d89421da8aad4a2265f2ac5a (patch)
tree08749cfbc58a3235d7184095825a239c16a2c4d3 /drivers/gpu/drm/nouveau/core/subdev/i2c/nv4e.c
parentdrm/nouveau/i2c: balance port acquire/release (diff)
downloadlinux-dev-9efc583ea9a474a8d89421da8aad4a2265f2ac5a.tar.xz
linux-dev-9efc583ea9a474a8d89421da8aad4a2265f2ac5a.zip
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>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev/i2c/nv4e.c')
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/i2c/nv4e.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/i2c/nv4e.c b/drivers/gpu/drm/nouveau/core/subdev/i2c/nv4e.c
index d97101b3c695..f16c87ce5ba1 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/i2c/nv4e.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/i2c/nv4e.c
@@ -118,4 +118,5 @@ nv4e_i2c_oclass = &(struct nouveau_i2c_impl) {
.fini = _nouveau_i2c_fini,
},
.sclass = nv4e_i2c_sclass,
+ .pad_x = &nv04_i2c_pad_oclass,
}.base;