This is a note to let you know that I've just added the patch titled vgaswitcheroo: add vga_switcheroo_fini_domain_pm_ops to the 3.16-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: vgaswitcheroo-add-vga_switcheroo_fini_domain_pm_ops.patch and it can be found in the queue-3.16 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 766a53d059d1500c9755c8af017bd411bd8f1b20 Mon Sep 17 00:00:00 2001 From: Alex Deucher <alexander.deucher@xxxxxxx> Date: Fri, 12 Sep 2014 17:51:29 -0400 Subject: vgaswitcheroo: add vga_switcheroo_fini_domain_pm_ops MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Alex Deucher <alexander.deucher@xxxxxxx> commit 766a53d059d1500c9755c8af017bd411bd8f1b20 upstream. Drivers should call this on unload to unregister pmops. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=84431 Reviewed-by: Ben Skeggs <bskeggs@xxxxxxxxxx> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> Signed-off-by: Pali Rohár <pali.rohar@xxxxxxxxx> Cc: Ben Skeggs <bskeggs@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/gpu/vga/vga_switcheroo.c | 6 ++++++ include/linux/vga_switcheroo.h | 2 ++ 2 files changed, 8 insertions(+) --- a/drivers/gpu/vga/vga_switcheroo.c +++ b/drivers/gpu/vga/vga_switcheroo.c @@ -660,6 +660,12 @@ int vga_switcheroo_init_domain_pm_ops(st } EXPORT_SYMBOL(vga_switcheroo_init_domain_pm_ops); +void vga_switcheroo_fini_domain_pm_ops(struct device *dev) +{ + dev->pm_domain = NULL; +} +EXPORT_SYMBOL(vga_switcheroo_fini_domain_pm_ops); + static int vga_switcheroo_runtime_resume_hdmi_audio(struct device *dev) { struct pci_dev *pdev = to_pci_dev(dev); --- a/include/linux/vga_switcheroo.h +++ b/include/linux/vga_switcheroo.h @@ -64,6 +64,7 @@ int vga_switcheroo_get_client_state(stru void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_state dynamic); int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain); +void vga_switcheroo_fini_domain_pm_ops(struct device *dev); int vga_switcheroo_init_domain_pm_optimus_hdmi_audio(struct device *dev, struct dev_pm_domain *domain); #else @@ -82,6 +83,7 @@ static inline int vga_switcheroo_get_cli static inline void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_state dynamic) {} static inline int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain) { return -EINVAL; } +static inline void vga_switcheroo_fini_domain_pm_ops(struct device *dev) {} static inline int vga_switcheroo_init_domain_pm_optimus_hdmi_audio(struct device *dev, struct dev_pm_domain *domain) { return -EINVAL; } #endif Patches currently in stable-queue which might be from alexander.deucher@xxxxxxx are queue-3.16/drm-radeon-tweak-accel_working2-query-for-hawaii.patch queue-3.16/drm-radeon-atom-add-new-voltage-fetch-function-for-hawaii.patch queue-3.16/drm-radeon-don-t-reset-dma-on-ni-si-init.patch queue-3.16/pci-add-pci_ignore_hotplug-to-ignore-hotplug-events-for-a-device.patch queue-3.16/drm-radeon-dpm-fix-resume-on-mullins.patch queue-3.16/drm-radeon-don-t-reset-sdma-on-cik-init.patch queue-3.16/drm-radeon-fix-pm-handling-in-radeon_gpu_reset.patch queue-3.16/drm-radeon-fix-semaphore-value-init.patch queue-3.16/drm-radeon-add-missing-lines-to-ci_set_thermal_temperature_range.patch queue-3.16/drm-radeon-fix-active_cu-mask-on-si-and-cik-after-re-init-v3.patch queue-3.16/drm-radeon-dpm-handle-voltage-info-fetching-on-hawaii.patch queue-3.16/drm-radeon-px-fix-module-unload.patch queue-3.16/drm-radeon-re-enable-dpm-by-default-on-btc.patch queue-3.16/drm-radeon-properly-document-reloc-priority-mask.patch queue-3.16/vgaswitcheroo-add-vga_switcheroo_fini_domain_pm_ops.patch queue-3.16/drm-radeon-handle-broken-disabled-rb-mask-gracefully-6xx-7xx-v2.patch queue-3.16/drm-nouveau-runpm-fix-module-unload.patch queue-3.16/drm-radeon-fix-active-cu-count-for-si-and-cik.patch queue-3.16/drm-radeon-dpm-select-the-appropriate-vce-power-state-for-kv-kb-ml.patch queue-3.16/drm-radeon-re-enable-dpm-by-default-on-cayman.patch queue-3.16/drm-radeon-set-vm-base-addr-using-the-pfp-v2.patch queue-3.16/drm-radeon-add-connector-quirk-for-fujitsu-board.patch queue-3.16/drm-radeon-add-ability-to-get-and-change-dpm-state-when-radeon-px-card-is-turned-off.patch queue-3.16/drm-radeon-cik-use-a-separate-counter-for-cp-init-timeout.patch queue-3.16/drm-radeon-load-the-lm63-driver-for-an-lm64-thermal-chip.patch queue-3.16/drm-radeon-dpm-set-the-thermal-type-properly-for-special-configs.patch queue-3.16/drm-radeon-don-t-reset-dma-on-r6xx-evergreen-init.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html