Patch "ALSA: hda: call runtime_allow() for all hda controllers" has been added to the 4.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ALSA: hda: call runtime_allow() for all hda controllers

to the 4.19-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:
     alsa-hda-call-runtime_allow-for-all-hda-controllers.patch
and it can be found in the queue-4.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 34f9fd6209f4eff3e1483749c884818179aa6dde
Author: Hui Wang <hui.wang@xxxxxxxxxxxxx>
Date:   Tue Apr 14 22:27:25 2020 +0800

    ALSA: hda: call runtime_allow() for all hda controllers
    
    [ Upstream commit 9a6418487b566503c772cb6e7d3d44e652b019b0 ]
    
    Before the pci_driver->probe() is called, the pci subsystem calls
    runtime_forbid() and runtime_get_sync() on this pci dev, so only call
    runtime_put_autosuspend() is not enough to enable the runtime_pm on
    this device.
    
    For controllers with vgaswitcheroo feature, the pci/quirks.c will call
    runtime_allow() for this dev, then the controllers could enter
    rt_idle/suspend/resume, but for non-vgaswitcheroo controllers like
    Intel hda controllers, the runtime_pm is not enabled because the
    runtime_allow() is not called.
    
    Since it is no harm calling runtime_allow() twice, here let hda
    driver call runtime_allow() for all controllers. Then the runtime_pm
    is enabled on all controllers after the put_autosuspend() is called.
    
    Signed-off-by: Hui Wang <hui.wang@xxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20200414142725.6020-1-hui.wang@xxxxxxxxxxxxx
    Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index ff448abb5449f..0d7981eda2c4f 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2477,6 +2477,7 @@ static int azx_probe_continue(struct azx *chip)
 
 	if (azx_has_pm_runtime(chip)) {
 		pm_runtime_use_autosuspend(&pci->dev);
+		pm_runtime_allow(&pci->dev);
 		pm_runtime_put_autosuspend(&pci->dev);
 	}
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux