Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3809614pxu; Wed, 9 Dec 2020 00:43:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDYr099w+khXGQ27s6zAMMEgQOZRmvLhya0YzzHDhKQajTr1KIFo9/1wvJ8QUNMAFu1OUn X-Received: by 2002:a05:6402:22e1:: with SMTP id dn1mr1002446edb.347.1607503424524; Wed, 09 Dec 2020 00:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607503424; cv=none; d=google.com; s=arc-20160816; b=PgvyuiIHqGlDx2Z4VIpQ4Y4YoNmpn8VtvZ3Nwup7WlbnOS6sNQFyrIOoy81Iung1YN NPqSgj4nW0oOFjo+BFBlLN0w0NDjAjMvD2DGx64q/8J93twP8jFgI+PVerCL6+TDmXVa 9SZPHQ54FjnGZ5nFnOB+QLiDQWBKyW0/oLYu96iN+MOCaCP2YWUakN6Yd9AOFQVAraAb /8WTNYQeRbcfkn1JQ6lqVz67hDKF1scCkfKM7aNc8wgR53xAbLfAsyIVjYliKRf2Ou7l lUABGbFaFItWhYHSZ1bHJlbGc+uKUDWObkIIOKHEfVGPUg/ZJYhF7/p7HsqWZqBibRQz CRAA== 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=m/1rj/wXg9oCi+YfUXe8gHvq4SdGjy/asRCiGbz5eYE=; b=gLgZ0pt8Rvt3wi2O8QhNQhKZ2Gs9LdHLVm5nMFenEetwn04qpC56aI3/F5P6dmFhrs tJciPBPqqaljW3WUHRzaBCT96f8gEuwp799BSEze0w9yPODYCjKFsADsFsxkAFfMShLw vtiOtvjWgmzEVEtAmU/xtVJWS2HiIINb6xlC9HTLkH/XJxT4wyPuW7xxj5G+Tw3nO2XG KQVn1z3yNabPIQ/ZmU8GD3XWfUmhVYSRzoX2x4uoqVK5D1VozDJHG5P++5G3+5FtZs3k mVDAvYhbNxxoUG/yKHoIFHs49ofQ0AZ2gMWGiBFC+uM0rnwXWOyGkbZk5VQ6S1h7bXOe S1RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PD4HG672; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si406303ejc.705.2020.12.09.00.43.21; Wed, 09 Dec 2020 00:43:44 -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=@linaro.org header.s=google header.b=PD4HG672; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727694AbgLIIjU (ORCPT + 99 others); Wed, 9 Dec 2020 03:39:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbgLIIjT (ORCPT ); Wed, 9 Dec 2020 03:39:19 -0500 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CE4AC0613CF for ; Wed, 9 Dec 2020 00:38:39 -0800 (PST) Received: by mail-lf1-x142.google.com with SMTP id w13so1988176lfd.5 for ; Wed, 09 Dec 2020 00:38:39 -0800 (PST) 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=m/1rj/wXg9oCi+YfUXe8gHvq4SdGjy/asRCiGbz5eYE=; b=PD4HG672/N5NMIJ8j9tpQhQA4BdG6Cb8uQhXvZQtNznh2P984CpMjc9rMkiVD7YWtb pdNiXfpyGdA2RBcv3Y2y6AZm8zJAA6Cls9R/ed4vspwFJgZJwEEJu2CjrCpu8Ly1coX0 62ptj3YVQ/oAD+aebYOKd0ZoFetjwPMDQBmOuYkdyCcqN6/oTeMnQiRRRGkl7TU9G4Tn Ht0e7Vs/NKedWi5nYBVS9sjFLTU68O9DIH4LSwZjwn20VgLiAtag0dsWT7OQprnvD32h V6BTBB6dNEqK2LGQyAu95rtMmxfEsajc5JRZUk2IZFMcvU2ooTxdWf0KmWvskjuP2ht3 4dWQ== 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=m/1rj/wXg9oCi+YfUXe8gHvq4SdGjy/asRCiGbz5eYE=; b=NPAyi0lg//kTFFtxdOjZxdhvEEwa+r78YDYBqnf7swo2t0arNlD6bGmqeOOMV4QiNU tzQyOEACQr5EExFNkl8CSeo2s/PJm8MyzzMGn0mywwt6UcG5nhKnOptBcQG4VXK0qkw4 oMOPQZQ6MMs8ScrTxvTkxrMgggawURyPqA4OPAuVi0fU77BQQUSMmpTORfS10w7Wonfz pufP6mixw/uq64ErwUjsxFcdaD+FZOFScdTdBxiFoN+6e2m5VwxFeZxyNMYQpUQtSeQZ n4UYGApErQLMX/GqPlyl6K0TT6jF6zcWZD0AuoylR8rS1cC0jDUAQNBrnLpOcbDCyTkE lYlw== X-Gm-Message-State: AOAM532J3RDO//9ggkI9QFDY7khc2UirskhiS4JyZZswXPJsEkORINzx 7J08ea3dRWO/dWHyl15IeYeuDd4+jk7pPuXOi0fP0A== X-Received: by 2002:a05:6512:3238:: with SMTP id f24mr670420lfe.29.1607503117685; Wed, 09 Dec 2020 00:38:37 -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: From: Linus Walleij Date: Wed, 9 Dec 2020 09:38:26 +0100 Message-ID: Subject: Re: [BUG] SPI broken for SPI based panel drivers To: "H. Nikolaus Schaller" Cc: Sven Van Asbroeck , 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 Sat, Dec 5, 2020 at 8:07 AM H. Nikolaus Schaller wrote: > I find it interesting that so far nobody wants to take responsibility > for a decision (...) What causes some consternation in this discussion is the appeal to higher authority. The kernel community in general does not like authority/responsibility by way of formal hierarchy. Have you read this document? Especially point 1) Decisions: https://www.kernel.org/doc/html/latest/process/management-style.html (We can have a meta-discussion about this but it is not really your point I believe.) > > What I can do is to provide just a skeleton for the table that you or Linus > > can fix/fill in and make a patch out of it. Is attached and the ??? is > > something you should discuss and define. > > Please take the attached diff, comment it here and define the question marks > according to your intention and then make a patch for the YAML bindings out > of it. (I can't do because I don't know your intentions and what to write into > the commit message). I'll comment what I know, then you can send a proper patch to Mark. But you really need more people than me to look at this. > + device node | cs-gpio | CS pin state active | Note > + ================+===============+=====================+===== > + spi-cs-high | - | H | > + - | - | L | > + spi-cs-high | ACTIVE_HIGH | H | > + - | ACTIVE_HIGH | L (or H ???) | 1 When using GPIO descriptors it will be enforced to ACTIVE_LOW (L) with an explicit warning in dmesg, see drivers/gpio/gpiolib-of.c When using legacy GPIOs, will be enforced ACTIVE_LOW by the SPI core. > + spi-cs-high | ACTIVE_LOW | H (or L ???) | 2 When using GPIO descriptors it will be enforced to ACTIVE_HIGH (H) with an explicit warning in dmesg, see drivers/gpio/gpiolib-of.c > + 3) Effectively this rule defines that the ACTIVE level of the > + gpio has to be ignored Nr 3 isn't tagged in the table. Yours, Linus Walleij