Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()

Previous thread: staging RT2870 removed /etc/Wireless/... configuration files by Robert Goldner on Thursday, June 3, 2010 - 3:50 am. (1 message)

Next thread: [GIT PULL] i2c updates for 2.6.35, round 2 by Jean Delvare on Thursday, June 3, 2010 - 4:21 am. (1 message)
From: felipe.balbi
Date: Thursday, June 3, 2010 - 4:09 am

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>
---
 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
 ...
From: Felipe Balbi
Date: Monday, August 9, 2010 - 3:36 am

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

-- 
balbi

DefectiveByDesign.org
--

From: Grant Likely
Date: Monday, August 9, 2010 - 6:22 am

It didn't get sent to the spi-devel-general list, so it didn't get
picked up by patchwork and wasn't there for me to pick up when I was
collecting stuff for .36.




-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
From: Felipe Balbi
Date: Monday, August 9, 2010 - 10:21 pm

Hi,


that's subscribers only ? I couldn't bother subscribing to a list just 
to send a small cleanup patch. Even though it didn't go to the list, 
both maintainers are in Cc list and nobody even commented.

Anyways, could you, somehow, get an account on majordomo ?

-- 
balbi

DefectiveByDesign.org
--

From: Grant Likely
Date: Monday, August 9, 2010 - 10:27 pm

I know, the sourceforge list is a bit of a pain.  I don't even know
who the admin of that list is.  It was set up before I started the SPI
maintainership.  I've been thinking about creating a new spi list on
vger.kernel.org.

g.
--

From: Felipe Balbi
Date: Monday, August 9, 2010 - 10:45 pm

Hi,


please do, that would make things a whole lot easier for plenty of 
developers. Specially the ones who are just coming up with simple 
patches once in a while :-)

-- 
balbi

DefectiveByDesign.org
--

From: Grant Likely
Date: Monday, August 9, 2010 - 11:33 pm

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

--

From: Felipe Balbi
Date: Monday, August 9, 2010 - 11:39 pm

Hi,


ok, thanks Grant

-- 
balbi

DefectiveByDesign.org
--

Previous thread: staging RT2870 removed /etc/Wireless/... configuration files by Robert Goldner on Thursday, June 3, 2010 - 3:50 am. (1 message)

Next thread: [GIT PULL] i2c updates for 2.6.35, round 2 by Jean Delvare on Thursday, June 3, 2010 - 4:21 am. (1 message)