All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: spi_imx: add device information to debug.
@ 2009-12-18 15:52 Alberto Panizzo
  2009-12-18 19:59 ` Uwe Kleine-König
  0 siblings, 1 reply; 4+ messages in thread
From: Alberto Panizzo @ 2009-12-18 15:52 UTC (permalink / raw)
  To: linux-arm-kernel

Not an heavy fix, but good when debugging multiple spi channels.

Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
---
 drivers/spi/spi_imx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c
index 89c22ef..18bbfa3 100644
--- a/drivers/spi/spi_imx.c
+++ b/drivers/spi/spi_imx.c
@@ -466,7 +466,7 @@ static int spi_imx_setup(struct spi_device *spi)
 	struct spi_imx_data *spi_imx = spi_master_get_devdata(spi->master);
 	int gpio = spi_imx->chipselect[spi->chip_select];
 
-	pr_debug("%s: mode %d, %u bpw, %d hz\n", __func__,
+	dev_dbg(&spi->dev, "%s: mode %d, %u bpw, %d hz\n", __func__,
 		 spi->mode, spi->bits_per_word, spi->max_speed_hz);
 
 	if (gpio >= 0)
-- 
1.6.3.3

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

* [PATCH] spi: spi_imx: add device information to debug.
  2009-12-18 15:52 Alberto Panizzo
@ 2009-12-18 19:59 ` Uwe Kleine-König
  0 siblings, 0 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2009-12-18 19:59 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Dec 18, 2009 at 04:52:04PM +0100, Alberto Panizzo wrote:
> Not an heavy fix, but good when debugging multiple spi channels.
> 
> Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Acked-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>

-- 
Pengutronix e.K.                              | Uwe Kleine-K?nig            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

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

* [PATCH] spi: spi_imx: add device information to debug.
@ 2010-01-20  9:47 ` Alberto Panizzo
  0 siblings, 0 replies; 4+ messages in thread
From: Alberto Panizzo @ 2010-01-20  9:47 UTC (permalink / raw)
  To: spi-devel-list; +Cc: linux-kernel, Andrew Morton, Uwe Kleine-König

Hi all!
I already sent this patch to the linux-arm-kernel mailing list,
but not cc you.
In reference to:
http://thread.gmane.org/gmane.linux.ports.arm.kernel/71119

Patch below:
this patch apply to  linus .33-rc4 
---------------------------------------------------------------
Not an heavy fix, but good when debugging multiple spi channels.

Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/spi/spi_imx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c
index 89c22ef..18bbfa3 100644
--- a/drivers/spi/spi_imx.c
+++ b/drivers/spi/spi_imx.c
@@ -466,7 +466,7 @@ static int spi_imx_setup(struct spi_device *spi)
        struct spi_imx_data *spi_imx = spi_master_get_devdata(spi->master);
        int gpio = spi_imx->chipselect[spi->chip_select];
 
-       pr_debug("%s: mode %d, %u bpw, %d hz\n", __func__,
+       dev_dbg(&spi->dev, "%s: mode %d, %u bpw, %d hz\n", __func__,
                 spi->mode, spi->bits_per_word, spi->max_speed_hz);
 
        if (gpio >= 0)
-- 
1.6.3.3



------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

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

* [PATCH] spi: spi_imx: add device information to debug.
@ 2010-01-20  9:47 ` Alberto Panizzo
  0 siblings, 0 replies; 4+ messages in thread
From: Alberto Panizzo @ 2010-01-20  9:47 UTC (permalink / raw)
  To: spi-devel-list
  Cc: Grant Likely, Andrew Morton, Uwe Kleine-König,
	Sascha linux-arm, linux-kernel

Hi all!
I already sent this patch to the linux-arm-kernel mailing list,
but not cc you.
In reference to:
http://thread.gmane.org/gmane.linux.ports.arm.kernel/71119

Patch below:
this patch apply to  linus .33-rc4 
---------------------------------------------------------------
Not an heavy fix, but good when debugging multiple spi channels.

Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/spi/spi_imx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c
index 89c22ef..18bbfa3 100644
--- a/drivers/spi/spi_imx.c
+++ b/drivers/spi/spi_imx.c
@@ -466,7 +466,7 @@ static int spi_imx_setup(struct spi_device *spi)
        struct spi_imx_data *spi_imx = spi_master_get_devdata(spi->master);
        int gpio = spi_imx->chipselect[spi->chip_select];
 
-       pr_debug("%s: mode %d, %u bpw, %d hz\n", __func__,
+       dev_dbg(&spi->dev, "%s: mode %d, %u bpw, %d hz\n", __func__,
                 spi->mode, spi->bits_per_word, spi->max_speed_hz);
 
        if (gpio >= 0)
-- 
1.6.3.3



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

end of thread, other threads:[~2010-01-20  9:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-20  9:47 [PATCH] spi: spi_imx: add device information to debug Alberto Panizzo
2010-01-20  9:47 ` Alberto Panizzo
  -- strict thread matches above, loose matches on Subject: below --
2009-12-18 15:52 Alberto Panizzo
2009-12-18 19:59 ` Uwe Kleine-König

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.