Commit 17674d66 authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm/nouveau: Implement switcheroo reprobe with drm_client_dev_hotplug()

Replace the call to drm_fb_helper_output_poll_changed() with a call
to drm_client_dev_hotplug(). It is equivalent in functionality, but
uses the DRM client infrastructure.

v2:
- fix commit description
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: default avatarDanilo Krummrich <dakr@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240812083000.337744-6-tzimmermann@suse.de
parent a0634663
...@@ -58,8 +58,9 @@ static void ...@@ -58,8 +58,9 @@ static void
nouveau_switcheroo_reprobe(struct pci_dev *pdev) nouveau_switcheroo_reprobe(struct pci_dev *pdev)
{ {
struct nouveau_drm *drm = pci_get_drvdata(pdev); struct nouveau_drm *drm = pci_get_drvdata(pdev);
struct drm_device *dev = drm->dev;
drm_fb_helper_output_poll_changed(drm->dev); drm_client_dev_hotplug(dev);
} }
static bool static bool
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment