Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1673738ybl; Fri, 30 Aug 2019 23:50:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuGVMqwaaAEucV/ROr7hrZadLY+NK3crm5hE1CWNpvgKeloAeCrrq3hTXT2h+zmeQOB/CU X-Received: by 2002:a62:174a:: with SMTP id 71mr23386200pfx.140.1567234201896; Fri, 30 Aug 2019 23:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567234201; cv=none; d=google.com; s=arc-20160816; b=jJYV4HZS5AugZDWBW8ktlPFLIOc/3hVsKTuS8xS8SfPfRZFakrzg0mnwB+jqZrpUVQ oUlnQfFxIcWlSasIsjmUY6fF8KPCA36JuUsSWvwoE/gqKa4UHL70P4qvdBMxrH9qzO/2 go+hIkj3vL1MLoCnRjCfe7+k5fzbp0gy5Dxz+8F+Kw27WnrKPDMBgyI/WmKKXTTWM1X2 VSXGfRC1tmhPZNLkj5j7y8AoHpoLZWeb+/oP58BIO1kArNjFpU1E27xvqgS3CxZhRzQu EGZ4xcs1SNkj2hOdjs2fx2s//4RWAKJjvF+kAOFrOc8xHZUPi3QYKdsLQIfRY63WtM2+ R2dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=rnTIfzRXS5Ir3AL9qhqZWwty0d60IscoDBzfov0jLUU=; b=gECg0iv8YbusUZEJ5jHaE3NV0rljaJGsvS1hlInCb6Idr5gIIhg2WFwaVdfm0WWFIH 3GeneWnA/YL7Tb5j43g8/xZLMe8ynfMlC3uNlV4JDUgGslOuPbS4MckuEFJHpRHk3sKd pJCLI7XjoWGZSMy7U5mSxmO5kCpA6rfh3JDksK+xjJLU1hIQocMeVhueDDIhU92FTgJM wbpVsrpwIL7vnOAGRkjtM3e5Dgu9loh26PS71HUWGhhhuhFdfmDO+JGmX6tXuPKfcVgJ OyBeHedte0l3IZSGJ9r50W1Z/owAVDMLmuw6KsSwlOX0rIK+ntoj+f69Xnpil3apfZUz Z/fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=d7bhxDGR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si6074109pgl.7.2019.08.30.23.49.46; Fri, 30 Aug 2019 23:50:01 -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=fail header.i=@kemnade.info header.s=20180802 header.b=d7bhxDGR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726251AbfHaGs6 (ORCPT + 99 others); Sat, 31 Aug 2019 02:48:58 -0400 Received: from mail.andi.de1.cc ([85.214.55.253]:37274 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725899AbfHaGs6 (ORCPT ); Sat, 31 Aug 2019 02:48:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rnTIfzRXS5Ir3AL9qhqZWwty0d60IscoDBzfov0jLUU=; b=d7bhxDGRoaRHuEc26WzHmmVfC/ ogQzkqh7yDgFK/luVkUpsOeqKZJ0qCMSmiDP5qL5Wrb/Y3R7XL4mkd6+Vpr6mMNM0n4wdoyGE9dZz dugfTMV43zOzVFZzKnCYLvrCC1eAjpJk6TMBiL9sb2TY+1miRmCEERIAiSk685qrv2ZE=; Received: from p5dc58eeb.dip0.t-ipconnect.de ([93.197.142.235] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i3xBs-0007Yb-VQ; Sat, 31 Aug 2019 08:48:53 +0200 Date: Sat, 31 Aug 2019 08:48:52 +0200 From: Andreas Kemnade To: Linus Walleij 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?B?QmVub8OudA==?= Cousson Subject: Re: [Letux-kernel] [PATCH 2/2] DTS: ARM: gta04: introduce legacy spi-cs-high to make display work again Message-ID: <20190831084852.5e726cfa@aktux> In-Reply-To: References: <8ae7cf816b22ef9cecee0d789fcf9e8a06495c39.1562597164.git.hns@goldelico.com> <20190724194259.GA25847@bogus> <2EA06398-E45B-481B-9A26-4DD2E043BF9C@goldelico.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, 5 Aug 2019 12:29:19 +0200 Linus Walleij wrote: > On Fri, Jul 26, 2019 at 12:43 AM Rob Herring wrote: > > On Thu, Jul 25, 2019 at 12:23 AM H. Nikolaus Schaller wrote: > > > > I tried to convince Linus that this is the right way but he convinced > > > me that a fix that handles all cases does not exist. > > > > > > There seem to be embedded devices with older DTB (potentially in ROM) > > > which provide a plain 0 value for a gpios definition. And either with > > > or without spi-cs-high. > > > > > > Since "0" is the same as "GPIO_ACTIVE_HIGH", the absence of > > > spi-cs-high was and must be interpreted as active low for these > > > devices. This leads to the inversion logic in code. > > > > > > AFAIR it boils down to the question if gpiolib and the bindings > > > should still support such legacy devices with out-of tree DTB, > > > but force in-tree DTS to add the legacy spi-cs-high property. > > > > > > Or if we should fix the 2 or 3 cases of in-tree legacy cases > > > and potentially break out-of tree DTBs. > > > > If it is small number of platforms, then the kernel could handle those > > cases explicitly as needed. > > > > > IMHO it is more general to keep the out-of-tree DTBs working > > > and "fix" what we can control (in-tree DTS). > > > > If we do this, then we need to not call spi-cs-high legacy because > > we're stuck with it forever. > > I agree. The background on it is here: > https://lkml.org/lkml/2019/4/2/4 > > Not using the negatively defined (i.e. if it is no there, the line is > by default active low) spi-cs-high would break > PowerPC, who were AFAICT using this to ship devices. > is this thing now just waiting for someone to do a s/legacy//? Regards, Andreas