Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp787853imm; Wed, 10 Oct 2018 04:26:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV61DhhmoX4zeWIm7S7Dg2ANfawr3ZMC/kPlI/HjcXRe2i1i4+oTwaNSrGSUNikeqGQQqtp4x X-Received: by 2002:a17:902:9005:: with SMTP id a5-v6mr32572469plp.86.1539170769294; Wed, 10 Oct 2018 04:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539170769; cv=none; d=google.com; s=arc-20160816; b=Jxswt86bgMZwJSeD93jcCPFPpYuH9WLqcd2PxkkD8kEB+tuYNE3S6GVfdw+kjPzK2V JnMBJr93K5f0k/x8Cg9Kzc9irQ244h7J7d3olUUVAdaMyTxHzu3+I4H0vgSDUnEYV5qp avLai0AAn4cOOMSDaG4/ZK/kIqS3nXcTpzI7HmOZtf8zUCPyDD6xfs9JK+E2W0rEyk9y WCa6vo+s4fZIjgxpvSSRIa9lmTbsBXoJ05pmG4ibM3xB9FQSbv9xSlkYUcbqipsCltJf pTO0dJAqjl9kJnkVLQkOjax1oc46yPHqpz9/VwwoBieHKm/e2TjGrJ1v0Fp8NJIMVfmp C1Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=fYlrLp/L7Kmuo/R+ki9vFMVAEW+lf9NsbV9sklGyBhY=; b=dzIk9Ft3ezQhjAgZWtoJqRuJ37sj25PAH9idENknlKSV6F/OZdLST5AAfa9jExovw3 J3W7CxPluIfBvMiLWPUxbnvCrqLj3G9uKUGpdD1p+yp9+NhSL1u+UrpguU6ODLg4TBjh ZDgcrK2sgwLmpd5spUgD052l/IXQBGRELrXolD5t2yqECeL9rvlkNXrbJSHKiJfGEtn8 8/kEaunKW7FZADIl+gwvQZgETWtINbBcs1Y/rk09fEqLGX63eapV4NdQ0f9kXE2qpujZ pKGFAM3KltsssJm6Z+19MgLsnJwizmM8wOWgAk8EUXDcMUk8k4Z9F91ssgANeIRDGOgI 2xFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=LgDWdZM3; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5-v6si21008931pgg.277.2018.10.10.04.25.54; Wed, 10 Oct 2018 04:26:09 -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=pass header.i=@amazon.com header.s=amazon201209 header.b=LgDWdZM3; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726943AbeJJSpt (ORCPT + 99 others); Wed, 10 Oct 2018 14:45:49 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:55540 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbeJJSpt (ORCPT ); Wed, 10 Oct 2018 14:45:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1539170646; x=1570706646; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=fYlrLp/L7Kmuo/R+ki9vFMVAEW+lf9NsbV9sklGyBhY=; b=LgDWdZM31I0010QpnmrpYt/M14UkEj6yibsLkM/VycJmEoeoAeswvOGY kb3iTEb/hyo/UHS4UMpqvOjb4sajVer2Vf6gybE74fDq2HzOHHs1oB3Xb s8NDUzOmyRLKaOAoGJ4ayhEUBkG+8iJB3XOtZTzICuS9EkP2ktMAwRc+Z 8=; X-IronPort-AV: E=Sophos;i="5.54,364,1534809600"; d="scan'208";a="635357556" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-1e-a70de69e.us-east-1.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Oct 2018 11:24:00 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1e-a70de69e.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w9ABNtGx050899 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 10 Oct 2018 11:23:58 GMT Received: from EX13D01EUB001.ant.amazon.com (10.43.166.194) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 10 Oct 2018 11:23:57 +0000 Received: from [10.55.103.19] (10.43.160.4) by EX13D01EUB001.ant.amazon.com (10.43.166.194) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 10 Oct 2018 11:23:49 +0000 Subject: Re: [PATCH 1/2] dt-bindings: spi: dw: add cs-override property To: Mark Brown CC: , , , , , , , David Woodhouse References: <1539155293-21750-1-git-send-email-talel@amazon.com> <20181010101825.GA6294@sirena.org.uk> From: Talel Shenhar Message-ID: Date: Wed, 10 Oct 2018 14:23:40 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181010101825.GA6294@sirena.org.uk> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.43.160.4] X-ClientProxiedBy: EX13D24UWA002.ant.amazon.com (10.43.160.200) To EX13D01EUB001.ant.amazon.com (10.43.166.194) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/10/2018 01:18 PM, Mark Brown wrote: > On Wed, Oct 10, 2018 at 10:08:12AM +0300, Talel Shenhar wrote: > >> The dw spi controller has an auto-deselect of Chip-Select, in case there is >> no data inside the Tx FIFO. While working on platforms with Alpine chips, > Why would we ever want to use this behaviour? It will be broken for any > non-trivial SPI message such as those made with multiple transfers > anyway. Why not just unconditionally control it manually? This behavior (auto-deselect of Chip-Select) is the default behavior of dw spi controller hw. On Alpine chip there is additional behavior added to the dw spi controller hw that allows the sw to disable this behavior. This patch allows the dw driver to enable this hw workaround and add the needed sw manual control for it.