RE: [PATCH] spi/s3c64xx: Complain if we fail to set a transfer speed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mark Brown wrote:
> 
> Signed-off-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

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

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

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux