]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1e17384a775e6c74e6eeae4d2617618416fb528
tree2a1fe3cffdfe2a490359a6c933a238c7c2e3ebe2
parentb709f0323de10c95512f8df7db2a04f1083cb79f
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