From: Thomas Zimmermann Date: Mon, 12 Aug 2024 08:28:26 +0000 (+0200) Subject: drm/nouveau: Implement switcheroo reprobe with drm_client_dev_hotplug() X-Git-Tag: v6.12-rc1~126^2~21^2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17674d6603eab37a4f7b1cf5ba345d5a1e275fb7;p=thirdparty%2Fkernel%2Flinux.git 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: Thomas Zimmermann Reviewed-by: Daniel Vetter Acked-by: Danilo Krummrich Link: https://patchwork.freedesktop.org/patch/msgid/20240812083000.337744-6-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/nouveau/nouveau_vga.c b/drivers/gpu/drm/nouveau/nouveau_vga.c index ee637f1fe03d0..ab4e11dc0b8a9 100644 --- a/drivers/gpu/drm/nouveau/nouveau_vga.c +++ b/drivers/gpu/drm/nouveau/nouveau_vga.c @@ -58,8 +58,9 @@ static void nouveau_switcheroo_reprobe(struct pci_dev *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