Displaying 4 results from an estimated 4 matches for "nvkm_i2c_init".
2019 Jun 26
0
[PATCH] drm/nouveau: Enable i2c pads & busses during preinit
...ur i2c busses as early as possible, since they may be
+ * needed by the vbios init scripts on some cards
+ */
+ list_for_each_entry(pad, &i2c->pad, head)
+ nvkm_i2c_pad_init(pad);
+ list_for_each_entry(bus, &i2c->bus, head)
+ nvkm_i2c_bus_init(bus);
+
+ return 0;
+}
+
static int
nvkm_i2c_init(struct nvkm_subdev *subdev)
{
@@ -238,6 +257,7 @@ nvkm_i2c_dtor(struct nvkm_subdev *subdev)
static const struct nvkm_subdev_func
nvkm_i2c = {
.dtor = nvkm_i2c_dtor,
+ .preinit = nvkm_i2c_preinit,
.init = nvkm_i2c_init,
.fini = nvkm_i2c_fini,
.intr = nvkm_i2c_intr,
--
2.21.0
2019 Apr 09
2
[PATCH v2] drm/nouveau/i2c: Disable i2c bus access after ->fini()
...&i2c->bus, head) {
+ nvkm_i2c_bus_fini(bus);
+ }
+
if ((mask = (1 << i2c->func->aux) - 1), i2c->func->aux_stat) {
i2c->func->aux_mask(i2c, NVKM_I2C_ANY, mask, 0);
i2c->func->aux_stat(i2c, &mask, &mask, &mask, &mask);
@@ -180,6 +190,7 @@ nvkm_i2c_init(struct nvkm_subdev *subdev)
struct nvkm_i2c *i2c = nvkm_i2c(subdev);
struct nvkm_i2c_bus *bus;
struct nvkm_i2c_pad *pad;
+ struct nvkm_i2c_aux *aux;
list_for_each_entry(pad, &i2c->pad, head) {
nvkm_i2c_pad_init(pad);
@@ -189,6 +200,10 @@ nvkm_i2c_init(struct nvkm_subdev *subdev)...
2019 Apr 11
1
[PATCH v2] drm/nouveau/i2c: Disable i2c bus access after ->fini()
...if ((mask = (1 << i2c->func->aux) - 1), i2c->func->aux_stat) {
> > i2c->func->aux_mask(i2c, NVKM_I2C_ANY, mask, 0);
> > i2c->func->aux_stat(i2c, &mask, &mask, &mask, &mask);
> > @@ -180,6 +190,7 @@ nvkm_i2c_init(struct nvkm_subdev *subdev)
> > struct nvkm_i2c *i2c = nvkm_i2c(subdev);
> > struct nvkm_i2c_bus *bus;
> > struct nvkm_i2c_pad *pad;
> > + struct nvkm_i2c_aux *aux;
> >
> > list_for_each_entry(pad, &i2c->pad, head) {...
2019 Apr 10
0
[PATCH v2] drm/nouveau/i2c: Disable i2c bus access after ->fini()
...> +
> if ((mask = (1 << i2c->func->aux) - 1), i2c->func->aux_stat) {
> i2c->func->aux_mask(i2c, NVKM_I2C_ANY, mask, 0);
> i2c->func->aux_stat(i2c, &mask, &mask, &mask, &mask);
> @@ -180,6 +190,7 @@ nvkm_i2c_init(struct nvkm_subdev *subdev)
> struct nvkm_i2c *i2c = nvkm_i2c(subdev);
> struct nvkm_i2c_bus *bus;
> struct nvkm_i2c_pad *pad;
> + struct nvkm_i2c_aux *aux;
>
> list_for_each_entry(pad, &i2c->pad, head) {
> nvkm_i2c_p...