login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
10
Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Grant Likely
Subject:
Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()
Date: Monday, August 9, 2010 - 11:33 pm
On Mon, Aug 09, 2010 at 01:36:18PM +0300, Felipe Balbi wrote:
quoted text
> 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.
Now picked up into my test-spi branch. I'll add it to linux-next after the merge window closes. g.
quoted text
> > >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
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] spi: omap2_mcspi: make use of dev_vdbg()
, felipe.balbi
, (Thu Jun 3, 4:09 am)
Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()
, Felipe Balbi
, (Mon Aug 9, 3:36 am)
Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()
, Grant Likely
, (Mon Aug 9, 6:22 am)
Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()
, Felipe Balbi
, (Mon Aug 9, 10:21 pm)
Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()
, Grant Likely
, (Mon Aug 9, 10:27 pm)
Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()
, Felipe Balbi
, (Mon Aug 9, 10:45 pm)
Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()
, Grant Likely
, (Mon Aug 9, 11:33 pm)
Re: [PATCH] spi: omap2_mcspi: make use of dev_vdbg()
, Felipe Balbi
, (Mon Aug 9, 11:39 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-activists
:
Honoo Suzuki n-2423
Q:Disk doubler for linux?
H.J. Lu
Re: Problems w/ SLS and Ultrastor
Daniel Brahneborg
Re: Linux Screen Capture
Tushar D Chandra
ARCNET info wanted ...
Nicolai Langfeldt
***** README: How to find answers to your linux questions. *****
openfabrics-general
:
Or Gerlitz
[ofa-general] [PATCH] ib/ipoib: handle Gratuitous ARP & bonding failover race ...
Chris Worley
Re: [Scst-devel] [ofa-general] WinOF_2_0_5/SRP initiator: slow reads and eventual...
Chuck Hartley
[ofa-general] OFED 1.2.5.4 build fails for kernel 2.6.23
Vu Pham
Re: [Fwd: Re: [ofa-general] [NFS/RDMA] Can't mount NFS/RDMA partition]]
Celine Bourde
Re: [Fwd: Re: [ofa-general] [NFS/RDMA] Can't mount NFS/RDMA partition]]
freebsd-fs
:
Peter Schuller
kern.geom.debugflags=16 does NOT allow me to write to device
Danny Carroll
Re: Areca vs. ZFS performance testing.
Sam Fourman Jr.
Re: Locked up processes after upgrade to ZFS v15
Andrew Hill
ZFS lockup in "zfs" state
Jeremy Chadwick
Re: Areca vs. ZFS performance testing.
linux-usb-devel
:
Mike Nuss
Re: Kernel panic with PCI EHCI on AMCC Sequoia
Oliver Neukum
Re: [linux-pm] Re: The evilness of struct usb_device->auto_pm
Greg Kroah-Hartman
[PATCH 038/149] USB: use function attribute __maybe_unused
Joseph Kim
how to mount gadgetfs?? please help me..
Greg KH
Re: [PATCH] EHCI: fix bug in refcounting code
open-graphics
:
Dieter
[Open-graphics] Re: X-video-server
nico
Re: [Open-graphics] Looking towards the future: Graphics technology
Peter Stuge
Re: [Open-graphics] Re: Text mode notes
Timothy Normand Miller
[Open-graphics] Synthesizing oga1hq
Timothy Normand Miller
[Open-graphics] O'Reilly OSCON 2007
Colocation donated by:
Syndicate