diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-12 06:53:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-12 06:53:48 -0400 |
commit | 62d2e531d7f353a77356c461bac12a0dc23aff7c (patch) | |
tree | 03743efdbbac363afec5411f8debd1cc2e016cdc | |
parent | c789174bde280c90bb8cdc680cf58a8f03fcdca0 (diff) | |
parent | 5ba15878f23c4bafb95afa0dabe9d08d89520259 (diff) |
Merge tag 'drm-fixes-2018-10-12-1' of git://anongit.freedesktop.org/drm/drm
Dave writes:
"drm fixes for 4.19-rc8
single nouveau runtime reference and mst change"
* tag 'drm-fixes-2018-10-12-1' of git://anongit.freedesktop.org/drm/drm:
drm/nouveau/drm/nouveau: Grab runtime PM ref in nv50_mstc_detect()
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/disp.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 5691dfa1db6f..041e7daf8a33 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c | |||
@@ -900,9 +900,22 @@ static enum drm_connector_status | |||
900 | nv50_mstc_detect(struct drm_connector *connector, bool force) | 900 | nv50_mstc_detect(struct drm_connector *connector, bool force) |
901 | { | 901 | { |
902 | struct nv50_mstc *mstc = nv50_mstc(connector); | 902 | struct nv50_mstc *mstc = nv50_mstc(connector); |
903 | enum drm_connector_status conn_status; | ||
904 | int ret; | ||
905 | |||
903 | if (!mstc->port) | 906 | if (!mstc->port) |
904 | return connector_status_disconnected; | 907 | return connector_status_disconnected; |
905 | return drm_dp_mst_detect_port(connector, mstc->port->mgr, mstc->port); | 908 | |
909 | ret = pm_runtime_get_sync(connector->dev->dev); | ||
910 | if (ret < 0 && ret != -EACCES) | ||
911 | return connector_status_disconnected; | ||
912 | |||
913 | conn_status = drm_dp_mst_detect_port(connector, mstc->port->mgr, | ||
914 | mstc->port); | ||
915 | |||
916 | pm_runtime_mark_last_busy(connector->dev->dev); | ||
917 | pm_runtime_put_autosuspend(connector->dev->dev); | ||
918 | return conn_status; | ||
906 | } | 919 | } |
907 | 920 | ||
908 | static void | 921 | static void |