Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp738422imm; Wed, 10 Oct 2018 03:36:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV62fUynfDI4Ize4SuXOwBwZoe5JfxqgwT5wfAfry/Z9+zTH2R0UcP9NQyJ2dLNDkFmvDYS2V X-Received: by 2002:a65:5103:: with SMTP id f3-v6mr29394206pgq.54.1539167794131; Wed, 10 Oct 2018 03:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539167794; cv=none; d=google.com; s=arc-20160816; b=0utefQ6y9BfK3mnn/mCpjP5p+WpzSr3emWCSm98atVGqr04RA5bimuYY6i7N+9y6Z8 2LbOQYLoxNaAYhIBQQwoDnvp/kSD9jQ8l+mjQ7Kcu3H2RhH9P3GNoQUbu64NekBapU8l j+fdPVWnZu7GgKb8RtkYIrQV70mZpef2TP0j5KdoKcn8ViELZkf8teAEtXtne1jFe4ue sq2p4QOUZfyPi0hy3h9wqamIbcKg9r1/urOPnzU3aWjtFpvQXuXusEJiiuaAY7PrrKSB W/b1ZUOgsqHIxcbm84HZ07eLk1P9Uu8DvQx2SiEB3SlOuMEok3wDgiLXt1/8fBHhm3Es uUog== 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=9zpHVI0ZWqxiY/gnEHnp6P5L1B98SvXaI+4zs/F/1aE=; b=LaCs5DBEM2db7dqpXOmtfvIiT0PqL/Gh+GQ7Hp5FsfQc7ys5KX1/nCzTGb4BgDfVLu I4PhuKmZeR09dd9NZFuNlecghrc/2fYsdIEZAEDqtYrLXJBlDy8Qv10sbfZ34dx3EYJU 6QgljPRydeSJpQyRTLLaHwz79kfpybqkz40X1S19xpzWjEnZer+DaP3pYbjFydMeUyHz 5xvQzA8iiIIC84LL51hR2UgrFssOxE49LNYq18v4hfq/d+AXLI7s5ZSL69pLuFY9ngX7 3xIy6yfQQlADNSHfKxbBK3qOq7An8fAw3azPMbQHfkC+zBjZnr0C81o6ir+tIkzKgtWK S5DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b="kWKE//up"; 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 a13-v6si23454999pgi.474.2018.10.10.03.36.18; Wed, 10 Oct 2018 03:36:34 -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="kWKE//up"; 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 S1726617AbeJJR4H (ORCPT + 99 others); Wed, 10 Oct 2018 13:56:07 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:12561 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726022AbeJJR4H (ORCPT ); Wed, 10 Oct 2018 13:56:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1539167675; x=1570703675; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=9zpHVI0ZWqxiY/gnEHnp6P5L1B98SvXaI+4zs/F/1aE=; b=kWKE//upUlJFyjggz8kSIgQFmEeNenJWVD8ulihVYjou+53wux0l09fR XFAgwu2MbB/IQvvXecD74mT+dkQzwNeBwcAmseeNRGsFjMOGGNocpkKaS DOMMxVvY0xV7uUriSd0+mMy+B7wYPC/FiZ9UVXLtgoHiud1dBjDQ+IPFb s=; X-IronPort-AV: E=Sophos;i="5.54,364,1534809600"; d="scan'208";a="367020121" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2c-4e7c8266.us-west-2.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Oct 2018 10:34:33 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2c-4e7c8266.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id w9AAYQIn069344 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 10 Oct 2018 10:34:32 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 10:34:31 +0000 Received: from [10.55.103.19] (10.43.160.173) by EX13D01EUB001.ant.amazon.com (10.43.166.194) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 10 Oct 2018 10:34:25 +0000 Subject: Re: [PATCH 1/2] dt-bindings: spi: dw: add cs-override property To: <"ronenk@amazon.com; jonnyc"@amazon.com> 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 13:34:17 +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.173] X-ClientProxiedBy: EX13D08UWC002.ant.amazon.com (10.43.162.168) 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 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? Thank you for your prompt response. 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.