ALSA: hda/tegra - async probe for avoiding module loading deadlock
authorTakashi Iwai <tiwai@suse.de>
Thu, 24 Sep 2015 09:00:18 +0000 (11:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Sep 2015 12:01:46 +0000 (14:01 +0200)
commit83510441bc08bee201c0ded9d81da6dfd008d69a
tree60cd0b507d8c82e4dd0507bb3749632c0f1953b1
parent1f93e4a96c9109378204c147b3eec0d0e8100fde
ALSA: hda/tegra - async probe for avoiding module loading deadlock

The Tegra HD-audio controller driver causes deadlocks when loaded as a
module since the driver invokes request_module() at binding with the
codec driver.  This patch works around it by deferring the probe in a
work like Intel HD-audio controller driver does.  Although hovering
the codec probe stuff into udev would be a better solution, it may
cause other regressions, so let's try this band-aid fix until the more
proper solution gets landed.

Reported-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_tegra.c