Commit:     18166c1a50dc4f5b121ab2bd4fdf178404db9d99
Parent:     f122392f679ebed39db08074f935d770504623eb
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Sun Aug 19 12:03:07 2007 +0200
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Wed Aug 22 14:48:41 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/pci/quirks.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 31f680f..2d40f43 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -947,7 +947,7 @@ static void k8t_sound_hostbridge(struct pci_dev *dev)
        unsigned char val;
        pci_read_config_byte(dev, 0x50, &val);
-       if (val == 0x88 || val == 0xc8) {
+       if (val == 0xc8) {
                /* Assume it's probably a MSI-K8T-Neo2Fir */
                printk(KERN_INFO "PCI: MSI-K8T-Neo2Fir, attempting to turn 
soundcard ON\n");
                pci_write_config_byte(dev, 0x50, val & (~0x40));
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to