linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 6/6] SPI omap2_mcspi.c: Limit debug messages from setup_transfer
@ 2010-03-12 15:22 Scott Ellis
  2010-05-24 15:25 ` Scott Ellis
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Ellis @ 2010-03-12 15:22 UTC (permalink / raw)
  To: spi-devel-general
  Cc: David Brownell, Grant Likely, Tony Lindgren, Andrew Morton,
	Roman Tereshonkov, linux-omap, Aaro Koskinen, Kevin Hilman

Limit the debug messages put out in omap2_mcspi_setup_transfer().
If you are overriding the speed on transfers, the volume is 
excessive. 

Wrap it with VERBOSE.

Signed-off-by: Scott Ellis <scott@jumpnowtek.com>

 drivers/spi/omap2_mcspi.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c
index adc6fd3..b2dbbc0 100644
--- a/drivers/spi/omap2_mcspi.c
+++ b/drivers/spi/omap2_mcspi.c
@@ -637,11 +637,12 @@ static int omap2_mcspi_setup_transfer(struct spi_device *spi,
 
 	mcspi_write_chconf0(spi, l);
 
+#ifdef VERBOSE
 	dev_dbg(&spi->dev, "setup: speed %d, sample %s edge, clk %s\n",
 			OMAP2_MCSPI_MAX_FREQ / (1 << div),
 			(spi->mode & SPI_CPHA) ? "trailing" : "leading",
 			(spi->mode & SPI_CPOL) ? "inverted" : "normal");
-
+#endif
 	return 0;
 }
 






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 6/6] SPI omap2_mcspi.c: Limit debug messages from setup_transfer
  2010-03-12 15:22 [PATCH 6/6] SPI omap2_mcspi.c: Limit debug messages from setup_transfer Scott Ellis
@ 2010-05-24 15:25 ` Scott Ellis
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Ellis @ 2010-05-24 15:25 UTC (permalink / raw)
  To: spi-devel-general
  Cc: David Brownell, Grant Likely, Tony Lindgren, Andrew Morton,
	Roman Tereshonkov, linux-omap, Aaro Koskinen, Kevin Hilman

Please ignore this patch.

Developer preference whether you want this much detail.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-24 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-12 15:22 [PATCH 6/6] SPI omap2_mcspi.c: Limit debug messages from setup_transfer Scott Ellis
2010-05-24 15:25 ` Scott Ellis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).