diff options
-rw-r--r-- | drivers/ata/sata_via.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c index 21007b10c676..f93e43b0ccd8 100644 --- a/drivers/ata/sata_via.c +++ b/drivers/ata/sata_via.c | |||
@@ -548,9 +548,8 @@ static void svia_configure(struct pci_dev *pdev, int board_id) | |||
548 | /* make sure SATA channels are enabled */ | 548 | /* make sure SATA channels are enabled */ |
549 | pci_read_config_byte(pdev, SATA_CHAN_ENAB, &tmp8); | 549 | pci_read_config_byte(pdev, SATA_CHAN_ENAB, &tmp8); |
550 | if ((tmp8 & ALL_PORTS) != ALL_PORTS) { | 550 | if ((tmp8 & ALL_PORTS) != ALL_PORTS) { |
551 | dev_printk(KERN_DEBUG, &pdev->dev, | 551 | dev_dbg(&pdev->dev, "enabling SATA channels (0x%x)\n", |
552 | "enabling SATA channels (0x%x)\n", | 552 | (int)tmp8); |
553 | (int) tmp8); | ||
554 | tmp8 |= ALL_PORTS; | 553 | tmp8 |= ALL_PORTS; |
555 | pci_write_config_byte(pdev, SATA_CHAN_ENAB, tmp8); | 554 | pci_write_config_byte(pdev, SATA_CHAN_ENAB, tmp8); |
556 | } | 555 | } |
@@ -558,9 +557,8 @@ static void svia_configure(struct pci_dev *pdev, int board_id) | |||
558 | /* make sure interrupts for each channel sent to us */ | 557 | /* make sure interrupts for each channel sent to us */ |
559 | pci_read_config_byte(pdev, SATA_INT_GATE, &tmp8); | 558 | pci_read_config_byte(pdev, SATA_INT_GATE, &tmp8); |
560 | if ((tmp8 & ALL_PORTS) != ALL_PORTS) { | 559 | if ((tmp8 & ALL_PORTS) != ALL_PORTS) { |
561 | dev_printk(KERN_DEBUG, &pdev->dev, | 560 | dev_dbg(&pdev->dev, "enabling SATA channel interrupts (0x%x)\n", |
562 | "enabling SATA channel interrupts (0x%x)\n", | 561 | (int) tmp8); |
563 | (int) tmp8); | ||
564 | tmp8 |= ALL_PORTS; | 562 | tmp8 |= ALL_PORTS; |
565 | pci_write_config_byte(pdev, SATA_INT_GATE, tmp8); | 563 | pci_write_config_byte(pdev, SATA_INT_GATE, tmp8); |
566 | } | 564 | } |
@@ -568,9 +566,9 @@ static void svia_configure(struct pci_dev *pdev, int board_id) | |||
568 | /* make sure native mode is enabled */ | 566 | /* make sure native mode is enabled */ |
569 | pci_read_config_byte(pdev, SATA_NATIVE_MODE, &tmp8); | 567 | pci_read_config_byte(pdev, SATA_NATIVE_MODE, &tmp8); |
570 | if ((tmp8 & NATIVE_MODE_ALL) != NATIVE_MODE_ALL) { | 568 | if ((tmp8 & NATIVE_MODE_ALL) != NATIVE_MODE_ALL) { |
571 | dev_printk(KERN_DEBUG, &pdev->dev, | 569 | dev_dbg(&pdev->dev, |
572 | "enabling SATA channel native mode (0x%x)\n", | 570 | "enabling SATA channel native mode (0x%x)\n", |
573 | (int) tmp8); | 571 | (int) tmp8); |
574 | tmp8 |= NATIVE_MODE_ALL; | 572 | tmp8 |= NATIVE_MODE_ALL; |
575 | pci_write_config_byte(pdev, SATA_NATIVE_MODE, tmp8); | 573 | pci_write_config_byte(pdev, SATA_NATIVE_MODE, tmp8); |
576 | } | 574 | } |