Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: libata: remove pointless debugging messages

Debugging messages in pci init functions or sg setup are pretty
much pointless, as the workflow pretty much decides what happened.
So drop them.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>

authored by

Hannes Reinecke and committed by
Damien Le Moal
f3b9db5f da299470

-29
-4
drivers/ata/acard-ahci.c
··· 185 185 struct acard_sg *acard_sg = cmd_tbl + AHCI_CMD_TBL_HDR_SZ; 186 186 unsigned int si, last_si = 0; 187 187 188 - VPRINTK("ENTER\n"); 189 - 190 188 /* 191 189 * Next, the S/G list. 192 190 */ ··· 359 361 struct ahci_host_priv *hpriv; 360 362 struct ata_host *host; 361 363 int n_ports, i, rc; 362 - 363 - VPRINTK("ENTER\n"); 364 364 365 365 WARN_ON((int)ATA_MAX_QUEUE > AHCI_MAX_CMDS); 366 366
-2
drivers/ata/ahci.c
··· 1673 1673 int n_ports, i, rc; 1674 1674 int ahci_pci_bar = AHCI_PCI_BAR_STANDARD; 1675 1675 1676 - VPRINTK("ENTER\n"); 1677 - 1678 1676 WARN_ON((int)ATA_MAX_QUEUE > AHCI_MAX_CMDS); 1679 1677 1680 1678 ata_print_version_once(&pdev->dev, DRV_VERSION);
-3
drivers/ata/ata_piix.c
··· 1345 1345 new_pcs = pcs | map_db->port_enable; 1346 1346 1347 1347 if (new_pcs != pcs) { 1348 - DPRINTK("updating PCS from 0x%x to 0x%x\n", pcs, new_pcs); 1349 1348 pci_write_config_word(pdev, ICH5_PCS, new_pcs); 1350 1349 msleep(150); 1351 1350 } ··· 1768 1769 { 1769 1770 int rc; 1770 1771 1771 - DPRINTK("pci_register_driver\n"); 1772 1772 rc = pci_register_driver(&piix_pci_driver); 1773 1773 if (rc) 1774 1774 return rc; 1775 1775 1776 1776 in_module_init = 0; 1777 1777 1778 - DPRINTK("done\n"); 1779 1778 return 0; 1780 1779 } 1781 1780
-3
drivers/ata/libahci.c
··· 1620 1620 struct ahci_sg *ahci_sg = cmd_tbl + AHCI_CMD_TBL_HDR_SZ; 1621 1621 unsigned int si; 1622 1622 1623 - VPRINTK("ENTER\n"); 1624 - 1625 1623 /* 1626 1624 * Next, the S/G list. 1627 1625 */ ··· 1693 1695 u32 fbs = readl(port_mmio + PORT_FBS); 1694 1696 int retries = 3; 1695 1697 1696 - DPRINTK("ENTER\n"); 1697 1698 BUG_ON(!pp->fbs_enabled); 1698 1699 1699 1700 /* time to wait for DEC is not specified by AHCI spec,
-11
drivers/ata/libata-core.c
··· 764 764 head = track % dev->heads; 765 765 sect = (u32)block % dev->sectors + 1; 766 766 767 - DPRINTK("block %u track %u cyl %u head %u sect %u\n", 768 - (u32)block, track, cyl, head, sect); 769 - 770 767 /* Check whether the converted CHS can fit. 771 768 Cylinder: 0-65535 772 769 Head: 0-15 ··· 4566 4569 struct ata_port *ap = qc->ap; 4567 4570 unsigned int n_elem; 4568 4571 4569 - VPRINTK("ENTER, ata%u\n", ap->print_id); 4570 - 4571 4572 n_elem = dma_map_sg(ap->dev, qc->sg, qc->n_elem, qc->dma_dir); 4572 4573 if (n_elem < 1) 4573 4574 return -1; ··· 5370 5375 { 5371 5376 struct ata_port *ap; 5372 5377 5373 - DPRINTK("ENTER\n"); 5374 - 5375 5378 ap = kzalloc(sizeof(*ap), GFP_KERNEL); 5376 5379 if (!ap) 5377 5380 return NULL; ··· 5485 5492 size_t sz; 5486 5493 int i; 5487 5494 void *dr; 5488 - 5489 - DPRINTK("ENTER\n"); 5490 5495 5491 5496 /* alloc a container for our list of ATA ports (buses) */ 5492 5497 sz = sizeof(struct ata_host) + (max_ports + 1) * sizeof(void *); ··· 5775 5784 __ata_port_probe(ap); 5776 5785 ata_port_wait_eh(ap); 5777 5786 } else { 5778 - DPRINTK("ata%u: bus probe begin\n", ap->print_id); 5779 5787 rc = ata_bus_probe(ap); 5780 - DPRINTK("ata%u: bus probe end\n", ap->print_id); 5781 5788 } 5782 5789 return rc; 5783 5790 }
-2
drivers/ata/libata-sff.c
··· 2467 2467 struct ata_host *host = NULL; 2468 2468 int rc; 2469 2469 2470 - DPRINTK("ENTER\n"); 2471 - 2472 2470 pi = ata_sff_find_valid_pi(ppi); 2473 2471 if (!pi) { 2474 2472 dev_err(&pdev->dev, "no valid port_info specified\n");
-4
drivers/ata/sata_nv.c
··· 1277 1277 unsigned int i; 1278 1278 u32 tmp32; 1279 1279 1280 - VPRINTK("ENTER\n"); 1281 - 1282 1280 /* enable ADMA on the ports */ 1283 1281 pci_read_config_dword(pdev, NV_MCP_SATA_CFG_20, &tmp32); 1284 1282 tmp32 |= NV_MCP_SATA_CFG_20_PORT0_EN | ··· 1317 1319 struct nv_adma_prd *aprd; 1318 1320 struct scatterlist *sg; 1319 1321 unsigned int si; 1320 - 1321 - VPRINTK("ENTER\n"); 1322 1322 1323 1323 for_each_sg(qc->sg, sg, qc->n_elem, si) { 1324 1324 aprd = (si < 5) ? &cpb->aprd[si] :