]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
PCI: Run k8t_sound_hostbridge quirk only when needed
authorJean Delvare <khali@linux-fr.org>
Sun, 19 Aug 2007 10:03:07 +0000 (12:03 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Aug 2007 21:48:41 +0000 (14:48 -0700)
commit18166c1a50dc4f5b121ab2bd4fdf178404db9d99
tree2283ac9dc4a36d0e96a0b7ae330a1eae1f7f12e8
parentf122392f679ebed39db08074f935d770504623eb
PCI: Run k8t_sound_hostbridge quirk only when needed

The k8t_sound_hostbridge PCI quick fires on my motherboard (Jetway
K8M8MS) while it shouldn't: the on-board sound chip is not disabled
and is working just fine. Looking at the code, I see that we are
running the quirk for two distinct register values (0x88 and 0xc8)
and then clear bit 6 (0x40). However value 0x88 already has bit 6
cleared so this is a no-op. This is what happens on my board. Thus I
believe that the quirk should only be run for register value 0xc8.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/quirks.c