Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp350720ybj; Sat, 21 Sep 2019 02:59:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqysrKEIAU/2whKxRKbZfazCzoVYCxDZJJhshDRUqWf7etmXnrfO1JykakyZacMqiby/9i+D X-Received: by 2002:a50:cd1a:: with SMTP id z26mr26088462edi.75.1569059944241; Sat, 21 Sep 2019 02:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569059944; cv=none; d=google.com; s=arc-20160816; b=WlrWzSaoKuQd1aqWw+XqM4YnbGLQPRzXuEBPACBayE2WnV2Eh833uHSnvdMdg3Qsxl 6tuX6JM+RbSk0s9Jg8KQCIe6cdOK11IREt0L4pWkk5xCm60hPn15YRdi8bLQoKvT3QwZ 36e7SvTf91zPxWvesDpdigOuKPrRTFY/gvO4mkaDQyGan4x+rh7zsMzwjQ1KItjEP+lA ZvhnpyR8F99CoQgaC6MHet042VA+qfsqwx+oQuejTKvTAWEIugcnHLj4y/wag39ZkMn4 oI9C2CHQgZ9ajVsYtejMMTWDWy2baEI3BXVfjtXuQCuIS/zc5kMi8TdFGbGt8OSAcDS9 DniQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=4d7XAVg6DONdnNsY6p2GCEVU1wMuRTgvgCjcdHJpTVA=; b=KaL3aL0UrwhExt4vThGkX0H8/6dGucQfHdbQZkxEF7IJPNQPALs0xV5uypoLM3HPbA zvMWjElOmftHta3TnAXzpR7tLwoLfN4DkNCsiBlRyxmgm0KYJX8r9qEzS/CINEW6lobK G7sexF59b62xXpecAY2pLpEpLppaRMMSshOAoHNsbTLfFD0PWra+FUQ/vimZ9rdxrJ+t Teulgrn9u44CxEdU3MOtXvNVv37i8CuYDFKH96vJk+QDrd99Z2BpYaG4gZngnO91yaEB o9kW7ipuIHGsOJ/dBzhlJ1EGPZLHXHGpWWdeKI4yLZEeNL7v0NA5PiHyGcmcXKIcTrFP eYeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=fqFWSVnf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si2856373edo.14.2019.09.21.02.58.01; Sat, 21 Sep 2019 02:59:04 -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=@goldelico.com header.s=strato-dkim-0002 header.b=fqFWSVnf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408425AbfITJTS (ORCPT + 99 others); Fri, 20 Sep 2019 05:19:18 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.53]:31670 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405672AbfITJTR (ORCPT ); Fri, 20 Sep 2019 05:19:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1568971153; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=4d7XAVg6DONdnNsY6p2GCEVU1wMuRTgvgCjcdHJpTVA=; b=fqFWSVnfHJ/dhj6MDc32JoqUosFcsrNDY8XcPSNcrlxcIuHrrq9wd7QhfqQeEXBwP5 2jJNXdXZFtiUIbc/71eZpzTGUKTOgdl1/RfpoIX0kVCtiuA73AnPnwmu7ZrhFvNGjDo9 co2ou3I+w5N0uEclme2T3qP1aQsyQQ6+txxYughePV0PSXLiczNd13aRFlfplDzsEktv F1c4mAk3T8uIcsK8Plbfn4NxwMCdsXEzx/cxp20tugczbTe/tIBV0qrO+6eG7luNbtOh kj0ntt0cLWaeW8TNC8pVD8fyAVkKAoET42pA/O679xScOJGC1atEmbZWqc+HFqTlF+mm f9Sg== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7wpz8NMGHPrpwDCpeWQ=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 44.27.0 DYNA|AUTH) with ESMTPSA id u036f9v8K9JBmCZ (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 20 Sep 2019 11:19:11 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [Letux-kernel] [PATCH 2/2] DTS: ARM: gta04: introduce legacy spi-cs-high to make display work again From: "H. Nikolaus Schaller" In-Reply-To: Date: Fri, 20 Sep 2019 11:19:11 +0200 Cc: Discussions about the Letux Kernel , Rob Herring , Mark Rutland , devicetree , Linux-OMAP , Tony Lindgren , Linux Kernel Mailing List , stable , linux-spi , Mark Brown , =?utf-8?Q?Beno=C3=AEt_Cousson?= Content-Transfer-Encoding: quoted-printable Message-Id: <7DF102BC-C818-4D27-988F-150C7527E6CC@goldelico.com> References: <8ae7cf816b22ef9cecee0d789fcf9e8a06495c39.1562597164.git.hns@goldelico.com> <20190724194259.GA25847@bogus> <2EA06398-E45B-481B-9A26-4DD2E043BF9C@goldelico.com> <20190831084852.5e726cfa@aktux> <1624298A-C51B-418A-96C3-EA09367A010D@goldelico.com> To: Linus Walleij X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 20.09.2019 um 10:55 schrieb Linus Walleij = : >=20 > On Tue, Sep 17, 2019 at 4:26 PM H. Nikolaus Schaller = wrote: >>> Am 17.09.2019 um 00:52 schrieb Linus Walleij = : >>> On Mon, Sep 16, 2019 at 12:59 PM H. Nikolaus Schaller = wrote: >>>=20 >>>> ping. >>>>=20 >>>> Device omap3-gta04 is neither working with v5.3 nor linux-next = quite a while and we need a solution. >>>=20 >>> Can't we just apply the last part of the patch in this thread: >>>=20 >>> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi >>> b/arch/arm/boot/dts/omap3-gta04.dtsi >>> index 9a9a29fe88ec..47bab8e1040e 100644 >>> --- a/arch/arm/boot/dts/omap3-gta04.dtsi >>> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi >>> @@ -124,6 +124,7 @@ >>> spi-max-frequency =3D <100000>; >>> spi-cpol; >>> spi-cpha; >>> + spi-cs-high; >>>=20 >>> backlight=3D <&backlight>; >>> label =3D "lcd"; >>>=20 >>>=20 >>> Surely this fixes the problem? >>=20 >> yes, it is a workaround, but appears to violate some policies. >> E.g. the spi-cs-high; is undocumented but DT bindings maintainer >> seems to be against documenting it as I had proposed in my >> other patch. >=20 > It is documented as a boolean in > Documentation/devicetree/bindings/spi/spi-controller.yaml > with the following description: >=20 > spi-cs-high: > $ref: /schemas/types.yaml#/definitions/flag > description: > The device requires the chip select active high. >=20 > So I don't think it is about it being undocumented. Yes, the basic property is documented. But incomplete. The strange inversion side-effect on the third gpio parameter is undocumented and not understandable from this description alone. >=20 >> Rather he seems to have proposed a white-list in the driver code. >> So that the legacy mode is only becoming active for those systems >> which really need the legacy mode instead of everyone. >=20 > Yeah that seems like a plausible way forward if we want to > move away from the legacy way of specifying polarity. >=20 >> Then, we do not need this patch for GTA04. >=20 > We don't need to implement the perfect solution up front. > We can aim for that in the long run. I usually go by the IETF > motto "rough consensus and running code". >=20 >> So its up to you to decide which way to go. We are happy with >> any one that makes mainline work again asap... >=20 > I suggest to go both way: > apply this oneliner and tag for stable so that GTA04 works > again. >=20 > Then for the next kernel think about a possible more abitious > whitelist solution and after adding that remove *all* "spi-cs-high" > flags from all device trees in the kernel after fixing them > all up. Ok, that looks like a viable path. BR and thanks, Nikolaus