Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2283681imm; Thu, 11 Oct 2018 07:58:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV637hANMo6xDvKWsRvDnQDh7sPnX+0xlnW4fUazeeoMF8bMJFwxt+EM4RxNv+IQJ93WexEJG X-Received: by 2002:a17:902:4e:: with SMTP id 72-v6mr1905145pla.204.1539269897710; Thu, 11 Oct 2018 07:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539269897; cv=none; d=google.com; s=arc-20160816; b=jkUiCInyU0Bno3IxVX/5HBP8g34NNAkfs26bv6WIHzzIiMbOI1bxWWLraCkhEFo7lB qclkcNJJEbI7eUCg54lWD9eKmgm6w6c69C4c8X1e5llA71KJfwDbeFUs2CZ1J/8CqZ8b MdmEKdPy13CmdVO1oTHaFrrW4QGo4liVc54+3s4Wdp1MX1waTdXUMSIO5y9LEQXyKA5U LlzOw+M8oIg5DsBmGTAz+R5xAgvfIz3mJTw2ZHL8cOlEtJw9XynNRtXGLFPKYDRaSFiH PUNLmJQAQNQKiBFub8Iyaf5UuQJa1T8y4jIPt4/KyYGUW8T1YBs19yP2tP/yTFM3TUl3 /M7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9G+Eyo7zQvZlsHZ1xpO/mwWllSioeAheCPATCBduf8c=; b=Snkz/8vL5lgQeArgZ2y9D6Ioasnsv/Ic9J5EQWOFo/9sDsox0ADcDmeEC/4rTIdGWX v4RVUoiDUxGTozHWTAK2Q2iwLGt4/ZN1lOGnTRIb9UkgnUEtbw73Sk60/YmschIDstj3 YKuf+JPWUVJ+Uvyco7rVMuGI/JG+IFHpZMuV7EzZvacoo/q7VeCQgbqJiLsFxG2SY8lB zwiT4knOfleXlY2NjPIqVLoI88v/14+pZMk0YJynsxqZlw6u0k2pR3QhAxRMkjDwi/Z3 3pyCk7uFzLQsSaNCzT/X9LEceHMsGOEN7LA0JCKFz6WtLXmXeJjTu2L+IfiUVZaR0K0r Hv4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="FvuNYnr/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3-v6si27775683plq.198.2018.10.11.07.58.03; Thu, 11 Oct 2018 07:58:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="FvuNYnr/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728607AbeJKVN6 (ORCPT + 99 others); Thu, 11 Oct 2018 17:13:58 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:42298 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726537AbeJKVN6 (ORCPT ); Thu, 11 Oct 2018 17:13:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9G+Eyo7zQvZlsHZ1xpO/mwWllSioeAheCPATCBduf8c=; b=FvuNYnr/75Sm5/VOp4M2kvw14 DK1oSu/ZiMjAzkSiToTbStDShwzPUhNB2RJfCRsgLwHkx30bM0BVumlqA0/uV6YTNtE1amqXh6wrK 7DQzLKHmUl94N4YIX+ltp/vxiWqQWE+aTeRSUq76QwHJUIlBws6komvuacCUNWJPTBB1Y=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gAbIS-0001gi-Hv; Thu, 11 Oct 2018 13:46:36 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 4E8E211223ED; Thu, 11 Oct 2018 14:46:36 +0100 (BST) Date: Thu, 11 Oct 2018 14:46:36 +0100 From: Mark Brown To: Trent Piepho Cc: "linux-spi@vger.kernel.org" , "talel@amazon.com" , "mark.rutland@arm.com" , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "barakw@amazon.com" , "ronenk@amazon.com" , "dwmw@amazon.co.uk" Subject: Re: [PATCH 1/2] dt-bindings: spi: dw: add cs-override property Message-ID: <20181011134636.GC25351@sirena.org.uk> References: <1539155293-21750-1-git-send-email-talel@amazon.com> <1539210111.1944.31.camel@impinj.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LwW0XdcUbUexiWVK" Content-Disposition: inline In-Reply-To: <1539210111.1944.31.camel@impinj.com> X-Cookie: Use at own risk. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --LwW0XdcUbUexiWVK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Oct 10, 2018 at 10:21:51PM +0000, Trent Piepho wrote: > So that's the problem! I, like everyone else I suspect, switched to > using GPIO chip selects with this driver because of this. I narrowed That's generally a good idea. > it down to a CS de-assert when the bus switched from TX to RX, which of > course makes a SPI register read fail on most devices. The TX FIFO > would empty at this point, so that would explain it. > Did the designers of this IP ever read a SPI device datasheet??? > Got to agree with Mark Brown, why would anyone ever want to NOT have it > work properly? The previous behavior is not "alternate correct", it's > Broken. This isn't even that unusual an innovation for hardware to have, for some reason automatic chip select management is *really* popular and rarely helpful. It's far from the most entertaining thing I've seen hardware do. --LwW0XdcUbUexiWVK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlu/VDsACgkQJNaLcl1U h9ABMAf+LpTg0hfmKHD8PJyE/3o5CLdISGYbgbh/3uyhir7nDoi1nZz4BEferKLN VGI3KRpgRAHm784pLf+YC7aBMb/xmPEfsI3F22xz4+3leFd6Oj/gix9fJXak9Fxv jmzHPPqMu2VlN3jW0jJXX+SnmIQXtjEQx5IrFVJAkO9BjtUYEhLu2Pj1ra998XAF k2GHIq4lNwLvYA79HaXSk3fQnc9asagNhdjOVFcqDZ/FkAPdajynB6jrmZp/nEOV ip4TmDodXwHGJbOgiLd7aSlUDwyQzJbtwnwyLbAGMVH/dbXUrPPDXFQriW9BHDFV OdLIoq8jBQ74bJD0ypcjPZ1LSzZ4/w== =Nr+X -----END PGP SIGNATURE----- --LwW0XdcUbUexiWVK--