diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2017-05-15 12:04:31 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-05-17 09:09:41 +1000 |
commit | 9a2eba337cacefc95b97c2726e3efdd435b3460e (patch) | |
tree | b28afdd73bdcd14b105f3e5f6a80f0c454868aee /drivers/fpga/ts73xx-fpga.c | |
parent | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 (diff) |
drm/nouveau: Fix drm poll_helper handling
Commit cae9ff036eea effectively disabled the drm poll_helper by checking
the wrong flag to see if the driver should enable the poll or not:
mode_config.poll_enabled is only set to true by poll_init and it is not
indicating if the poll is enabled or not.
nouveau_display_create() will initialize the poll and going to disable it
right away. After poll_init() the mode_config.poll_enabled will be true,
but the poll itself is disabled.
To avoid the race caused by calling the poll_enable() from different paths,
this patch will enable the poll from one place, in the
nouveau_display_hpd_work().
In case the pm_runtime is disabled we will enable the poll in
nouveau_drm_load() once.
Fixes: cae9ff036eea ("drm/nouveau: Don't enabling polling twice on runtime resume")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Lyude <lyude@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/fpga/ts73xx-fpga.c')
0 files changed, 0 insertions, 0 deletions