lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100810063341.GA28597@angua.secretlab.ca>
Date:	Tue, 10 Aug 2010 00:33:41 -0600
From:	Grant Likely <grant.likely@...retlab.ca>
To:	Felipe Balbi <felipe.balbi@...ia.com>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Linux OMAP Mailing List <linux-omap@...r.kernel.org>,
	Tony Lindgren <tony@...mide.com>,
	"Tereshonkov Roman (Nokia-D/Helsinki)" <roman.tereshonkov@...ia.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	David Brownell <david-b@...bell.net>,
	spi-devel-general@...ts.sourceforge.net
Subject: Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()

On Mon, Aug 09, 2010 at 01:36:18PM +0300, Felipe Balbi wrote:
> On Thu, Jun 03, 2010 at 01:09:01PM +0200, Balbi Felipe (Nokia-D/Helsinki) wrote:
> >From: Felipe Balbi <felipe.balbi@...ia.com>
> >
> >dev_vdbg() is only compiled when VERBOSE is defined, so
> >there's no need to wrap dev_dbg() on #ifdef VERBOSE .. #endif
> >as we can use dev_vdbg() directly.
> >
> >Signed-off-by: Felipe Balbi <felipe.balbi@...ia.com>
> >---
> 
> ping, any comments to this one ? It's been pending for quite a long
> time.

Now picked up into my test-spi branch.  I'll add it to linux-next after the merge window closes.

g.

> 
> >drivers/spi/omap2_mcspi.c |   36 +++++++++---------------------------
> >1 files changed, 9 insertions(+), 27 deletions(-)
> >
> >diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c
> >index b3a94ca..d703927 100644
> >--- a/drivers/spi/omap2_mcspi.c
> >+++ b/drivers/spi/omap2_mcspi.c
> >@@ -489,10 +489,8 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
> >					dev_err(&spi->dev, "TXS timed out\n");
> >					goto out;
> >				}
> >-#ifdef VERBOSE
> >-				dev_dbg(&spi->dev, "write-%d %02x\n",
> >+				dev_vdbg(&spi->dev, "write-%d %02x\n",
> >						word_len, *tx);
> >-#endif
> >				__raw_writel(*tx++, tx_reg);
> >			}
> >			if (rx != NULL) {
> >@@ -506,10 +504,8 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
> >				    (l & OMAP2_MCSPI_CHCONF_TURBO)) {
> >					omap2_mcspi_set_enable(spi, 0);
> >					*rx++ = __raw_readl(rx_reg);
> >-#ifdef VERBOSE
> >-					dev_dbg(&spi->dev, "read-%d %02x\n",
> >+					dev_vdbg(&spi->dev, "read-%d %02x\n",
> >						    word_len, *(rx - 1));
> >-#endif
> >					if (mcspi_wait_for_reg_bit(chstat_reg,
> >						OMAP2_MCSPI_CHSTAT_RXS) < 0) {
> >						dev_err(&spi->dev,
> >@@ -522,10 +518,8 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
> >				}
> >
> >				*rx++ = __raw_readl(rx_reg);
> >-#ifdef VERBOSE
> >-				dev_dbg(&spi->dev, "read-%d %02x\n",
> >+				dev_vdbg(&spi->dev, "read-%d %02x\n",
> >						word_len, *(rx - 1));
> >-#endif
> >			}
> >		} while (c);
> >	} else if (word_len <= 16) {
> >@@ -542,10 +536,8 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
> >					dev_err(&spi->dev, "TXS timed out\n");
> >					goto out;
> >				}
> >-#ifdef VERBOSE
> >-				dev_dbg(&spi->dev, "write-%d %04x\n",
> >+				dev_vdbg(&spi->dev, "write-%d %04x\n",
> >						word_len, *tx);
> >-#endif
> >				__raw_writel(*tx++, tx_reg);
> >			}
> >			if (rx != NULL) {
> >@@ -559,10 +551,8 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
> >				    (l & OMAP2_MCSPI_CHCONF_TURBO)) {
> >					omap2_mcspi_set_enable(spi, 0);
> >					*rx++ = __raw_readl(rx_reg);
> >-#ifdef VERBOSE
> >-					dev_dbg(&spi->dev, "read-%d %04x\n",
> >+					dev_vdbg(&spi->dev, "read-%d %04x\n",
> >						    word_len, *(rx - 1));
> >-#endif
> >					if (mcspi_wait_for_reg_bit(chstat_reg,
> >						OMAP2_MCSPI_CHSTAT_RXS) < 0) {
> >						dev_err(&spi->dev,
> >@@ -575,10 +565,8 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
> >				}
> >
> >				*rx++ = __raw_readl(rx_reg);
> >-#ifdef VERBOSE
> >-				dev_dbg(&spi->dev, "read-%d %04x\n",
> >+				dev_vdbg(&spi->dev, "read-%d %04x\n",
> >						word_len, *(rx - 1));
> >-#endif
> >			}
> >		} while (c);
> >	} else if (word_len <= 32) {
> >@@ -595,10 +583,8 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
> >					dev_err(&spi->dev, "TXS timed out\n");
> >					goto out;
> >				}
> >-#ifdef VERBOSE
> >-				dev_dbg(&spi->dev, "write-%d %08x\n",
> >+				dev_vdbg(&spi->dev, "write-%d %08x\n",
> >						word_len, *tx);
> >-#endif
> >				__raw_writel(*tx++, tx_reg);
> >			}
> >			if (rx != NULL) {
> >@@ -612,10 +598,8 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
> >				    (l & OMAP2_MCSPI_CHCONF_TURBO)) {
> >					omap2_mcspi_set_enable(spi, 0);
> >					*rx++ = __raw_readl(rx_reg);
> >-#ifdef VERBOSE
> >-					dev_dbg(&spi->dev, "read-%d %08x\n",
> >+					dev_vdbg(&spi->dev, "read-%d %08x\n",
> >						    word_len, *(rx - 1));
> >-#endif
> >					if (mcspi_wait_for_reg_bit(chstat_reg,
> >						OMAP2_MCSPI_CHSTAT_RXS) < 0) {
> >						dev_err(&spi->dev,
> >@@ -628,10 +612,8 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
> >				}
> >
> >				*rx++ = __raw_readl(rx_reg);
> >-#ifdef VERBOSE
> >-				dev_dbg(&spi->dev, "read-%d %08x\n",
> >+				dev_vdbg(&spi->dev, "read-%d %08x\n",
> >						word_len, *(rx - 1));
> >-#endif
> >			}
> >		} while (c);
> >	}
> >-- 
> >1.7.1
> 
> -- 
> balbi
> 
> DefectiveByDesign.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ