[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230711221930.2qinef626kxtthsv@intel.intel>
Date: Wed, 12 Jul 2023 00:19:30 +0200
From: Andi Shyti <andi.shyti@...nel.org>
To: Jaewon Kim <jaewon02.kim@...sung.com>
Cc: Mark Brown <broonie@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Alim Akhtar <alim.akhtar@...sung.com>,
linux-spi@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Chanho Park <chanho61.park@...sung.com>
Subject: Re: [PATCH] spi: s3c64xx: clear loopback bit after loopback test
Hi Jaewon,
On Tue, Jul 11, 2023 at 05:20:20PM +0900, Jaewon Kim wrote:
> When SPI loopback transfer is performed, S3C64XX_SPI_MODE_SELF_LOOPBACK
> bit still remained. It works as loopback even if the next transfer is
> not spi loopback mode.
> If not SPI_LOOP, needs to clear S3C64XX_SPI_MODE_SELF_LOOPBACK bit.
>
> Signed-off-by: Jaewon Kim <jaewon02.kim@...sung.com>
with the change suggested by Chanho:
Reviewed-by: Andi Shyti <andi.shyti@...nel.org>
Mark, can you add the
Fixes: ffb7bcd3b27e ("spi: s3c64xx: support loopback mode")
tag or should Jaewon resend?
Thanks,
Andi
> ---
> 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 fd55697144cc..b6c2659a66ca 100644
> --- a/drivers/spi/spi-s3c64xx.c
> +++ b/drivers/spi/spi-s3c64xx.c
> @@ -684,6 +684,8 @@ static int s3c64xx_spi_config(struct s3c64xx_spi_driver_data *sdd)
>
> if ((sdd->cur_mode & SPI_LOOP) && sdd->port_conf->has_loopback)
> val |= S3C64XX_SPI_MODE_SELF_LOOPBACK;
> + else
> + val &= ~S3C64XX_SPI_MODE_SELF_LOOPBACK;
>
> writel(val, regs + S3C64XX_SPI_MODE_CFG);
>
> --
> 2.17.1
>
Powered by blists - more mailing lists