···538538 return 0;539539}540540541541-static void svia_configure(struct pci_dev *pdev)541541+static void svia_configure(struct pci_dev *pdev, int board_id)542542{543543 u8 tmp8;544544···577577 }578578579579 /*580580- * vt6421 has problems talking to some drives. The following580580+ * vt6420/1 has problems talking to some drives. The following581581 * is the fix from Joseph Chan <JosephChan@via.com.tw>.582582 *583583 * When host issues HOLD, device may send up to 20DW of data···596596 *597597 * https://bugzilla.kernel.org/show_bug.cgi?id=15173598598 * http://article.gmane.org/gmane.linux.ide/46352599599+ * http://thread.gmane.org/gmane.linux.kernel/1062139599600 */600600- if (pdev->device == 0x3249) {601601+ if (board_id == vt6420 || board_id == vt6421) {601602 pci_read_config_byte(pdev, 0x52, &tmp8);602603 tmp8 |= 1 << 2;603604 pci_write_config_byte(pdev, 0x52, tmp8);···653652 if (rc)654653 return rc;655654656656- svia_configure(pdev);655655+ svia_configure(pdev, board_id);657656658657 pci_set_master(pdev);659658 return ata_host_activate(host, pdev->irq, ata_bmdma_interrupt,