Commit a25a5d56 authored by Ben Skeggs's avatar Ben Skeggs Committed by Dave Airlie

drm/nouveau/i2c/tu102-: prepare for GSP-RM

- disable I2C completely when GSP-RM detected
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230918202149.4343-14-skeggsb@gmail.com
parent 2cfad4b0
......@@ -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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment