Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1190104rdb; Sat, 18 Nov 2023 06:32:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpVNLb3/ToBmXBYbV4bLrsdphD9Uk0SI2SLRMb8nPvOGMR3mjyz9s+z3Nrf8yfk8Uhw9su X-Received: by 2002:a17:90b:388f:b0:280:3a0c:bf73 with SMTP id mu15-20020a17090b388f00b002803a0cbf73mr2186606pjb.26.1700317960908; Sat, 18 Nov 2023 06:32:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700317960; cv=none; d=google.com; s=arc-20160816; b=jKK3SN4ufl92Nt7utYIMU459Wc7pV8wdtebPPMQ7ykfA0kE4NjC8iMHHydMu8ZWi/2 Shex7Hb3I1ErhfM5kNmH8UQRw7F8Z4px/O2ytDv6eXPgjzIaLZMXyIqMvbkC+FMwV0Ib Xpnw2YDW8n1mBk8VaKfbqGlE3sMrW/EE5aNKdCzI0zzFl5rVX5ZgI/wENaKDCgoAs8kR 4do5vbG0TVfPlrMXB/pLOqEVcC5DB7gmfhlaQuekQRUEhBUhqeqLrlTv5HH4B0ChgTUd NWaXTOnaMQG86QWSQikLinlkDPhwfAgeNZDOFBTup4xgKvl1jZT+4NwCx8OwySFpFuAt lL3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:cc:to :reply-to:from:subject:date:message-id:dkim-signature; bh=H+1zXZpsNczUhfrvwhG7NO2oFhIsltQEiYuOsbFYusE=; fh=jCQzAEQbIpJA53op1MQ0CbvxN82/NDEsLJHEV67BUYE=; b=osn4Ymay+wb/wMSNAUKJlezr+u7w5tuG80Z6RWYdlqyxNBC5X+Tgp4Op9z0umE2bHM VJ7fMh+cIIIe+L14ZS59BOvW5hbWVWLY9mS5CarSfcvtBqHtosJj0Igpag7LM1xEfvpY bCOfy2HL/uWbB0nYZANPxEXz88BRXvHBDblOnIYksl8BuZoCTddlOPP++ieWgFQeLLkf cov78wuuMUVLCf+1wINpc7LRtYnaI5cKqvZXLYde5ncasaRpqGdrvkVdCAOoMY4vQudC jtHzdwXI47MyDg4CnCuNgIWA8fL5/chPcuqCr7TbSzI9JXPcHJIrDy9CYg1s0SHpyYhV n4iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bigler.io header.s=20200409 header.b=u+0Wy3rD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id np7-20020a17090b4c4700b00277816efefasi4483489pjb.106.2023.11.18.06.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 06:32:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bigler.io header.s=20200409 header.b=u+0Wy3rD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 878A5804E2CA; Sat, 18 Nov 2023 06:32:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229469AbjKROcf (ORCPT + 99 others); Sat, 18 Nov 2023 09:32:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjKROcf (ORCPT ); Sat, 18 Nov 2023 09:32:35 -0500 X-Greylist: delayed 399 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 18 Nov 2023 06:32:31 PST Received: from smtp-190e.mail.infomaniak.ch (smtp-190e.mail.infomaniak.ch [IPv6:2001:1600:4:17::190e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38E82A6 for ; Sat, 18 Nov 2023 06:32:31 -0800 (PST) Received: from smtp-3-0001.mail.infomaniak.ch (unknown [10.4.36.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4SXbfQ4L87zMpy3H; Sat, 18 Nov 2023 14:25:50 +0000 (UTC) Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4SXbfQ1NRXzMppt6; Sat, 18 Nov 2023 15:25:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bigler.io; s=20200409; t=1700317550; bh=H+1zXZpsNczUhfrvwhG7NO2oFhIsltQEiYuOsbFYusE=; h=Date:Subject:From:Reply-To:To:Cc:From; b=u+0Wy3rDOk7Ccf38HwkOLq+WEGFGSOr0cPL92/DHC9HceH5spA0CbnWi5dvgz1ISg NggCA8dihtRH2oHxb7eeAN/Rog+Dr7wX4PWFBoYnm/RlmNXFJEnIibuIkTaqko+8Uo iUEF+3ZZrD+4FWkBZgNHF9AGelrIFkvNzLXwtR3w= Message-ID: <8a415902c751cdbb4b20ce76569216ed@mail.infomaniak.com> Date: Sat, 18 Nov 2023 15:25:50 +0100 Subject: spi: imx: Increase imx51 ecspi burst length fails on imx6dl and imx8mm From: linux@bigler.io Reply-To: linux@bigler.io To: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: linux@bigler.io MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-WS-User-Origin: eyJpdiI6IlVmUDV4anJ4dUhYY0pOUTBhSDVPWmc9PSIsInZhbHVlIjoiU1o1MGtmTXVRZ0FZQkdqTFRrdEh6QT09IiwibWFjIjoiYzUyOGEyY2IwYThkZmRhNTRiZjA0MjU1ZTA1ZGNiNGEwMzdhYjY0YjgwZjg1ODhkZTE3ZGFiMGRmZGI4ZGQ3ZSIsInRhZyI6IiJ9 X-WS-User-Mbox: eyJpdiI6IklLSzNBa2lGNlNEcVFQMFZ2eW40K0E9PSIsInZhbHVlIjoid1pOdnhuR3c0NVprbUkvQmdHa1h2dz09IiwibWFjIjoiMmIxMzRiMGExMTJmNGMwOTQ1YjllZmMzN2FkNTU5YTljMmIxZDY3MmZiODljZTI4NjRlZjViMzlmMTRiMjI5NCIsInRhZyI6IiJ9 X-WS-Location: eJxzKUpMKykGAAfpAmU- X-Mailer: Infomaniak Workspace (1.3.595) X-Infomaniak-Routing: alpha X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Sat, 18 Nov 2023 06:32:39 -0800 (PST) After upgrade from kernel 6.5.11 to 6.6.1 the spi-devices on my hw=20 colibri-imx6dl and verdin-imx8mm are not working anymore (TPM2 and SPI-SRAM= ). Analyzing the problem showed that the 2 commits introduced the problem: spi: Increase imx51 ecspi burst length based on transfer length 15a6af94a2779d5dfb42ee4bfac858ea8e964a3f spi: imx: Take in account bits per word instead of assuming 8-bits 5f66db08cbd3ca471c66bacb0282902c79db9274 Reverting the commits solved the problem. The analyse with the logic-analyser showed a wrong number of transmitted = =20 bytes and wrong data. When I try to send 127 Byte with a incrementing pattern (0x01,0x02,0x03,..)= , 504 Bytes are sent (0x00,0x00,0x01 0x00,0x00,0x00,0x02, 0x00,0x00,0x00,0x03= ). We tested with different sizes and patterns, all are not ok. While analysing the configuration and code I was not able to see any obviou= s mistake. Has someone else discovered such misbehaviour or has any idea what is wrong= ? Best Regards Stefan