Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1874248rwb; Thu, 17 Nov 2022 03:24:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf4JkVPrAPswlW5eLgRvQDn+AGBR7S16p34EdcsFczTwKvawlps9OPtV2ts5DJhB7O2osFXe X-Received: by 2002:a17:90b:354e:b0:212:e307:b59f with SMTP id lt14-20020a17090b354e00b00212e307b59fmr2310517pjb.208.1668684293426; Thu, 17 Nov 2022 03:24:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668684293; cv=none; d=google.com; s=arc-20160816; b=tAGl7y2NZiEY2fGGIdO1dlDp+DgYugKdJCY32taYnWFdpxMEIqBs/sI98wlm2jwaQ4 jugjESNmcxW4Bw5QxqRlDivt0DuiEP6Ov24CkDn391KD+ZnVNaXHXoAwZfxwvZfVj0O5 4CnjXjhMJVOyYmpHNfOVJxadmCapYBeZk8NwQ4rhZi143Ou8ScXaX8bwQrbYt9aVGRBR iOuF8PMfvz9rA91SzNFvEFA6dNegevJEJxrr187uEdUiJwolJfzhnseXsFeiJakD0Ka4 0IPE12blDk9qxBWsPS/y7WBQcbUKWYOgKwcMYBo9qdan/EQbZ63zco9APbgMd9529Yqx dRSA== 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=VrDXzNVj2H8XFwCeiMsYvCBrXbWHclip1UoV7y2FboQ=; b=me3S/34cNAhA5bza3aqosFuRYJfJhMg1JX2DxOZ7t8p4nMU8ITguTvCZ+/+1rQ1PJh PyBUGkcb5oqT4sU2jhWscjLcbcVlcBE3yZAkiyM7wuQZBXKNA46OC965dxjqOPshiKNR sf5jZ3hvNW++yFZPcvaJOGWBJBUo4hNqY/tmCEjwRb2LHxZlQLQ8IsROTyIc5F+4vdCF EP783NmP/V0/BbxmdjeUMOBuRQscFpMNqBb6B/J0ToWsmXX8bxhjohoAZVF9YXkKasL+ fR3Cuz5hPY95aCM4WB5iDaFxq+Qo7WG7F2uL1uUPXC3Tl2Uwdf//49GccB2chPM0QoQp bTuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j3aCJYHi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j12-20020a170902da8c00b0017f8290fcf0si828670plx.272.2022.11.17.03.24.39; Thu, 17 Nov 2022 03:24:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j3aCJYHi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239767AbiKQLBx (ORCPT + 91 others); Thu, 17 Nov 2022 06:01:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239647AbiKQLAk (ORCPT ); Thu, 17 Nov 2022 06:00:40 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 004BB1C7; Thu, 17 Nov 2022 02:59:56 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7F8BCB81FF4; Thu, 17 Nov 2022 10:59:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C113CC433D6; Thu, 17 Nov 2022 10:59:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668682794; bh=FTcXBVf4xKuIE7vas46JjAXZsr5dkNSkrqRgK59BR3E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j3aCJYHiEH9yeDG4sHk7/Z9AsxDyOnRrOuUaaPmyFhDe4xZ7640/EoC+qQ21H+kXH 08J0YkV0AvOWwkIZgeORvNcR7+Thk9/gFhQ+j/07CgdiSiqgHT9sIkpbJnlNSmSYy7 F0s+Lkp/tCo9flUPLLLEOsKv77nTk0+dt8r9HQwPWNuFFrKmTl0g1PmuMnTR1dHuFK +EIKV6Bz/yqgXNyld4b+aneK1HPLhq8HFjHJiNQnrXiCMqPg/W7GwFnmcAzJ9Q24D4 g/OdUB4RLlrAVnEBDmQqm2/TGfn+5SaqpKMM4hfxrlG03xxcvz/cnqRwwzEEYNWBF6 8Rz0l/MIOY8Kg== Date: Thu, 17 Nov 2022 10:59:50 +0000 From: Mark Brown To: Carlo Caione Cc: Kamlesh Gurudasani , Neil Armstrong , Jerome Brunet , David Airlie , Martin Blumenstingl , Kevin Hilman , Daniel Vetter , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 3/3] spi: meson-spicc: Lower CS between bursts Message-ID: References: <20221116-s905x_spi_ili9486-v1-0-630401cb62d5@baylibre.com> <20221116-s905x_spi_ili9486-v1-3-630401cb62d5@baylibre.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sVW5maJnbV5GYFNa" Content-Disposition: inline In-Reply-To: <20221116-s905x_spi_ili9486-v1-3-630401cb62d5@baylibre.com> X-Cookie: Ego sum ens omnipotens. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --sVW5maJnbV5GYFNa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 17, 2022 at 09:47:41AM +0100, Carlo Caione wrote: > On some hardware (reproduced on S905X) when a large payload is > transmitted over SPI in bursts at the end of each burst, the clock line > briefly fluctuates creating spurious clock transitions that are being > recognised by the connected device as a genuine pulses, creating an > offset in the data being transmitted. > Lower the GPIO CS between bursts to avoid the clock being interpreted as > valid. This is just plain broken, *many* SPI devices attach meaning to chip select edges - for example register writes will typically have the register address followed by one or more register values for sequential registers. Bouncing chip select in the middle of transfer will corrupt data. If the device can't handle larger transfers it needs to advertise this limit and refuse to handle them. --sVW5maJnbV5GYFNa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmN2FCYACgkQJNaLcl1U h9BA1Af9GvKfza2vtRbu0JnM9pTzjygGkt+vf4n801Z7oafMH+9AsCMpa4yyr7Dq zhMWNsKInloF+p+FGqJUx6iky4xR83YXfpR1dzXn9xh27MNjYMSvH9MgbDLKKPyZ TG+uVFrFsaus8eR7mzZw80l7KCiw6ypiGWh5o+qtO7UWGCVnbcwl1NeD0RDolNE+ tmRoPMEoZohX3XIGL5NGihK0buq/ZFq4EkrpUK7mfJ5kHSCwtX7O4ZR4SUI2VB8g WiLut2anQJ/MgXPdHnhKdrY47fwGRDi3TCI88Le+mb2gc3iUAf4r1rdqviUnMps7 6nf/3APDiJ0vw09mztpBv8KT1ASrrg== =atc7 -----END PGP SIGNATURE----- --sVW5maJnbV5GYFNa--