drm/nouveau/therm: ack any pending IRQ at init
authorMartin Peres <martin.peres@labri.fr>
Sun, 8 Sep 2013 22:43:27 +0000 (00:43 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 8 Nov 2013 05:37:43 +0000 (15:37 +1000)
commitb449a43f56d412a0260f3df08b061a5e937db77b
tree2a1fe3cffdfe2a490359a6c933a238c7c2e3ebe2
parentbe0dd4ddefebb35915979e280047eb6f5ecc3235
drm/nouveau/therm: ack any pending IRQ at init

This is safe because ptherm hasn't been configured yet and will be a
little further down the initialization path. Ptherm should be safe
regarding to runtime reconfiguration.

v2:
  - do not limit this patch to nv84-a3 and make it nv84+

v3:
  - move the ack to fini()
  - disable IRQs on fini()
  - silently ignore un-requested IRQs

Signed-off-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/therm/nv84.c
drivers/gpu/drm/nouveau/core/subdev/therm/nva3.c
drivers/gpu/drm/nouveau/core/subdev/therm/nvd0.c
drivers/gpu/drm/nouveau/core/subdev/therm/priv.h