linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi/s3c64xx: Complain if we fail to set a transfer speed
@ 2013-01-04 21:33 Mark Brown
  2013-01-10  1:17 ` Kukjin Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2013-01-04 21:33 UTC (permalink / raw)
  To: Kukjin Kim, Grant Likely; +Cc: linux-samsung-soc, spi-devel-general, Mark Brown

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 drivers/spi/spi-s3c64xx.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index ad93231..6495352 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -957,6 +957,8 @@ static int s3c64xx_spi_setup(struct spi_device *spi)
 		if (spi->max_speed_hz >= speed) {
 			spi->max_speed_hz = speed;
 		} else {
+			dev_err(&spi->dev, "Can't set %dHz transfer speed\n",
+				spi->max_speed_hz);
 			err = -EINVAL;
 			goto setup_exit;
 		}
-- 
1.7.10.4

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

* RE: [PATCH] spi/s3c64xx: Complain if we fail to set a transfer speed
  2013-01-04 21:33 [PATCH] spi/s3c64xx: Complain if we fail to set a transfer speed Mark Brown
@ 2013-01-10  1:17 ` Kukjin Kim
  0 siblings, 0 replies; 2+ messages in thread
From: Kukjin Kim @ 2013-01-10  1:17 UTC (permalink / raw)
  To: 'Mark Brown', 'Grant Likely'
  Cc: linux-samsung-soc, spi-devel-general

Mark Brown wrote:
> 
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Acked-by: Kukjin Kim <kgene.kim@samsung.com>

> ---
>  drivers/spi/spi-s3c64xx.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index
> ad93231..6495352 100644
> --- a/drivers/spi/spi-s3c64xx.c
> +++ b/drivers/spi/spi-s3c64xx.c
> @@ -957,6 +957,8 @@ static int s3c64xx_spi_setup(struct spi_device *spi)
>  		if (spi->max_speed_hz >= speed) {
>  			spi->max_speed_hz = speed;
>  		} else {
> +			dev_err(&spi->dev, "Can't set %dHz transfer
> speed\n",
> +				spi->max_speed_hz);
>  			err = -EINVAL;
>  			goto setup_exit;
>  		}
> --
> 1.7.10.4

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

end of thread, other threads:[~2013-01-10  1:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-04 21:33 [PATCH] spi/s3c64xx: Complain if we fail to set a transfer speed Mark Brown
2013-01-10  1:17 ` Kukjin Kim

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).