mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-11-01 09:13:37 +00:00 
			
		
		
		
	ata: ahci: Drop pointless VPRINTK() calls and convert the remaining ones
Drop pointless VPRINTK() calls for entering and existing interrupt routines and convert the remaining calls to dev_dbg(). Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
This commit is contained in:
		
							parent
							
								
									e1553351d7
								
							
						
					
					
						commit
						93c7711494
					
				
					 3 changed files with 5 additions and 21 deletions
				
			
		| 
						 | 
					@ -684,7 +684,7 @@ static void ahci_pci_init_controller(struct ata_host *host)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* clear port IRQ */
 | 
							/* clear port IRQ */
 | 
				
			||||||
		tmp = readl(port_mmio + PORT_IRQ_STAT);
 | 
							tmp = readl(port_mmio + PORT_IRQ_STAT);
 | 
				
			||||||
		VPRINTK("PORT_IRQ_STAT 0x%x\n", tmp);
 | 
							dev_dbg(&pdev->dev, "PORT_IRQ_STAT 0x%x\n", tmp);
 | 
				
			||||||
		if (tmp)
 | 
							if (tmp)
 | 
				
			||||||
			writel(tmp, port_mmio + PORT_IRQ_STAT);
 | 
								writel(tmp, port_mmio + PORT_IRQ_STAT);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -1469,7 +1469,6 @@ static irqreturn_t ahci_thunderx_irq_handler(int irq, void *dev_instance)
 | 
				
			||||||
	u32 irq_stat, irq_masked;
 | 
						u32 irq_stat, irq_masked;
 | 
				
			||||||
	unsigned int handled = 1;
 | 
						unsigned int handled = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	VPRINTK("ENTER\n");
 | 
					 | 
				
			||||||
	hpriv = host->private_data;
 | 
						hpriv = host->private_data;
 | 
				
			||||||
	mmio = hpriv->mmio;
 | 
						mmio = hpriv->mmio;
 | 
				
			||||||
	irq_stat = readl(mmio + HOST_IRQ_STAT);
 | 
						irq_stat = readl(mmio + HOST_IRQ_STAT);
 | 
				
			||||||
| 
						 | 
					@ -1486,7 +1485,6 @@ static irqreturn_t ahci_thunderx_irq_handler(int irq, void *dev_instance)
 | 
				
			||||||
		irq_stat = readl(mmio + HOST_IRQ_STAT);
 | 
							irq_stat = readl(mmio + HOST_IRQ_STAT);
 | 
				
			||||||
		spin_unlock(&host->lock);
 | 
							spin_unlock(&host->lock);
 | 
				
			||||||
	} while (irq_stat);
 | 
						} while (irq_stat);
 | 
				
			||||||
	VPRINTK("EXIT\n");
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return IRQ_RETVAL(handled);
 | 
						return IRQ_RETVAL(handled);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -588,8 +588,6 @@ static irqreturn_t xgene_ahci_irq_intr(int irq, void *dev_instance)
 | 
				
			||||||
	void __iomem *mmio;
 | 
						void __iomem *mmio;
 | 
				
			||||||
	u32 irq_stat, irq_masked;
 | 
						u32 irq_stat, irq_masked;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	VPRINTK("ENTER\n");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	hpriv = host->private_data;
 | 
						hpriv = host->private_data;
 | 
				
			||||||
	mmio = hpriv->mmio;
 | 
						mmio = hpriv->mmio;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -612,8 +610,6 @@ static irqreturn_t xgene_ahci_irq_intr(int irq, void *dev_instance)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spin_unlock(&host->lock);
 | 
						spin_unlock(&host->lock);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	VPRINTK("EXIT\n");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return IRQ_RETVAL(rc);
 | 
						return IRQ_RETVAL(rc);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1234,12 +1234,12 @@ static void ahci_port_init(struct device *dev, struct ata_port *ap,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* clear SError */
 | 
						/* clear SError */
 | 
				
			||||||
	tmp = readl(port_mmio + PORT_SCR_ERR);
 | 
						tmp = readl(port_mmio + PORT_SCR_ERR);
 | 
				
			||||||
	VPRINTK("PORT_SCR_ERR 0x%x\n", tmp);
 | 
						dev_dbg(dev, "PORT_SCR_ERR 0x%x\n", tmp);
 | 
				
			||||||
	writel(tmp, port_mmio + PORT_SCR_ERR);
 | 
						writel(tmp, port_mmio + PORT_SCR_ERR);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* clear port IRQ */
 | 
						/* clear port IRQ */
 | 
				
			||||||
	tmp = readl(port_mmio + PORT_IRQ_STAT);
 | 
						tmp = readl(port_mmio + PORT_IRQ_STAT);
 | 
				
			||||||
	VPRINTK("PORT_IRQ_STAT 0x%x\n", tmp);
 | 
						dev_dbg(dev, "PORT_IRQ_STAT 0x%x\n", tmp);
 | 
				
			||||||
	if (tmp)
 | 
						if (tmp)
 | 
				
			||||||
		writel(tmp, port_mmio + PORT_IRQ_STAT);
 | 
							writel(tmp, port_mmio + PORT_IRQ_STAT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1270,10 +1270,10 @@ void ahci_init_controller(struct ata_host *host)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	tmp = readl(mmio + HOST_CTL);
 | 
						tmp = readl(mmio + HOST_CTL);
 | 
				
			||||||
	VPRINTK("HOST_CTL 0x%x\n", tmp);
 | 
						dev_dbg(host->dev, "HOST_CTL 0x%x\n", tmp);
 | 
				
			||||||
	writel(tmp | HOST_IRQ_EN, mmio + HOST_CTL);
 | 
						writel(tmp | HOST_IRQ_EN, mmio + HOST_CTL);
 | 
				
			||||||
	tmp = readl(mmio + HOST_CTL);
 | 
						tmp = readl(mmio + HOST_CTL);
 | 
				
			||||||
	VPRINTK("HOST_CTL 0x%x\n", tmp);
 | 
						dev_dbg(host->dev, "HOST_CTL 0x%x\n", tmp);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
EXPORT_SYMBOL_GPL(ahci_init_controller);
 | 
					EXPORT_SYMBOL_GPL(ahci_init_controller);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1911,8 +1911,6 @@ static irqreturn_t ahci_multi_irqs_intr_hard(int irq, void *dev_instance)
 | 
				
			||||||
	void __iomem *port_mmio = ahci_port_base(ap);
 | 
						void __iomem *port_mmio = ahci_port_base(ap);
 | 
				
			||||||
	u32 status;
 | 
						u32 status;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	VPRINTK("ENTER\n");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	status = readl(port_mmio + PORT_IRQ_STAT);
 | 
						status = readl(port_mmio + PORT_IRQ_STAT);
 | 
				
			||||||
	writel(status, port_mmio + PORT_IRQ_STAT);
 | 
						writel(status, port_mmio + PORT_IRQ_STAT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1920,8 +1918,6 @@ static irqreturn_t ahci_multi_irqs_intr_hard(int irq, void *dev_instance)
 | 
				
			||||||
	ahci_handle_port_interrupt(ap, port_mmio, status);
 | 
						ahci_handle_port_interrupt(ap, port_mmio, status);
 | 
				
			||||||
	spin_unlock(ap->lock);
 | 
						spin_unlock(ap->lock);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	VPRINTK("EXIT\n");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return IRQ_HANDLED;
 | 
						return IRQ_HANDLED;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1938,9 +1934,7 @@ u32 ahci_handle_port_intr(struct ata_host *host, u32 irq_masked)
 | 
				
			||||||
		ap = host->ports[i];
 | 
							ap = host->ports[i];
 | 
				
			||||||
		if (ap) {
 | 
							if (ap) {
 | 
				
			||||||
			ahci_port_intr(ap);
 | 
								ahci_port_intr(ap);
 | 
				
			||||||
			VPRINTK("port %u\n", i);
 | 
					 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			VPRINTK("port %u (no irq)\n", i);
 | 
					 | 
				
			||||||
			if (ata_ratelimit())
 | 
								if (ata_ratelimit())
 | 
				
			||||||
				dev_warn(host->dev,
 | 
									dev_warn(host->dev,
 | 
				
			||||||
					 "interrupt on disabled port %u\n", i);
 | 
										 "interrupt on disabled port %u\n", i);
 | 
				
			||||||
| 
						 | 
					@ -1961,8 +1955,6 @@ static irqreturn_t ahci_single_level_irq_intr(int irq, void *dev_instance)
 | 
				
			||||||
	void __iomem *mmio;
 | 
						void __iomem *mmio;
 | 
				
			||||||
	u32 irq_stat, irq_masked;
 | 
						u32 irq_stat, irq_masked;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	VPRINTK("ENTER\n");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	hpriv = host->private_data;
 | 
						hpriv = host->private_data;
 | 
				
			||||||
	mmio = hpriv->mmio;
 | 
						mmio = hpriv->mmio;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1990,8 +1982,6 @@ static irqreturn_t ahci_single_level_irq_intr(int irq, void *dev_instance)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spin_unlock(&host->lock);
 | 
						spin_unlock(&host->lock);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	VPRINTK("EXIT\n");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return IRQ_RETVAL(rc);
 | 
						return IRQ_RETVAL(rc);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue