diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-07-09 12:29:31 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-09 12:29:31 -0400 |
commit | c1e4fe711a410a139095e6b3e3ce3f07f466063c (patch) | |
tree | 7e3526dfdb1046f77f5e81e2b911a0817e113418 /drivers/ata | |
parent | bf6263a853c9c143bf03f0a6fdcc68ab714fb5f5 (diff) |
[libata] sata_mv: print out additional chip info during probe
Indicate whether this is a Generation-I (50xx), Generation-II (60xx),
or Generation-II-E (6042/7042) chip.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/sata_mv.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index d65ec234be5c..3873b29c80d6 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c | |||
@@ -2338,7 +2338,7 @@ static void mv_print_info(struct ata_host *host) | |||
2338 | struct pci_dev *pdev = to_pci_dev(host->dev); | 2338 | struct pci_dev *pdev = to_pci_dev(host->dev); |
2339 | struct mv_host_priv *hpriv = host->private_data; | 2339 | struct mv_host_priv *hpriv = host->private_data; |
2340 | u8 rev_id, scc; | 2340 | u8 rev_id, scc; |
2341 | const char *scc_s; | 2341 | const char *scc_s, *gen; |
2342 | 2342 | ||
2343 | /* Use this to determine the HW stepping of the chip so we know | 2343 | /* Use this to determine the HW stepping of the chip so we know |
2344 | * what errata to workaround | 2344 | * what errata to workaround |
@@ -2351,11 +2351,20 @@ static void mv_print_info(struct ata_host *host) | |||
2351 | else if (scc == 0x01) | 2351 | else if (scc == 0x01) |
2352 | scc_s = "RAID"; | 2352 | scc_s = "RAID"; |
2353 | else | 2353 | else |
2354 | scc_s = "unknown"; | 2354 | scc_s = "?"; |
2355 | |||
2356 | if (IS_GEN_I(hpriv)) | ||
2357 | gen = "I"; | ||
2358 | else if (IS_GEN_II(hpriv)) | ||
2359 | gen = "II"; | ||
2360 | else if (IS_GEN_IIE(hpriv)) | ||
2361 | gen = "IIE"; | ||
2362 | else | ||
2363 | gen = "?"; | ||
2355 | 2364 | ||
2356 | dev_printk(KERN_INFO, &pdev->dev, | 2365 | dev_printk(KERN_INFO, &pdev->dev, |
2357 | "%u slots %u ports %s mode IRQ via %s\n", | 2366 | "Gen-%s %u slots %u ports %s mode IRQ via %s\n", |
2358 | (unsigned)MV_MAX_Q_DEPTH, host->n_ports, | 2367 | gen, (unsigned)MV_MAX_Q_DEPTH, host->n_ports, |
2359 | scc_s, (MV_HP_FLAG_MSI & hpriv->hp_flags) ? "MSI" : "INTx"); | 2368 | scc_s, (MV_HP_FLAG_MSI & hpriv->hp_flags) ? "MSI" : "INTx"); |
2360 | } | 2369 | } |
2361 | 2370 | ||