search for: nvkm_i2c_aux_ctor

Displaying 3 results from an estimated 3 matches for "nvkm_i2c_aux_ctor".

2019 Apr 09
2
[PATCH v2] drm/nouveau/i2c: Disable i2c bus access after ->fini()
...+ mutex_lock(&aux->mutex); + aux->enabled = true; + mutex_unlock(&aux->mutex); +} + +void +nvkm_i2c_aux_fini(struct nvkm_i2c_aux *aux) +{ + AUX_TRACE(aux, "fini"); + mutex_lock(&aux->mutex); + aux->enabled = false; + mutex_unlock(&aux->mutex); +} + int nvkm_i2c_aux_ctor(const struct nvkm_i2c_aux_func *func, struct nvkm_i2c_pad *pad, int id, diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h index 7d56c4ba693c..08f6b2ee64ab 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h +++ b/drivers/gpu/drm/n...
2019 Apr 11
1
[PATCH v2] drm/nouveau/i2c: Disable i2c bus access after ->fini()
...i2c_aux_fini(struct nvkm_i2c_aux *aux) > > +{ > > + AUX_TRACE(aux, "fini"); > > + mutex_lock(&aux->mutex); > > + aux->enabled = false; > > + mutex_unlock(&aux->mutex); > > +} > > + > > int > > nvkm_i2c_aux_ctor(const struct nvkm_i2c_aux_func *func, > > struct nvkm_i2c_pad *pad, int id, > > diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h > > b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h > > index 7d56c4ba693c..08f6b2ee64ab 100644 > > --- a/driver...
2019 Apr 10
0
[PATCH v2] drm/nouveau/i2c: Disable i2c bus access after ->fini()
...mutex); > +} > + > +void > +nvkm_i2c_aux_fini(struct nvkm_i2c_aux *aux) > +{ > + AUX_TRACE(aux, "fini"); > + mutex_lock(&aux->mutex); > + aux->enabled = false; > + mutex_unlock(&aux->mutex); > +} > + > int > nvkm_i2c_aux_ctor(const struct nvkm_i2c_aux_func *func, > struct nvkm_i2c_pad *pad, int id, > diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h > index 7d56c4ba693c..08f6b2ee64ab 100644 > --- a/drivers/gpu/drm/nouveau/nvkm/subdev/...