Skip to contentSkip to conversation

SPI omap2_mcspi.c: Limit debug messages from setup_transfer

PATCH In review Scott Ellis 1 participant 2 messages Mar 12, 2010 – May 24, 2010 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 6/6 SPI omap2_mcspi.c: Limit debug messages from setup_transfer

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.

 drivers/spi/omap2_mcspi.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/spi/omap2_mcspi.c +2 -1
index adc6fd3..b2dbbc0 100644
@@ -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;
 }
 
#1 lore raw

Please ignore this patch.

Developer preference whether you want this much detail.