Skip to content

Commit eebb2af

Browse files
committed
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: ata: fix obviously wrong comment ahci: force CAP_NCQ for earlier NV MCPs [libata] sata_via: kill uninit'd var warning
2 parents b534d38 + f600535 commit eebb2af

3 files changed

Lines changed: 35 additions & 28 deletions

File tree

‎drivers/ata/ahci.c‎

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ enum {
114114
board_ahci_sb700 = 5, /* for SB700 and SB800 */
115115
board_ahci_mcp65 = 6,
116116
board_ahci_nopmp = 7,
117+
board_ahci_yesncq = 8,
117118

118119
/* global controller registers */
119120
HOST_CAP = 0x00, /* host capabilities */
@@ -469,6 +470,14 @@ static const struct ata_port_info ahci_port_info[] = {
469470
.udma_mask = ATA_UDMA6,
470471
.port_ops = &ahci_ops,
471472
},
473+
/* board_ahci_yesncq */
474+
{
475+
AHCI_HFLAGS (AHCI_HFLAG_YES_NCQ),
476+
.flags = AHCI_FLAG_COMMON,
477+
.pio_mask = ATA_PIO4,
478+
.udma_mask = ATA_UDMA6,
479+
.port_ops = &ahci_ops,
480+
},
472481
};
473482

474483
static const struct pci_device_id ahci_pci_tbl[] = {
@@ -535,30 +544,30 @@ static const struct pci_device_id ahci_pci_tbl[] = {
535544
{ PCI_VDEVICE(NVIDIA, 0x045d), board_ahci_mcp65 }, /* MCP65 */
536545
{ PCI_VDEVICE(NVIDIA, 0x045e), board_ahci_mcp65 }, /* MCP65 */
537546
{ PCI_VDEVICE(NVIDIA, 0x045f), board_ahci_mcp65 }, /* MCP65 */
538-
{ PCI_VDEVICE(NVIDIA, 0x0550), board_ahci }, /* MCP67 */
539-
{ PCI_VDEVICE(NVIDIA, 0x0551), board_ahci }, /* MCP67 */
540-
{ PCI_VDEVICE(NVIDIA, 0x0552), board_ahci }, /* MCP67 */
541-
{ PCI_VDEVICE(NVIDIA, 0x0553), board_ahci }, /* MCP67 */
542-
{ PCI_VDEVICE(NVIDIA, 0x0554), board_ahci }, /* MCP67 */
543-
{ PCI_VDEVICE(NVIDIA, 0x0555), board_ahci }, /* MCP67 */
544-
{ PCI_VDEVICE(NVIDIA, 0x0556), board_ahci }, /* MCP67 */
545-
{ PCI_VDEVICE(NVIDIA, 0x0557), board_ahci }, /* MCP67 */
546-
{ PCI_VDEVICE(NVIDIA, 0x0558), board_ahci }, /* MCP67 */
547-
{ PCI_VDEVICE(NVIDIA, 0x0559), board_ahci }, /* MCP67 */
548-
{ PCI_VDEVICE(NVIDIA, 0x055a), board_ahci }, /* MCP67 */
549-
{ PCI_VDEVICE(NVIDIA, 0x055b), board_ahci }, /* MCP67 */
550-
{ PCI_VDEVICE(NVIDIA, 0x07f0), board_ahci }, /* MCP73 */
551-
{ PCI_VDEVICE(NVIDIA, 0x07f1), board_ahci }, /* MCP73 */
552-
{ PCI_VDEVICE(NVIDIA, 0x07f2), board_ahci }, /* MCP73 */
553-
{ PCI_VDEVICE(NVIDIA, 0x07f3), board_ahci }, /* MCP73 */
554-
{ PCI_VDEVICE(NVIDIA, 0x07f4), board_ahci }, /* MCP73 */
555-
{ PCI_VDEVICE(NVIDIA, 0x07f5), board_ahci }, /* MCP73 */
556-
{ PCI_VDEVICE(NVIDIA, 0x07f6), board_ahci }, /* MCP73 */
557-
{ PCI_VDEVICE(NVIDIA, 0x07f7), board_ahci }, /* MCP73 */
558-
{ PCI_VDEVICE(NVIDIA, 0x07f8), board_ahci }, /* MCP73 */
559-
{ PCI_VDEVICE(NVIDIA, 0x07f9), board_ahci }, /* MCP73 */
560-
{ PCI_VDEVICE(NVIDIA, 0x07fa), board_ahci }, /* MCP73 */
561-
{ PCI_VDEVICE(NVIDIA, 0x07fb), board_ahci }, /* MCP73 */
547+
{ PCI_VDEVICE(NVIDIA, 0x0550), board_ahci_yesncq }, /* MCP67 */
548+
{ PCI_VDEVICE(NVIDIA, 0x0551), board_ahci_yesncq }, /* MCP67 */
549+
{ PCI_VDEVICE(NVIDIA, 0x0552), board_ahci_yesncq }, /* MCP67 */
550+
{ PCI_VDEVICE(NVIDIA, 0x0553), board_ahci_yesncq }, /* MCP67 */
551+
{ PCI_VDEVICE(NVIDIA, 0x0554), board_ahci_yesncq }, /* MCP67 */
552+
{ PCI_VDEVICE(NVIDIA, 0x0555), board_ahci_yesncq }, /* MCP67 */
553+
{ PCI_VDEVICE(NVIDIA, 0x0556), board_ahci_yesncq }, /* MCP67 */
554+
{ PCI_VDEVICE(NVIDIA, 0x0557), board_ahci_yesncq }, /* MCP67 */
555+
{ PCI_VDEVICE(NVIDIA, 0x0558), board_ahci_yesncq }, /* MCP67 */
556+
{ PCI_VDEVICE(NVIDIA, 0x0559), board_ahci_yesncq }, /* MCP67 */
557+
{ PCI_VDEVICE(NVIDIA, 0x055a), board_ahci_yesncq }, /* MCP67 */
558+
{ PCI_VDEVICE(NVIDIA, 0x055b), board_ahci_yesncq }, /* MCP67 */
559+
{ PCI_VDEVICE(NVIDIA, 0x07f0), board_ahci_yesncq }, /* MCP73 */
560+
{ PCI_VDEVICE(NVIDIA, 0x07f1), board_ahci_yesncq }, /* MCP73 */
561+
{ PCI_VDEVICE(NVIDIA, 0x07f2), board_ahci_yesncq }, /* MCP73 */
562+
{ PCI_VDEVICE(NVIDIA, 0x07f3), board_ahci_yesncq }, /* MCP73 */
563+
{ PCI_VDEVICE(NVIDIA, 0x07f4), board_ahci_yesncq }, /* MCP73 */
564+
{ PCI_VDEVICE(NVIDIA, 0x07f5), board_ahci_yesncq }, /* MCP73 */
565+
{ PCI_VDEVICE(NVIDIA, 0x07f6), board_ahci_yesncq }, /* MCP73 */
566+
{ PCI_VDEVICE(NVIDIA, 0x07f7), board_ahci_yesncq }, /* MCP73 */
567+
{ PCI_VDEVICE(NVIDIA, 0x07f8), board_ahci_yesncq }, /* MCP73 */
568+
{ PCI_VDEVICE(NVIDIA, 0x07f9), board_ahci_yesncq }, /* MCP73 */
569+
{ PCI_VDEVICE(NVIDIA, 0x07fa), board_ahci_yesncq }, /* MCP73 */
570+
{ PCI_VDEVICE(NVIDIA, 0x07fb), board_ahci_yesncq }, /* MCP73 */
562571
{ PCI_VDEVICE(NVIDIA, 0x0ad0), board_ahci }, /* MCP77 */
563572
{ PCI_VDEVICE(NVIDIA, 0x0ad1), board_ahci }, /* MCP77 */
564573
{ PCI_VDEVICE(NVIDIA, 0x0ad2), board_ahci }, /* MCP77 */

‎drivers/ata/libata-core.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6110,13 +6110,11 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht)
61106110
ata_port_printk(ap, KERN_INFO, "DUMMY\n");
61116111
}
61126112

6113-
/* perform each probe synchronously */
6114-
DPRINTK("probe begin\n");
6113+
/* perform each probe asynchronously */
61156114
for (i = 0; i < host->n_ports; i++) {
61166115
struct ata_port *ap = host->ports[i];
61176116
async_schedule(async_port_probe, ap);
61186117
}
6119-
DPRINTK("probe end\n");
61206118

61216119
return 0;
61226120
}

‎drivers/ata/sata_via.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ static int svia_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
566566
static int printed_version;
567567
unsigned int i;
568568
int rc;
569-
struct ata_host *host;
569+
struct ata_host *host = NULL;
570570
int board_id = (int) ent->driver_data;
571571
const unsigned *bar_sizes;
572572

0 commit comments

Comments
 (0)