]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Fix regressions on clear and reconfig sysfs
authorTakashi Iwai <tiwai@suse.de>
Wed, 9 Dec 2020 15:01:19 +0000 (16:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Dec 2020 18:55:35 +0000 (19:55 +0100)
commitfbe550eec0f1ceea6b4f7f3522ded133be185f1e
tree462af021009189a1472d303d6647975e40fcb76b
parent34f4148563a87be4046acbe4b3bbf1582ab55a12
ALSA: hda: Fix regressions on clear and reconfig sysfs

It seems that the HD-audio clear and reconfig sysfs don't work any
longer after the recent driver core change.  There are multiple issues
around that: the linked list corruption and the dead device handling.
The former issue is fixed by another patch for the driver core itself,
while the latter patch needs to be addressed in HD-audio side.

This patch corresponds to the latter, it recovers those broken
functions by replacing the device detach and attach actions with the
standard core API functions, which are almost equivalent with unbind
and bind actions.

Fixes: b7ba8b78c81f ("driver core: Avoid binding drivers to dead devices")
Cc: <stable@vger.kernel.org>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=209207
Link: https://lore.kernel.org/r/20201209150119.7705-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_sysfs.c