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

tty: nozomi, remove useless debug prints

These are either commented out or can be printed by tracing mechanisms.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210302062214.29627-24-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby and committed by
Greg Kroah-Hartman
0da4c58d 83e826bf

-11
-11
drivers/tty/nozomi.c
··· 777 777 int i, ret; 778 778 779 779 size = __le32_to_cpu(readl(addr)); 780 - /* DBG1( "%d bytes port: %d", size, index); */ 781 780 782 781 if (tty && tty_throttled(tty)) { 783 782 DBG1("No room in tty, don't read data, don't ack interrupt, " ··· 1307 1308 int ndev_idx; 1308 1309 int i; 1309 1310 1310 - dev_dbg(&pdev->dev, "Init, new card found\n"); 1311 - 1312 1311 for (ndev_idx = 0; ndev_idx < ARRAY_SIZE(ndevs); ndev_idx++) 1313 1312 if (!ndevs[ndev_idx]) 1314 1313 break; ··· 1439 1442 static void tty_exit(struct nozomi *dc) 1440 1443 { 1441 1444 unsigned int i; 1442 - 1443 - DBG1(" "); 1444 1445 1445 1446 for (i = 0; i < MAX_PORT; ++i) 1446 1447 tty_port_tty_hangup(&dc->port[i].port, false); ··· 1604 1609 struct port *port = tty->driver_data; 1605 1610 unsigned long flags; 1606 1611 1607 - /* DBG1( "WRITEx: %d, index = %d", count, index); */ 1608 - 1609 1612 if (!dc || !port) 1610 1613 return -ENODEV; 1611 1614 ··· 1729 1736 struct port *port = tty->driver_data; 1730 1737 int rval = -ENOIOCTLCMD; 1731 1738 1732 - DBG1("******** IOCTL, cmd: %d", cmd); 1733 - 1734 1739 switch (cmd) { 1735 1740 case TIOCMIWAIT: { 1736 1741 struct async_icount cprev = port->tty_icount; ··· 1754 1763 struct nozomi *dc = get_dc_by_tty(tty); 1755 1764 unsigned long flags; 1756 1765 1757 - DBG1("UNTHROTTLE"); 1758 1766 spin_lock_irqsave(&dc->spin_mutex, flags); 1759 1767 enable_transmit_dl(tty->index % MAX_PORT, dc); 1760 1768 set_rts(tty, 1); ··· 1770 1780 struct nozomi *dc = get_dc_by_tty(tty); 1771 1781 unsigned long flags; 1772 1782 1773 - DBG1("THROTTLE"); 1774 1783 spin_lock_irqsave(&dc->spin_mutex, flags); 1775 1784 set_rts(tty, 0); 1776 1785 spin_unlock_irqrestore(&dc->spin_mutex, flags);