Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E8E9420476 for ; Tue, 11 Aug 2026 09:09:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786439373; cv=none; b=f7rLxp6nMIKrul3ahtan+QErEd6Yeej6GaiF3x7TR2DmCABKF4/wqRtziij9qaB5XjWmVF7GNtjyVNC0xj/d7f1BzBlIH72QgEuPJxxOymEWHDZ57Wf637BFl1+LoiJroRfdq6mng8f/0Xr3F9zNSsthv/0Fgebx6vwXCLn6pYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786439373; c=relaxed/simple; bh=YqmG8H7CfD1hiY+k9bBSfE6HrHVEEC9plMQPob7mcrw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ByoUHukhZeDrh8WfH1EbF2Ry9u700J6OqmNzpbbmexATqnl0AV76SPVG+PXlu3D8kax9Pa4Hc8RwS4AJ1cqr+ZWi9dQTHwqhb545LwAkPNntJpQvoOZBTOCG3/O7wKtBEooup7cxjS+z7+9/ZzEHmnwCKcszw6o+UWefqRmUftQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uD96FLga; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uD96FLga" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-c2074710751so385502066b.1 for ; Tue, 11 Aug 2026 02:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1786439369; x=1787044169; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ssftIM8A+D87TFbIP+gopuh1ddb3SONJgnk2ZqVY5uQ=; b=uD96FLgaJIuLykaA6i6lo42lVKQgUAd66XS0OSt7hwZ9Ot8phqec++aQG28IAqzvlr xgf0O43zOJwf21jyvYheE32rF18Pk+DPNcewfmuOT+UHLmTjItGJKihPJAMm1c9deT2T ffSu9jpjhMLJvFlcoLdzA26GdptC3nmiWerw4MTiHV6A8/wD/AXuddbIV59CevSvF3PJ txKKq9TDftNTiYL7/PhSz+d4QgVatG96YZOLdyu8+W3QcjDJEO4ZCTf2SuNKuyqwHL0n jBm7LCgyVeCXrn2mSLmypTreRdt31HotCmVStnahKtBdj7X0P6yFBfdSPrD17IfWBJAc FOAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786439369; x=1787044169; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ssftIM8A+D87TFbIP+gopuh1ddb3SONJgnk2ZqVY5uQ=; b=M9oXVktAdJax51bf2PtLw4vfgyKpowoioBVyDBvq+ljDWvhF+3ih0cvWKRpQw8GGjU mKOAQDzbILDsLTddw3xY1hbEkslOB5JwWBg6BAp0qdM1EDVqo8bh2gvXlZ3YZMOZNVRS OkQIQoY/u+qDgoHs8NatGGVD5lvYVmgsC5rOiE1NFztOH/zBZV4VutEWdVe/SShh/LQp 4gs5id2N5ATKo0itwT+AMx/PQLyM+pulj5MTK0J7x3fJFX7OaCS7W4ThODBP1rVdjen1 bLwbU3bsEtUcpMCouOhh8P18f7ZrGIBmJ+DpdyqX5+TuQZJU74U0ygvKUVarmlqa8n9R J5Ww== X-Forwarded-Encrypted: i=1; AHgh+RqqPaS9GUsbvGJeA6Nrqr5DVk6GG+tdHmEERXtpW2/gkhv1JKN2PxhLwoPbF3vjBQPSSdJxznmRjLE=@vger.kernel.org X-Gm-Message-State: AOJu0Ywc3Vv065UNe8zBjW/NB16+MkogAxrh5czxAfkxy5HCbkLnb2Hh o0sHB8Xs4kI3jy5hGIu/tU06qu5u1VCjykM0PY7NvTb6DKn3Wct3S9xUiYNUexulWHs= X-Gm-Gg: AR+sD110NOHjwOMAFv/KgCnN+BzLSY+U3/gsODgNA+n0ApljBGwV9nSpV6AsgOfN12Y 4i8h2Etg34xnadH5tBjtVmz+9oxdpwidO8tcP0FYQAjZTKaYRNNksIy10scW0gaI0KkQyjqmb2K rSe9gXkyb+mahsRWvIvoghFbGoTwsq0QsN9OL19LTSVCesifBaYacJ/pQR8KKZ8J6NSTpEq8VyK dEZDueUebu+AFmK36CRjF4mk2iATO56O86BtB+TTLDAVSbOdt09ZUL/KKv/J7lKmK43vBu55gWy AMThN0RTMwGBKpNJrZDgcy8kr0+JqPGjcg8+GMaL/gG6L7BOWU5lDQuJZp61od+pLHOqRqqNVxp b8Yyr6uSKKBhkONJj20dsj4yTHr48mI0UsohdvzThnzFtAJgv800+LsoUa9MqbuOHoe4vqDbefk HDh0wboBb5AU5JVPNET+ustXtsziBdiBRugxe75atciREn3Rs0Co+qAeJD6jSEClKbTA== X-Received: by 2002:a17:907:80a:b0:c12:7f25:cc59 with SMTP id a640c23a62f3a-c20e626b06emr89292166b.16.1786439369582; Tue, 11 Aug 2026 02:09:29 -0700 (PDT) Received: from [192.168.1.3] ([37.18.141.193]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c20e438d78bsm29708766b.58.2026.08.11.02.09.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Aug 2026 02:09:28 -0700 (PDT) Message-ID: Date: Tue, 11 Aug 2026 10:09:27 +0100 Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 6.12.y] spi: spi-fsl-dspi: Avoid setup_accel logic for DMA transfers To: Mehmet Fide , stable@vger.kernel.org, Larisa Grigore , Vladimir Oltean Cc: Greg Kroah-Hartman , Sasha Levin , Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260810141437.2805389-1-mehmet.fide@gmail.com> <20260811084018.3566861-1-mehmet.fide@gmail.com> Content-Language: en-US From: James Clark In-Reply-To: <20260811084018.3566861-1-mehmet.fide@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/08/2026 09:40, Mehmet Fide wrote: > Some measurements on the hardware, in case they help decide this one. > > I ran the transfers that fail on 6.12 against 6.18.44, which carries > cac7e5054115, on the same board (Colibri VF50, vf610, DSPI in DMA mode) with > MOSI and MISO shorted at the connector, using spidev_test: > > 3, 5, 7, 9, 11 and 13 byte transfers: every byte comes back, in order. > Even lengths and a single byte: fine as well. > SPI_LSB_FIRST at 2, 3, 5, 8 and 13 bytes: bytes come back unchanged. > > Without the commit, the same odd length transfers lose the tail of the buffer, > because the accel path packs into 16 bit frames and computes the word count as > len / 2, and SPI_LSB_FIRST comes back byte swapped, because the accel helpers > byte swap through cpu_to_be16() on top of the hardware LSBFE bit. That is what > we have been carrying a local equivalent for. > > So the commit is what makes those transfers correct on this hardware, not just > a saving of pointless repacking. > > Thanks, > Mehmet It's possible that this was originally done as a fix but I interpreted it as a refactor. As part of upstreaming this I broke down and added commit messages to changes from NXPs board support branch. It does make sense that this change was added after seeing the bug, rather than just a clean up. But it could also be a coincidence. James