From: Takashi Iwai <tiwai@suse.de>
To: Daniel J Blueman <daniel@quora.org>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] HDA: Fix sound resume hang
Date: Tue, 18 Dec 2012 17:15:06 +0100 [thread overview]
Message-ID: <s5h7gofuyk5.wl%tiwai@suse.de> (raw)
In-Reply-To: <1355846373-3057-1-git-send-email-daniel@quora.org>
At Tue, 18 Dec 2012 23:59:33 +0800,
Daniel J Blueman wrote:
>
> Resuming a switcheroo'd HDA controller hangs since the completion
> is one-shot (thus works the first time). Fix by using completions
> that explictly need rearming, so remain fired before.
>
> Signed-off-by: Daniel J Blueman <daniel@quora.org>
Oops, sorry, this was a forgotten scenario.
This isn't a perfect fix but easy enough and would work practically,
so I applied it now. Thanks.
Takashi
> ---
> sound/pci/hda/hda_intel.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
> index 22ecadc..e12b939 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -2856,7 +2856,7 @@ static int azx_free(struct azx *chip)
> azx_notifier_unregister(chip);
>
> chip->init_failed = 1; /* to be sure */
> - complete(&chip->probe_wait);
> + complete_all(&chip->probe_wait);
>
> if (use_vga_switcheroo(chip)) {
> if (chip->disabled && chip->bus)
> @@ -3482,7 +3482,7 @@ static int __devinit azx_probe(struct pci_dev *pci,
> pm_runtime_put_noidle(&pci->dev);
>
> dev++;
> - complete(&chip->probe_wait);
> + complete_all(&chip->probe_wait);
> return 0;
>
> out_free:
> --
> 1.7.10.4
>
prev parent reply other threads:[~2012-12-18 16:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 15:59 Daniel J Blueman
2012-12-18 16:15 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5h7gofuyk5.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=daniel@quora.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®