projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cfad4b
)
drm/nouveau/i2c/tu102-: prepare for GSP-RM
author
Ben Skeggs
<bskeggs@redhat.com>
Mon, 18 Sep 2023 20:21:18 +0000
(06:21 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 31 Oct 2023 05:08:11 +0000
(15:08 +1000)
- disable I2C completely when GSP-RM detected
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20230918202149.4343-14-skeggsb@gmail.com
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/gm200.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/gm200.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/gm200.c
index 46917eb600f9dd3b929f53cf3feeb0b8c3684d47..0494775113128f3fb8981e202af94150e38e317a 100644
(file)
--- 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);
}