Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2586456ybh; Mon, 5 Aug 2019 03:30:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwha4lXQU5RMocPJni7JQP5lh0jzMOAclucgGmt6noKNHUnnxIX23nUHbShfmuLgQcGqov6 X-Received: by 2002:a63:7c0d:: with SMTP id x13mr95735746pgc.360.1565001024391; Mon, 05 Aug 2019 03:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565001024; cv=none; d=google.com; s=arc-20160816; b=ITWLOeUALer1RiguMjy/splcJMq97kGRZ+ZP3XCL0ZfEG8zL2bAsC+DMZhVmcHVH5B OTFaTUBRjss6blZ9Kdoy5XMakZQkXbuhcI+tzHOETKQujbtUhZITOm1szzsbonmPFeEI lroN5f2OXW4a+2ycoB0lwa727Wnm0/YdrNCzsxbqOdVi1+YFqivw2vbGZyog376nqPLP j9eofnDSQY/sJSDLMXMghLyxErEDq2lkE+i7ZDzcZXNje1WidXeb7OLGw0mlr5wo7wb8 5oXMWBc1i11Ew9orhELVwcoAJXg2NBJhGf8iCa4KQYe1/SlaiNToOIFn/fMehBMRJ8Dx iEBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DgQS0RVhrSHQQR06ywIE1zI7rR3vFUB6ECm2IurTYyo=; b=chFBjtzALDAXV9i7mk3q4lSrNR2w8HmYguovy4Cdj2Egb/4vY27MD3lG6Veg92nxGL Yk3nLrcBcIoO8zn/F4AxvVq5a1pHlU+eEts49AJ6Vntg4WrcAtEHiq2BhvFs/UK4an44 xHtqeOlwn4yTByFG8AM7PLIJvzEJ1Ogdlqr6Mfsst1pdiBJx8aINDAEQ3m2SHTexbdjA FC7EyPNXP2FG4oTuWDQ7JMtnLNOquG9c2Uea5q8fSZFAkcj356az6IxydGyRm+X0Mn5w tC1Ev3QO5oV8JPVd/dtZovx+XjUrPmJ7ST7KXRtPBh+zdUk2b9DbULU5qFFbTrX5Ggdb GVzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TJhyTIrK; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9si42855803pgo.355.2019.08.05.03.30.08; Mon, 05 Aug 2019 03:30:24 -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=@linaro.org header.s=google header.b=TJhyTIrK; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728113AbfHEK3d (ORCPT + 99 others); Mon, 5 Aug 2019 06:29:33 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:45971 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727357AbfHEK3c (ORCPT ); Mon, 5 Aug 2019 06:29:32 -0400 Received: by mail-lj1-f193.google.com with SMTP id m23so78764794lje.12 for ; Mon, 05 Aug 2019 03:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DgQS0RVhrSHQQR06ywIE1zI7rR3vFUB6ECm2IurTYyo=; b=TJhyTIrKmge5lMJkKhRDhrf0usgOVPRIyssINJZl9KhrEAjHwotzV+X21lZDDYjC0M P5pVYNVHlNLwMG3LHRidN3jSvU8cYH8mYP/HTeo8EPKiSj/OHOwF2Zwyoh2thRu68rI6 L6f9lF1QgFORxs4MHrtWAchdW/d96ikEcF+nWE2Vkl7i1/HeViHAUcYXzQMVIfltapDE FgEiiihR9xs6jdYn3JmiKcqLTRBUvgTAnT6c/pBWxNLXPr0jmin9OJyi+v+k+lwBAeW/ Z/2QzPXTscDPB1xCTgCTXbL1xI5xl7zlaawW4GmILlyuBUEu1F/RnYhe5TJO7H6vyzE/ bcnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DgQS0RVhrSHQQR06ywIE1zI7rR3vFUB6ECm2IurTYyo=; b=gx1lXLr2iJSI+7YMySFEgyn7yK25k7VmR1/cD+unhUzqBnWmcXXAm+sM+5xpA/c8Ui 5u2Io3AfomJknXjIBUe7C5JwODmkqosYfXkniJlcD9MYyCFbJ8gxCUdPsKsQM/jCxMVX i12IjTuYnkAWkot4K9qGjN52mNfe1582gChqK7Q1ks221Ygp3tdOyNt0CLumehgYyeh4 hQ7ETIdQpJw16cOWHq9okRxMtexbBaT3pu7VYmxYPKC64jhukDvowsHAl2srVmQc46y+ sAXQSCzgkHNYvYIMPaqece+S7nR8kF0LkOot4dcqs445/RXht/TaaegQtTt6NiJwk6qh b5NA== X-Gm-Message-State: APjAAAXzOw+rygajW7l8EQnskuneqpEhpTtRyLQVthZGYwBkGxRvqfgv BGRdRptKeMiUJKe6jhU+AzHOj+B2V6iSDB2UsYNRCg== X-Received: by 2002:a05:651c:28c:: with SMTP id b12mr13784957ljo.69.1565000970574; Mon, 05 Aug 2019 03:29:30 -0700 (PDT) MIME-Version: 1.0 References: <8ae7cf816b22ef9cecee0d789fcf9e8a06495c39.1562597164.git.hns@goldelico.com> <20190724194259.GA25847@bogus> <2EA06398-E45B-481B-9A26-4DD2E043BF9C@goldelico.com> In-Reply-To: From: Linus Walleij Date: Mon, 5 Aug 2019 12:29:19 +0200 Message-ID: Subject: Re: [PATCH 2/2] DTS: ARM: gta04: introduce legacy spi-cs-high to make display work again To: Rob Herring Cc: "H. Nikolaus Schaller" , Mark Brown , Mark Rutland , =?UTF-8?Q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Discussions about the Letux Kernel , linux-spi , devicetree , Linux Kernel Mailing List , Linux-OMAP , stable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 12:43 AM Rob Herring wrote: > On Thu, Jul 25, 2019 at 12:23 AM H. Nikolaus Schaller wrote: > > I tried to convince Linus that this is the right way but he convinced > > me that a fix that handles all cases does not exist. > > > > There seem to be embedded devices with older DTB (potentially in ROM) > > which provide a plain 0 value for a gpios definition. And either with > > or without spi-cs-high. > > > > Since "0" is the same as "GPIO_ACTIVE_HIGH", the absence of > > spi-cs-high was and must be interpreted as active low for these > > devices. This leads to the inversion logic in code. > > > > AFAIR it boils down to the question if gpiolib and the bindings > > should still support such legacy devices with out-of tree DTB, > > but force in-tree DTS to add the legacy spi-cs-high property. > > > > Or if we should fix the 2 or 3 cases of in-tree legacy cases > > and potentially break out-of tree DTBs. > > If it is small number of platforms, then the kernel could handle those > cases explicitly as needed. > > > IMHO it is more general to keep the out-of-tree DTBs working > > and "fix" what we can control (in-tree DTS). > > If we do this, then we need to not call spi-cs-high legacy because > we're stuck with it forever. I agree. The background on it is here: https://lkml.org/lkml/2019/4/2/4 Not using the negatively defined (i.e. if it is no there, the line is by default active low) spi-cs-high would break PowerPC, who were AFAICT using this to ship devices. Yours, Linus Walleij