Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp73552rdb; Thu, 1 Feb 2024 02:26:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4yRjJyz+80dvsOFGL9TB0Sm3GxRJ4d/V0+y2SBWLv2c9RieNRZ7otIYCojpJ8YdHj2Ntc X-Received: by 2002:a05:6a21:398d:b0:19e:378a:124c with SMTP id ad13-20020a056a21398d00b0019e378a124cmr4498566pzc.12.1706783185910; Thu, 01 Feb 2024 02:26:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706783185; cv=pass; d=google.com; s=arc-20160816; b=SckMHNtYeRDR36RhzcsqsjgocM/bTyk+VeTGyo6wuLdzX3Ll+SlxnS5vmJVcSXoZqB UUXhJBiEG3yY4tpwtLPK9GnBTkBqymcInjQi8rRZEOpxGIzokWziylziy8PTSv1QT7/O 0yC4s1CI0WrJKL9vw64P0O2LwPTmg1Re5GivOvgW/qT5JfvVjvgqe+sbFzSxpEyz7hmf +Px0SnQW8P2KjY3eXp2sXorqgs87xbGcO1RZaz7EfirGOKdymezBVZdnbbz4QLvN+OAz e0wv2TX+P/pJqS+LZhcE7aoYi56TWZpvRVsfNIPiOxGsVDn78T7l3G2kvzYLQ5SQGkC6 YZuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=gnHvq0dYSWuCsKmOWXw8j8NpIZuap+GsytnxVtsr1Ss=; fh=tPA69Z53bERpDkwZ/wvUQZx3XauskpMMjk7RytlR7uE=; b=WFNjl9h0qA0dwHy/aluMV+8nvRcvr8lFC6SXG9ZU0xmRQH/RI2BAQqgECeVf4+X24d ILE2KNXCAlks58s4rFh5BWkSUa337uf0oK2IY5Hg0cXxe8jnSbct6jP0oNlq2Q4D7dmN gpZe7jzjwoerQvq3NzLJ6YRKZlla/aCS7LncVOdkhKR+G0/EkpHeceuD7JVLzY1DKbOZ 1QtLZfLhBF5RXhiDaQDgKN+JaVRQ7xfRxaEzY8BHUpTftAg5HTC8FOtKMWPwdFW7/SSH XgAcEGyG2/dhTToRba/wCVUaJXdS0SoKRdmtvvO6ozqusk5tQ1Bsj5m42PmgWNm3v7UD NVMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-47937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47937-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUxFWLZ/ieIMhGkG8bQ8qAutNZxRVF70VmSpbQlV8m3h+JVZBfYBhZZ20DNZBSUxzZQVsWyf+qjhr9u4CGCCLFyYlre7mnAs0/ktXZMEA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d11-20020a170902cecb00b001d721475ff1si11949357plg.106.2024.02.01.02.26.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 02:26:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-47937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47937-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 71D7BB295AA for ; Thu, 1 Feb 2024 10:06:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB3DF15B978; Thu, 1 Feb 2024 10:06:15 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9E5015B11F for ; Thu, 1 Feb 2024 10:06:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706781975; cv=none; b=a5dT28bn2WdhDyp5qnQP7pG6DDjI4zEKObKzJ4G1p9fH8Db73EU4Z7q6XoFpbqNT0wTeIMyv02EFYY66ia5yc+ZEGGfCliERFA+vnO2iy7iO+JMD4kes53Q0DkX2E3h+fEX2Cu9vyOD9kbPqFqADAS/B+pPpBtY9Xw1goMLquzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706781975; c=relaxed/simple; bh=uzUShjiFX/7f0dsrKJDkxwU7eQEa2Tnovp7BWZ43Vwk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KV220HDnzt9me498zS3siFh9hzr0KB3veRMg70Odn54H5IsZU+lEL1PcNnlfQ5D6YLpdMNs7BGp2Pm1K6JY63Q9wG9gQ9gGgr3N2ESg+QKDQyu5jXR7jXhPWHzeVbolRnOpJJ+cPBsXCZOXvAnea+a1w8z06whnhJ7v6+q7bav0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rVTxH-0008GF-CA; Thu, 01 Feb 2024 11:05:59 +0100 Received: from [2a0a:edc0:0:b01:1d::7b] (helo=bjornoya.blackshift.org) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rVTxG-003pfd-HH; Thu, 01 Feb 2024 11:05:58 +0100 Received: from pengutronix.de (unknown [172.20.34.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 1FDF6282BF9; Thu, 1 Feb 2024 10:05:58 +0000 (UTC) Date: Thu, 1 Feb 2024 11:05:57 +0100 From: Marc Kleine-Budde To: carlos.song@nxp.com Cc: broonie@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, benjamin@bigler.one, stefanmoring@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org Subject: Re: [PATCH v3] spi: imx: fix the burst length at DMA mode and CPU mode Message-ID: <20240201-resupply-doorframe-feb41940155f-mkl@pengutronix.de> References: <20240201100115.503296-1-carlos.song@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240201100115.503296-1-carlos.song@nxp.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On 01.02.2024 18:01:15, carlos.song@nxp.com wrote: > From: Carlos Song >=20 > For DMA mode, the bus width of the DMA is equal to the size of data > word, so burst length should be configured as bits per word. >=20 > For CPU mode, because of the spi transfer len is in byte, so burst > length should be configured as bits per byte * spi_imx->count. >=20 > Signed-off-by: Carlos Song > Reviewed-by: Clark Wang > Fixes: e9b220aeacf1 ("spi: spi-imx: correctly configure burst length when= using dma") > Fixes: 5f66db08cbd3 ("spi: imx: Take in account bits per word instead of = assuming 8-bits") > --- > Changes for V3: > - include =20 > --- > drivers/spi/spi-imx.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) >=20 > diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c > index 546cdce525fc..2a1ae7b00760 100644 > --- a/drivers/spi/spi-imx.c > +++ b/drivers/spi/spi-imx.c > @@ -21,7 +21,7 @@ > #include > #include > #include > - > +#include nitpick: Please keep the includes sorted alphabetically. > #include Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |