diff options
| author | Ben Skeggs <[email protected]> | 2023-09-19 06:21:18 +1000 |
|---|---|---|
| committer | Dave Airlie <[email protected]> | 2023-10-31 15:08:11 +1000 |
| commit | a25a5d560dada2d2edec1891bf1a89c12d9808ad (patch) | |
| tree | b756c9767805f1c86cb19c5eb72916edaa18d644 | |
| parent | 2cfad4b0489cc13a1f980782ca4af070e2675128 (diff) | |
drm/nouveau/i2c/tu102-: prepare for GSP-RM
- disable I2C completely when GSP-RM detected
Signed-off-by: Ben Skeggs <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
| -rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/i2c/gm200.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/gm200.c b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/gm200.c index 46917eb600f9..049477511312 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/gm200.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/gm200.c @@ -24,6 +24,8 @@ #include "priv.h" #include "pad.h" +#include <subdev/gsp.h> + static void gm200_aux_autodpcd(struct nvkm_i2c *i2c, int aux, bool enable) { @@ -44,5 +46,8 @@ int gm200_i2c_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_i2c **pi2c) { + if (nvkm_gsp_rm(device->gsp)) + return -ENODEV; + return nvkm_i2c_new_(&gm200_i2c, device, type, inst, pi2c); } |