Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1505571ybj; Fri, 20 Sep 2019 11:35:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyX2F20rp27u7MUqyCeexdkoO7rXz5VMy1EZGgQTfG2LvpZBYf+8c9sXkkDdz2GlfWUQ9OB X-Received: by 2002:a17:906:7cc7:: with SMTP id h7mr19724825ejp.204.1569004538583; Fri, 20 Sep 2019 11:35:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569004538; cv=none; d=google.com; s=arc-20160816; b=X7QXCN6UZe0sVI8lqJlJCKwxCJKR6fWEGD05SF2dp80z0AcVbi+2nRAXxYWT/nH269 PVRNq0V+eUWTPtebYO89aXooiLs3NioKe1NUyEbvBAJFLfqE9BqrtwhC4jX5v3i6te/K M2DDDv+ZMgy5fQsReuCzAufJHb0rsURDtYeFfsr8xeM7HoRFuHs1OikDl408+P/gwy35 M/Scqn1PtA4z4dYDwDSAIW4sEBr8XB7noLprTC/8J9njQoAJbmP+CGVNeqKwjyFfQ/xZ Y67DzMat63BA6HwCl/gYEXXJQXNeNKxJKvVtHNDhkADoJpffY4C4e/uQ2qEwBrOMJr49 kOgg== 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=agjOW8fEWWSUH9GPuMddR7LZQGwwWJK0R3sCAqQNNUM=; b=jaV8tZrtXsL80YeNt/L83WXz6tYrQcaNN6HZ3xgc51UfU+JNNzrC2NTaw/yimqoZxW EDVdLKoEnDXfYKX6j/JRaE9aISl8B/CauJarUoVKEpT+uId6dLaJ1rNUmppLh6VItjWA P4ae3nVUn3eEfut2nfOOhj98S/dTGYDMSx9Dmtjmu9EK0rCV6r3NA0Sv1EaAdLzBpWKt XcRtWMZknHflWp4kXWx2+wE6P0tVFiu3gDIU5xFhFA5KRE9G92jtODwzF0TBZ7o+ElzF uDPyqqPSyIf7g2UrNkfdQtx4wVzviMEUQuVxdAYzTbjuk5U8vNL5/o6Tw0Nm4V//sOzu 7ggQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=riWHbheM; 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 w20si1986642edc.202.2019.09.20.11.35.14; Fri, 20 Sep 2019 11:35:38 -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=riWHbheM; 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 S2437881AbfITIzi (ORCPT + 99 others); Fri, 20 Sep 2019 04:55:38 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42744 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405038AbfITIzi (ORCPT ); Fri, 20 Sep 2019 04:55:38 -0400 Received: by mail-lf1-f67.google.com with SMTP id c195so4454941lfg.9 for ; Fri, 20 Sep 2019 01:55:37 -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=agjOW8fEWWSUH9GPuMddR7LZQGwwWJK0R3sCAqQNNUM=; b=riWHbheMlhjS0/BRj5Q0HX6KJlVe8YW2UdvSV/+r2JXEB0QY8iWQ5mMbZYwZ0qG6+C S+Pla7kA81GEVyOfGdrHTxtIes3FzIt+uT60WnVIcEWpZnwijCccvhPYa7cQ+IMPuYmt quZVESx8r3C39VFLu5OMRE00LUtyGF9V9y/KC0Qjbm4hnsL71TaBhIDFcMG3yOtCuyeG XYOVJYNlvv4smxbmqOr8BCLzpa4O3LW2BA8tH+P12KmYiMl0DXrAs5eXVQTwTAOZtcgX TcX1N92zSaG4zUGVc2FPaeWzeTWLUCoUaZIpda/cLgMS3WjMzUoofWDvtk+Lob8/+nak /hmg== 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=agjOW8fEWWSUH9GPuMddR7LZQGwwWJK0R3sCAqQNNUM=; b=bqSmhQoVJFGez/uOtq63sciKuzeGVB6nPhVUh+PG9KmZfp7T4qJJnZjLLCqV0NjZeD s2/wRGtsov+yVeG2KfZXTShTPtbiE9vuUq5pGctOmK4NJs4j2n3wK9ErkP6vyyRHy/Ff idjYhZ7XCHNSJrGAjxPzG8YVHZFbFAzpXCrZhf3xQEYgpGObo1Rq19L85hsEZcvUhsG+ 0wDCVBWF47CDYiJa64ASf5Hc3U11VzQ/2Es34i2kmeC0YYXOrbZPnhd9Btd+7B/PRkbF gNR/pn3K8wEP4aeaQ6ylVtml5yORadKi8nQ73CSSp+6CPbWktgUUKQx7KGgxgyiYEzze m7dw== X-Gm-Message-State: APjAAAVj89ock01myJEUkYmuDVDGadM9GJAxh4plPghzl/5768KYG3AY phtr1g2tuZ1azmk8wNhBIW7Ug3ZS2+6doy1E8Dpw/A== X-Received: by 2002:a19:48c3:: with SMTP id v186mr8211999lfa.141.1568969736324; Fri, 20 Sep 2019 01:55:36 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <1624298A-C51B-418A-96C3-EA09367A010D@goldelico.com> From: Linus Walleij Date: Fri, 20 Sep 2019 10:55:24 +0200 Message-ID: Subject: Re: [Letux-kernel] [PATCH 2/2] DTS: ARM: gta04: introduce legacy spi-cs-high to make display work again To: "H. Nikolaus Schaller" 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-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 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: > > > >> ping. > >> > >> Device omap3-gta04 is neither working with v5.3 nor linux-next quite a while and we need a solution. > > > > Can't we just apply the last part of the patch in this thread: > > > > 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 = <100000>; > > spi-cpol; > > spi-cpha; > > + spi-cs-high; > > > > backlight= <&backlight>; > > label = "lcd"; > > > > > > Surely this fixes the problem? > > 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. It is documented as a boolean in Documentation/devicetree/bindings/spi/spi-controller.yaml with the following description: spi-cs-high: $ref: /schemas/types.yaml#/definitions/flag description: The device requires the chip select active high. So I don't think it is about it being undocumented. > 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. Yeah that seems like a plausible way forward if we want to move away from the legacy way of specifying polarity. > Then, we do not need this patch for GTA04. 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". > So its up to you to decide which way to go. We are happy with > any one that makes mainline work again asap... I suggest to go both way: apply this oneliner and tag for stable so that GTA04 works again. 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. Yours, Linus Walleij