From: Bartlomiej Zolnierkiewicz Date: Mon, 18 Jan 2010 17:16:38 +0000 (+0100) Subject: pata_serverworks: fix PIO setup for the second channel X-Git-Tag: v2.6.34-rc1~235^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8490377acc0869d660185bd4a9e360363d110a21;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git pata_serverworks: fix PIO setup for the second channel Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_serverworks.c b/drivers/ata/pata_serverworks.c index beaed12..9acabd2 100644 --- a/drivers/ata/pata_serverworks.c +++ b/drivers/ata/pata_serverworks.c @@ -1,6 +1,7 @@ /* * pata_serverworks.c - Serverworks PATA for new ATA layer * (C) 2005 Red Hat Inc + * (C) 2010 Bartlomiej Zolnierkiewicz * * based upon * @@ -253,7 +254,7 @@ static void serverworks_set_piomode(struct ata_port *ap, struct ata_device *adev if (serverworks_is_csb(pdev)) { pci_read_config_word(pdev, 0x4A, &csb5_pio); csb5_pio &= ~(0x0F << devbits); - pci_write_config_byte(pdev, 0x4A, csb5_pio | (pio << devbits)); + pci_write_config_word(pdev, 0x4A, csb5_pio | (pio << devbits)); } }