Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5780557rdb; Sun, 17 Sep 2023 12:00:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+BVUBWj2EZsETWuQntLY+FFqX1zHIa6L1ZGR7JTdbK6q3ThdV7kt1gzSRKWWy0NX62+2F X-Received: by 2002:a05:6358:41a1:b0:134:d467:b751 with SMTP id w33-20020a05635841a100b00134d467b751mr8471590rwc.21.1694977248684; Sun, 17 Sep 2023 12:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694977248; cv=none; d=google.com; s=arc-20160816; b=Xt53DoH9hjyljOKavpylRirBorCqRCW8iKVX/LPr6NYfbmTAOCVWtbpi1lVbRvLtTT sSeCrYqMbcOPAMpaSysHHRFSnEE/fRnLQ4+PgX/JJXmwjM5dyYporNwCq9LKymCz16L7 M4JAcccoeXL4xwU7qhb5uT5+wYcjD+3WcPnK2mOpD5lZ0N+d3brtLsS5akRkud+q+Ce0 lTJaxsxSAHkYYBP3HjoFz/cvW6yK9+Ce68xVysW4io5yBO+9z39nYtyuD1uxWnNCV5ik FeexgqgmrfAHd4wFFVeHWx+LT+L4/OMUyNmuvAz4rvwpcESA+dHJsE+7OfNLMz979Nnp 8Jyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cXd9EWuSXihpi7Nj4IU7md/3HfcYr4FbsLno3N4FujA=; fh=STtm8x1HZzzAqT+mALtExI9jDC2dfKCZlRTX0TRfdV8=; b=oYphE4plNqtdL7uCSpCf867FkfKJZi3Goy4OYm6OvlcYF187K2wSlNlqkTJMW6sA0l aaALGTtg94QdfOMqIuirplrna0yT4olupmRhuSCOrULbIvXm4p/MrJfw9Yu2/BNvHBQ7 rVbAoFeklXCLuXyWS8u3/0vC0gqznP8l9UcWsOgRHlOVpeQlW6vE1WTgEUx1ZzZqh9Ar MW0B0c/9vkjgl8hs9j45TZozgxlZJ6tDAIUhoMUSJkZP8ALlCa7nF/mDJCLnYSIyNJxC uJrXxOFyQzKN6wi7VWx8/9SecxVCgDMS5/Kn9jdA9xELChBnFZqcVsdw6e8+4vvOoEj1 UJTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kUjXvIIb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u9-20020a056a00158900b0068fb895055esi6772955pfk.351.2023.09.17.12.00.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 12:00:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kUjXvIIb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 475E3809D3DB; Sun, 17 Sep 2023 12:00:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233512AbjIQSrx (ORCPT + 99 others); Sun, 17 Sep 2023 14:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbjIQSra (ORCPT ); Sun, 17 Sep 2023 14:47:30 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D2F2100; Sun, 17 Sep 2023 11:47:24 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E40F3C433C8; Sun, 17 Sep 2023 18:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694976444; bh=y9DaTHIMHXcC2SHHQISQSwuLwOseV81RIrU+F05nl+U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kUjXvIIbsjupe2iaaVMtaYPTH8GM5c+JDPmaUOEsYShPJNBXukjGoTpnNSinngw0Y eixLv/kfs4WyDTuXJDAffnQzuMTAvhlCN1hbr3LS9E3M4PoFYV6ye/T35ceFgL3NaO 67ElypXpXyGprM5+Zsg9nosbiOAr0f26V7vdYdzHT4RxoTStAzPjQwRPYsiQa49syt G0AVQaz8fBEoLfH8sajUxcGcfKv2smE6LRIyM3AVkCLq+yQPaAkq2DBFSasQ2dw8yV A6D6vCAmbCaVUeXiXGnKY0lRaE9uBksGdzxNlye6iqTvr5m6LEDJM0/9ZL4vkevcop hmfqQT+yt7dMw== Received: by mercury (Postfix, from userid 1000) id AC68910604B5; Sun, 17 Sep 2023 20:47:20 +0200 (CEST) Date: Sun, 17 Sep 2023 20:47:20 +0200 From: Sebastian Reichel To: Stefan Moring Cc: broonie@kernel.org, shawnguo@kernel.org, s.hauer@pengutronxi.de, festevam@gmail.com, linux-imx@nxmp.com, linux-psi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] spi: imx: take in account bits per word instead of assuming 8-bits Message-ID: <20230917184720.wzigwjk4v5wakmz6@mercury.elektranox.org> References: <20230917164037.29284-1-stefanmoring@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vvnncv4uod55cjfd" Content-Disposition: inline In-Reply-To: <20230917164037.29284-1-stefanmoring@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 17 Sep 2023 12:00:12 -0700 (PDT) --vvnncv4uod55cjfd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Sun, Sep 17, 2023 at 06:40:37PM +0200, Stefan Moring wrote: > The IMX spi driver has a hardcoded 8, breaking the driver for word > lengths other than 8. >=20 > Signed-off-by: Stefan Moring > --- patch subject is missing the 'spi: imx:' prefix. Otherwise: Reported-by: Sebastian Reichel Fixes: 15a6af94a277 ("spi: Increase imx51 ecspi burst length based on trans= fer length") Tested-by: Sebastian Reichel (no need to Cc stable, since the regression is only in v6.6-rc1) -- Sebastian > drivers/spi/spi-imx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c > index a8a74c7cb79f..498e35c8db2c 100644 > --- a/drivers/spi/spi-imx.c > +++ b/drivers/spi/spi-imx.c > @@ -662,7 +662,7 @@ static int mx51_ecspi_prepare_transfer(struct spi_imx= _data *spi_imx, > if (spi_imx->count >=3D 512) > ctrl |=3D 0xFFF << MX51_ECSPI_CTRL_BL_OFFSET; > else > - ctrl |=3D (spi_imx->count*8 - 1) > + ctrl |=3D (spi_imx->count * spi_imx->bits_per_word - 1) > << MX51_ECSPI_CTRL_BL_OFFSET; > } > =20 > --=20 > 2.42.0 >=20 --vvnncv4uod55cjfd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmUHSbUACgkQ2O7X88g7 +powOA//QZi68hCcG91zq7ECQd53AtdSj97EofoYYBRp1lQsfEkwzm4aHVzgvais C4hXyiMZBLBstnH8+yTu/h5md2IwzZQVSftEyPyzrGIQwWu89DRZtUnWbo6fMtdI Qq5T310rWgGETjjItrUgm727TJFbpSz/bIwSXYBLBaUIgcJnjITm2BwzyDDkpncl qSA2Iww8oC/Lcowj9MJQ3JFu9YIpgdhaUdLARSzV3qGHJ235gh9FadH4S1sl2XXL KHgYC9tJwuTz54vdqXSmOs3Qj/UF4JY0KAuKCZOHy43IDPtuuxIG87dU65+Fhd5M nlorLWNa9r80VyilEJWkRu+GVOoIX17fDR0geYDU4AJfHYuIjYqSBHJ3AJU1Y384 irzfV4GePDnpAX7Noh1Q/Y8XqciD1P5I2JREyzWYvcyC+SvALU5gfJXU3Sy7pnXL Yvvt9BqZSqrva3nbj3ModjoxRJqLdJIPGSeMdN+DaQ1AM2iVAQSiiX9bmbu4/JQ7 TmESFigxFC/D+1z7eS2qQmVPumMMFRfNPVBwo0f0hX48MIqU3I0KVpEnbI03ibKQ z0eqhjg2jGtpQvZjdmcKUTsgUzZopUy/ramuPm5Dts0kbh+IVbil3ElEevzsCUQr NR4Un8cDpWDdBTBRVYEjyEoK4v3nPMmq8JM26RK6EpBMpTSQeuw= =2z3Y -----END PGP SIGNATURE----- --vvnncv4uod55cjfd--