From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42910C49ED7 for ; Fri, 20 Sep 2019 09:19:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D411C208C0 for ; Fri, 20 Sep 2019 09:19:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=goldelico.com header.i=@goldelico.com header.b="fqFWSVnf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408429AbfITJTS (ORCPT ); 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