Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9977764ybi; Wed, 24 Jul 2019 13:24:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwGGV1Tk4jE7jEhuZZzYEGiy/DcwpDpbzJv+NfGiwzkDKKrSzzidVM5t0eU/anZRw1MNbR X-Received: by 2002:a62:ac1a:: with SMTP id v26mr13305044pfe.184.1563999885329; Wed, 24 Jul 2019 13:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563999885; cv=none; d=google.com; s=arc-20160816; b=Aaeu71DzORtoEmYC00kifNm+Kv1Ef7KXLe9+Vq7KSPXUbdSHj/32gEOcfWX0tJ95Gf YuZE/5Wf69C1iCcPaMwidSk3W/wdtQVYoVQ911Tzt5e+GzJuMZamkwhFf+Gap5KFqDqM UqLC6V9gD0/BYqgkWb3DY3xgN25sAsvbKbbBq2Keft74M1SX9C/Et6avaBXlGXsjLMSh oYMdvH5Ew40Tf7KHtrlSaPk4YpUrpMkSZltIR7j7cu1WUrlt87bL+yjd7QlSgQemiL8c LzHp9+rx4j4MmrN/VKjM0kH5i9sqZhA8IHIh2tLSyspPlEfIEmZetxOfwjZUWvwg+rjI sPqA== 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; bh=XSPJRPecmIkBOwXjOa6IB3IwqosGZbZUtric4Ph4E4o=; b=SR8sFm1JzuIjBAx32VMSlOtbJBafqi/tBB9+Uu5JaQ5tS3pxCybgEmPrFeot5+UFIt FLLKyMfQVKQWwGvKd0JpXl1Lz4FkvVTVBAsYwDWXln9SAY25QWfo2/uNJWyy533dCVak gd5mOowI5Z/PSGwSBQk4qNQLNeKGGlJRc3wb/8e1mBi/tJo++/ZvT8RGJIzHrcIWlNes mWhk8NTLIuh9vOV5zXg53TAEFJBKkNwc04kjEyGPMzJyDJ/Cja7UYAnpoYlUgCHDSxuo DdHvV95wd+vAy7qMO6QHc0j0R99ZVjsc/MWoQRAwld3jeSfkXVKXxFhAdOKI9lWIecIY Uy6w== ARC-Authentication-Results: i=1; mx.google.com; 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 z17si16077417pgl.560.2019.07.24.13.24.31; Wed, 24 Jul 2019 13:24:45 -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; 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 S2392904AbfGXUXR (ORCPT + 99 others); Wed, 24 Jul 2019 16:23:17 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:36129 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390453AbfGXTnB (ORCPT ); Wed, 24 Jul 2019 15:43:01 -0400 Received: by mail-io1-f67.google.com with SMTP id o9so92214717iom.3; Wed, 24 Jul 2019 12:43:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XSPJRPecmIkBOwXjOa6IB3IwqosGZbZUtric4Ph4E4o=; b=Uz1vzZMmISM+EBL8D3JE3iB1WEkzLnUcCa+bZq8kQ8vBTZt/CeK49yyuH9VYj/mSQc cKlTho2y9sBe6EHEFFt83JI7+My4kdNg5/+xAF5za2rAOUUBC7D6OFf8Rj9CzLLEbGT6 3qYGZyfMMWw74jZBcFkWO/qG5IdITPtAAHdx9Y6orfZRsFu3yyUmMDK0j2G8h16un2Tb YedgapKIVgB3pfSAq9fJZ9cz933OAL0WyWhvAYCj/NQ3bvKRQGeB9H6AWHrzQCS43ezW cSueR2pTrupM5Z8xG9FJBTA22Rt46yyKNWN87IvV2nmEaKWlh/sGqUGiEiR4WzQLKL/u 44ZQ== X-Gm-Message-State: APjAAAW6XZ70Q2gH8z4pMOEYyTJDuWWAH/kl6D/Fczi/WQ8GNHJqSCwc ze1rvu/wU7y7+fUKcNTvkw== X-Received: by 2002:a5d:885a:: with SMTP id t26mr25104113ios.218.1563997380432; Wed, 24 Jul 2019 12:43:00 -0700 (PDT) Received: from localhost ([64.188.179.254]) by smtp.gmail.com with ESMTPSA id v13sm38532541ioq.13.2019.07.24.12.42.59 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 12:42:59 -0700 (PDT) Date: Wed, 24 Jul 2019 13:42:59 -0600 From: Rob Herring To: "H. Nikolaus Schaller" Cc: Mark Brown , Mark Rutland , =?iso-8859-1?Q?Beno=EEt?= Cousson , Tony Lindgren , letux-kernel@openphoenux.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 2/2] DTS: ARM: gta04: introduce legacy spi-cs-high to make display work again Message-ID: <20190724194259.GA25847@bogus> References: <8ae7cf816b22ef9cecee0d789fcf9e8a06495c39.1562597164.git.hns@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ae7cf816b22ef9cecee0d789fcf9e8a06495c39.1562597164.git.hns@goldelico.com> 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 On Mon, Jul 08, 2019 at 04:46:05PM +0200, H. Nikolaus Schaller wrote: > commit 6953c57ab172 "gpio: of: Handle SPI chipselect legacy bindings" > > did introduce logic to centrally handle the legacy spi-cs-high property > in combination with cs-gpios. This assumes that the polarity > of the CS has to be inverted if spi-cs-high is missing, even > and especially if non-legacy GPIO_ACTIVE_HIGH is specified. > > The DTS for the GTA04 was orginally introduced under the assumption > that there is no need for spi-cs-high if the gpio is defined with > proper polarity GPIO_ACTIVE_HIGH. Given that spi-cs-high is called legacy, that would imply that DT's should not have to use spi-cs-high. > This was not a problem until gpiolib changed the interpretation of > GPIO_ACTIVE_HIGH and missing spi-cs-high. Then we should fix gpiolib... > The effect is that the missing spi-cs-high is now interpreted as CS being > low (despite GPIO_ACTIVE_HIGH) which turns off the SPI interface when the > panel is to be programmed by the panel driver. > > Therefore, we have to add the redundant and legacy spi-cs-high property > to properly pass through the legacy handler. > > Since this is nowhere documented in the bindings, we add some words of > WARNING. > > Cc: stable@vger.kernel.org > Signed-off-by: H. Nikolaus Schaller > --- > Documentation/devicetree/bindings/spi/spi-bus.txt | 6 ++++++ > arch/arm/boot/dts/omap3-gta04.dtsi | 1 + > 2 files changed, 7 insertions(+)