]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/mc: expose device enable/disable separately, as well as reset
authorBen Skeggs <bskeggs@redhat.com>
Sun, 29 May 2016 22:23:41 +0000 (08:23 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Jul 2016 01:53:25 +0000 (11:53 +1000)
commit9dc252a89287180b5c31464a105b194de8a1bdb3
tree2205bb8a12fb2d245f8da2dbb53feb40ae0fb263
parent422b7e79b773199a7ca17ef65e2515ebe5646f98
drm/nouveau/mc: expose device enable/disable separately, as well as reset

There are cases where subdevs need to perform additonal actions around
the master reset, so we want to expost the operations separately.

This commit also adds a flag to the NV_PMC_ENABLE bitfield definitions
which allow skipping the automatic reset() called from core/subdev.c.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/mc.h
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/mc/priv.h