Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp385811pxu; Fri, 4 Dec 2020 05:51:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvZHPjeao/EliShGbUTs7ZSc/rm+APv6DA3RAlriXxUyoIsneHRDKuD77DrU60wXKCJx3G X-Received: by 2002:a17:906:1e0c:: with SMTP id g12mr7352517ejj.115.1607089882617; Fri, 04 Dec 2020 05:51:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607089882; cv=none; d=google.com; s=arc-20160816; b=uN+LxSJu6IZj6XqI3P50uj+ldPA/j5MSN9neN75FHaYQrsCrsWHItfmH/pi6d5686C LrKjiRpCw0yTpR8V81XfQjfoaRQ7PvXl4HX28hE8PkD/X2jB6bALw2VJTWfO4Ci0pQXl h2YJaeWKeSK9wyJgkG1gfgV9egVrF0bMuhlLalXDR52N+nZd94SgfpnIahRF7pletT/f D352CcTPrKZLIaSgNZppZMHKVQm3UUOEZBi0O0O97ptNMqkBzTN+QMeByoxRVz4HnSZ+ l4zfXI7/gTPgT8hr9QLloafrA7PF0BMDOCV9Q4+bXAWFxMNk8VddxxF2r9CbPSpd5Kl0 fYsQ== 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=6UlVbXqiDdFrt8nR6CihMFsoN+ELRH/W5hnUR0aYu8U=; b=BBfzt6GNisLT1Q19u9ZDyZ9olop8pm7G5uW+EhGowyi3U0koLTJVfRVZzEtWKmgB4D 0+1E84Vnr0wj0QEweZ/AUG1dZ1xPdjIdHdXzka1M0gYEOKOrUS4fRdmtnLexY+Seps3A ToPkcyAet9GvtZpEBZ5ieu2xgKvIvnFYX8f5WfAFhdfgonzBEBVfdJKobAqDxRG8I/Sy gykSKOsBIrtXGoTuvlgoG37BRJKwk78QrwZPA/wmFs9v196WPnvKnoLuNz3toK/yYTM8 Dr92a1cBqnpDJ9mZLvmRLVTrpBDYefRwCpJnLUJZzxoNRHDsGkgf8HbkrzC0/TjJ2PQD hGYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NJg5wcNe; 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 o3si1311628ejn.637.2020.12.04.05.50.58; Fri, 04 Dec 2020 05:51:22 -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=NJg5wcNe; 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 S1729031AbgLDNr0 (ORCPT + 99 others); Fri, 4 Dec 2020 08:47:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbgLDNr0 (ORCPT ); Fri, 4 Dec 2020 08:47:26 -0500 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5C99C0613D1 for ; Fri, 4 Dec 2020 05:46:45 -0800 (PST) Received: by mail-vs1-xe44.google.com with SMTP id u7so3239507vsq.11 for ; Fri, 04 Dec 2020 05:46:45 -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=6UlVbXqiDdFrt8nR6CihMFsoN+ELRH/W5hnUR0aYu8U=; b=NJg5wcNea1ycZ8S7Em9aKmUg4zJ+scn/2jaJ3Yc23Ys2bjNhWpeD+dGbV1GQ8mdmzn RP4g/jfeWd7BCK4lhLyr36D91MLki+mvWLhM/3K3H+NB4wV5BUAnDTB1/Jp2JdID3usi LZh5T49n/Uf6b+VlgaRdP6zrxm5xZ7uAPfQBrmfqcqL6jjddaUB8PIdfbudG3ll5Cbd6 g7LynthiqLFicU/22n9WCPkG58KgIt9ExXq7D5sluzIDuytZt71lO45tRd36XPhOAs9l DZ2uidd0vFxS9OkZxqREJAxrFUV3HPynuhzPlMqzrx2rVwpjTeGpkWAWH33GAiqLU5ss NUrw== 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=6UlVbXqiDdFrt8nR6CihMFsoN+ELRH/W5hnUR0aYu8U=; b=LWsOk0chwRO9vDX2J141ipYvlYF76V1JGAOAi9W8SJPcq8P48w7wFODUxCIRpjKbXo d02TeLJTHJEq2Dsd1tDYfbOkEL2onLts87kezYgt/3MBPDkF1LU+j/pF1fy9EQm/JL4c AWadCirggKwhpYNVuNEXrEfruPBS1NZddnk4QM8n1N9QC8Yd9bHjLbVY1PTY5ByDYe4b nlHUG5awqzhXOn7UGbyw2ZM5r89NFWK47fO2YUGZxhlHEvQ2wN7P5I+iksX/unC41ECd v2q0i8D0+PRcPS6Fh/s0eDpjtfoqj9wDFgTTuLK4lGBoWEBZYztI5kjcEIoLO15D7i7y Ag9Q== X-Gm-Message-State: AOAM530LfcUhi/MNA789pDt92Vr68c5UOqIlVybaCM9/Yln0FkZVWcdm 8QKoego+U5JumeEzaBDsPIp44Iz73+3OQpFCo3MpbDGJzPpv2w== X-Received: by 2002:a67:e217:: with SMTP id g23mr3512620vsa.15.1607089604856; Fri, 04 Dec 2020 05:46:44 -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> In-Reply-To: From: Sven Van Asbroeck Date: Fri, 4 Dec 2020 08:46:33 -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 5:11 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. > Which is not well documented anywhere. I agree that documentation can be improved here. Would you like to submit a patch that improves: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/spi/spi-controller.yaml?h=v5.10-rc6#n28 ? This way, we also get Rob Herring involved, which may lead to more elegant documentation. He is more likely to respond to a patch than to a question. > > What I especially wonder is why you fix that at all in drivers/spi/spi.c > if polarity inversion is handled in gpiolib. The reason for that is described in the commit message of 766c6b63aa04 ("spi: fix client driver breakages when using GPIO descriptors")