Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp630558pxu; Fri, 4 Dec 2020 11:24:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyv11/ddcXO7M4VUO8Jc+NY4XTg+a9LmHtfpJ9j5C6/km+RQEW2QghfLCu09pkJdVh/agx0 X-Received: by 2002:aa7:cb02:: with SMTP id s2mr9088476edt.211.1607109865140; Fri, 04 Dec 2020 11:24:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607109865; cv=none; d=google.com; s=arc-20160816; b=PvJ8Wq4Qc6MmWteeLHCr6Ja9KGT1MhGeuE3Z4J5qEnjY47rR0easi9TCn01welG6bz jv+5LzaP6OaWpWwqxZRBjJg7+P9pCYuCI8P5duxdVNW4DhaQCueuepBDNG0SKuXlRzBu KM8xOgNHSRiadQdXBJ/7bAGwiQMxOw/uhUKr4iKebF+3Dq039fWXty6Jltgcy7QISRLO 0sHIL7fGVKJs1VOJkQxbL6n8HBl7awBTenqM86lvfZ0SAgPenFDkVuTZfqJ9a6HLpTZd DiAdKMKH09whqHEbbz00lRn4TfQWvl5akw5DbOPRgqeDckEw8uWo7RECVbDOOamQFOrl vNtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KqRxlp4ymFV7eELgxbmICwI9khqw89fZ3DtdOgfu2M4=; b=U4XADR2ph4FGXiSoG5CRhvh7PIPJ2qBC8suyccuvqo9nUKRYEBbvP18NQ2CgqJqcNK ncuoUG1SWTT3Q9ZW4tHvWLglwvdWrZjuIt+eMvz6ANNIKy+JSZ7aw29visMq/TFlFSt6 biN8OuGmRjY20ujSZtGsoGG7+zsuBchvPfes0PoyuS6MH6bvfRDitm9cMj4hRg03Wbcn 8dHuBw8J0AEqc06pLV7f5YEdXc+yQTp5C7VhPzTxR7m8KdqLNXtQFWSVascPwf7mu50O uYumC01/o3wstNBUDZ9CbBy5czxsn51STBR87J8YtKNmfovdum8Cvh3zoAR/A1ApE/zS RwUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jkUk52hM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dq8si1825988ejc.750.2020.12.04.11.24.02; Fri, 04 Dec 2020 11:24:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jkUk52hM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729721AbgLDTUE (ORCPT + 99 others); Fri, 4 Dec 2020 14:20:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727924AbgLDTUE (ORCPT ); Fri, 4 Dec 2020 14:20:04 -0500 Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6176C0613D1 for ; Fri, 4 Dec 2020 11:19:23 -0800 (PST) Received: by mail-vs1-xe2e.google.com with SMTP id p7so3855565vsf.8 for ; Fri, 04 Dec 2020 11:19:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KqRxlp4ymFV7eELgxbmICwI9khqw89fZ3DtdOgfu2M4=; b=jkUk52hMNItWKAWxCgCRVI3i+teHMglvgmmuS5AX0tcXiXUyyXeB7ZxTY73ibWfP9q hk5rl0A2Trlq4uoTYByE3ekxisIyqnHHRrQihwNHc6etm6eZfnu5heLQpoRFkNLaYoxN DQhao6/g5QjMJuA8ul8oUb6DeyaPr0WDHlCXjGDNsNHU4SggM8syXboOMgz/ZeQc9XQ3 kCa0zbhL9n8ccJMyLegFCHUinSig875fNqHpAgZkLuYAF/kvz+EXL3rK6Vhm7yZIiO+A VnQ7OjFOt3UltY5mq7KArugKuy2rdpY0dZlHNkwmu3ET4+hgL4Y9sg/pcGWv7KkpKv7M Mx5Q== 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=KqRxlp4ymFV7eELgxbmICwI9khqw89fZ3DtdOgfu2M4=; b=JGgHZRnJcwyirgOHrxiJqYtxfXpCpkgo+xvLDIkGSH17Wb2TrTJW97APP/Fv5qQdkc m0C/4g6wc//0GoQXIUxUT1gApZhGFZwi4KRhlWGIK8P7QQQE3cuSbXp2ONfEw8rMmXPV /sdP5ynfBsTsNzisNZcqErmQ3Sg69tNpmvDACFh568hIiXKXmQRDASLqNCSOZj+hvEAS yz4qqBrL9fSgDPDYtqFkH1NA9BKKigxLSyrV+W0Vnl93IAN9GfjHJ0JWpu6CP81JsB6Y h7IVkuFJFMfcdG75BIygBkoLk2pzhXFORXoap+McYukWgxrK2jH/9ipHThgJN4ClRfBU 5vNQ== X-Gm-Message-State: AOAM531DYqK8h1nLuBn5tk4HuQmQ+hr5WP1yDWACtI3YJPBDByqI0EjE JrP21WYMjZWfu+QFH9dBU8wD9tMNAIAVMUFORlw= X-Received: by 2002:a67:e217:: with SMTP id g23mr5593894vsa.15.1607109562688; Fri, 04 Dec 2020 11:19:22 -0800 (PST) MIME-Version: 1.0 References: <2D7916FA-678F-4236-B478-C953CADF2FFA@goldelico.com> <4AC29229-9542-4E77-B993-217E29C7E209@goldelico.com> <20201201121620.GB5239@sirena.org.uk> <6283C16F-549C-4463-BC08-E2C1A1D78B2F@goldelico.com> <9380CE00-9CE6-4E0B-B2E1-1B534F85E47D@goldelico.com> <7702A943-FCC5-416B-B53A-3B0427458915@goldelico.com> In-Reply-To: <7702A943-FCC5-416B-B53A-3B0427458915@goldelico.com> From: Sven Van Asbroeck Date: Fri, 4 Dec 2020 14:19:11 -0500 Message-ID: Subject: Re: [BUG] SPI broken for SPI based panel drivers To: "H. Nikolaus Schaller" Cc: Linus Walleij , Lukas Wunner , Mark Brown , kernel list , Laurent Pinchart , Discussions about the Letux Kernel , Andreas Kemnade Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 4, 2020 at 11:52 AM H. Nikolaus Schaller wrote: > > >> Anyways it is debatable if this is a bug at all. It is just a definition. > > > > I respectfully disagree. Prior to the fix, your panel's active-low chip select > > needed to be described in the devicetree with 'spi-cs-high'. That sounds > > very much like a bug to me. > > It could have been described by ACTIVE_LOW without spi-cs-high but that did > emit a nasty and not helpful warning on each boot. That will not work, try it out. You will see that without the bugfix, your chip select is consistently inverted, no matter how you formulate it in the devicetree. > > I'd prefer if you or maybe Linus could submit such a patch and I am happy to review it. I cannot help you with that, I'm sorry.