All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <felipe.balbi@nokia.com>
To: "Balbi Felipe (Nokia-D/Helsinki)" <felipe.balbi@nokia.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Linux OMAP Mailing List <linux-omap@vger.kernel.org>,
	Tony Lindgren <tony@atomide.com>,
	"Tereshonkov Roman (Nokia-D/Helsinki)"
	<roman.tereshonkov@nokia.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	David Brownell <david-b@pacbell.net>,
	Grant Likely <grant.likely@secretlab.ca>
Subject: Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()
Date: Mon, 9 Aug 2010 13:36:18 +0300	[thread overview]
Message-ID: <20100809103618.GE11340@nokia.com> (raw)
In-Reply-To: <1275563341-31078-1-git-send-email-felipe.balbi@nokia.com>

On Thu, Jun 03, 2010 at 01:09:01PM +0200, Balbi Felipe (Nokia-D/Helsinki) wrote:
>From: Felipe Balbi <felipe.balbi@nokia.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@nokia.com>
>---

ping, any comments to this one ? It's been pending for quite a long 
time.

> 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

  reply	other threads:[~2010-08-09 10:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-03 11:09 [PATCH] spi: omap2_mcspi: make use of dev_vdbg() felipe.balbi
2010-08-09 10:36 ` Felipe Balbi [this message]
2010-08-09 13:22   ` Grant Likely
2010-08-09 13:22     ` Grant Likely
2010-08-10  5:21     ` Felipe Balbi
2010-08-10  5:27       ` Grant Likely
2010-08-10  5:45         ` Felipe Balbi
2010-08-10  6:54           ` David Brownell
2010-08-10  6:54             ` David Brownell
2010-08-10  6:33   ` Grant Likely
     [not found]     ` <20100810063341.GA28597-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2010-08-10  6:39       ` Felipe Balbi
2010-08-10  6:39         ` Felipe Balbi
2010-08-10  6:39         ` Felipe Balbi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100809103618.GE11340@nokia.com \
    --to=felipe.balbi@nokia.com \
    --cc=akpm@linux-foundation.org \
    --cc=david-b@pacbell.net \
    --cc=grant.likely@secretlab.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=roman.tereshonkov@nokia.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.