Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3098517pxv; Mon, 12 Jul 2021 09:14:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9pkjxsj4Lip9rWzH0TXaB1Yj+Lfcv5o2MELcKpC1raZBxPeIPObS0OD/0GDHEQuKPtjYv X-Received: by 2002:aa7:c841:: with SMTP id g1mr66508635edt.343.1626106464351; Mon, 12 Jul 2021 09:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626106464; cv=none; d=google.com; s=arc-20160816; b=ezXZfauhc+aqgloHmr60L48ap+wpozENCcs+QicntBivg0nIuhTdxIChx11B/+wk09 qYVK+DLmd11ELfK+JlHOONrRsqM0C6pAg2wxmVC7qyzqo1WaLg0K3bL8T2sG9ybPfcCe isF/XC/OkVe0CmK1mh2fRGR4RjOvWnZNsC+B3ScJAqjlM9aJ1qznEPi5W6ERFLDmWrR4 0LmUTpjv9qJsF4KBa1ozOUN9OEpZHSeU/JVmI1ejIY63DTbzlU2EICWUNfcVSyydb3vA yd0l6YZrA7bJt6Ju2DX6aRwLXa8aCqzZ0Gc9hGDYI5HLLHfrFwJbPjq3+isqaeqOtvNm 6P5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=jfnkgwMiSxBTNsH+0D1PNRyZEEZi2QebOTc9tS1RNAE=; b=Hg8E3vYV0/+P+Fr9I8H6JCOaj0ExvJ4+YdWZvk8EuiCrZCN4Ohr4brY6PZtEhPm14i slvRjGViqB0NV336Si+HR5bqtoLeUgn9qMCMSt4dlKTj3gzfekSGzN6EQMlXnV1gIg+X KeNWwRqDjpnBRKVdXRn91glAdFZiLVqfxdyJ6XOfOuIvEMzkKVYWXko/Id7KixbIKRic +Nozy+hfPHRSDSG/1zxGHm/p462FZ9UfwH7fFmXCodpd7/zNkLhCshKFP8Lo4CUnKtdj 2feE3Zag6zkn7PiwYkeScrqRBizIwUT9/zTIHO5eMT1Y2IPwomkZjjFmXTtu6UvrHyME 7rFw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x13si8503354edr.280.2021.07.12.09.14.00; Mon, 12 Jul 2021 09:14:24 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233207AbhGLQPC (ORCPT + 99 others); Mon, 12 Jul 2021 12:15:02 -0400 Received: from thoth.sbs.de ([192.35.17.2]:45663 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229465AbhGLQPC (ORCPT ); Mon, 12 Jul 2021 12:15:02 -0400 Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id 16CGBjpl020872 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Jul 2021 18:11:45 +0200 Received: from md1za8fc.ad001.siemens.net ([139.25.0.120]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 16CGBjgr006558; Mon, 12 Jul 2021 18:11:45 +0200 Date: Mon, 12 Jul 2021 18:11:43 +0200 From: Henning Schild To: Andy Shevchenko Cc: Hans de Goede , Linux Kernel Mailing List , Linux LED Subsystem , Platform Driver , linux-watchdog@vger.kernel.org, Srikanth Krishnakar , Jan Kiszka , Gerd Haeussler , Guenter Roeck , Wim Van Sebroeck , Mark Gross , Pavel Machek , Enrico Weigelt Subject: Re: [PATCH v3 0/4] add device drivers for Siemens Industrial PCs Message-ID: <20210712181143.4e03ba9b@md1za8fc.ad001.siemens.net> In-Reply-To: References: <20210329174928.18816-1-henning.schild@siemens.com> <857d6cd4-839d-c42a-0aa7-8d45243981ee@redhat.com> <20210712133543.074aad80@md1za8fc.ad001.siemens.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mon, 12 Jul 2021 15:09:04 +0300 schrieb Andy Shevchenko : > On Mon, Jul 12, 2021 at 2:35 PM Henning Schild > wrote: > > > > This series is basically stuck because people rightfully want me to > > use the GPIO subsystem for the LEDs and the watchdog bits that are > > connected to GPIO. > > > > Problem is that the GPIO subsystem does not initialize on the > > machines in question. It is a combination of hidden P2SB and > > missing ACPI table entries. The GPIO subsystem (intel pinctrl) > > needs either P2SB or ACPI do come up ... > > > > Andy proposed some patches for initializing the intel pinctrl stuff > > for one of the machines by falling back to SoC detection in case > > there is no ACPI or visible P2SB. While that works it would need to > > be done for any Intel SoC to be consistent and discussions seem to > > go nowhere. > > > > I would be willing to port over to "intel pintctl" and help with > > testing, but not so much with actual coding. Andy is that moving at > > all? > > > > Since my drivers do reserve the mmio regions properly and the intel > > pinctrl will never come up anyways, i do not see a conflict merging > > my proposed drivers in the current codebase. The wish to use the > > pinctrl infrastructure can not be fulfilled if that infra is not in > > place. Once intel pinctrl works, we can change those drivers to > > work with that. > > > > I do not want to take shortcuts ... but also do not want to get > > stuck here. So maybe one way to serialize the merge is to allow my > > changes like proposed and rebase on intel pinctrl once that > > subsystem actually initializes on these machines. We could even > > have two code paths ... if region can not be reserved, try gpio ... > > or the other way around. > > Bjorn suggested exercising the IORESOURCE_PCI_FIXED on top of the > early PCI quirk that unhides P2SB for the entire run time. But I have > had no time to actually patch the kernel this way. Have tried the > proposed approach on your side? Unhiding the P2SB (even if permanent and fixed) alone will not trigger pinctrl to initialize. One would still need something along the lines of "mfd: lpc_ich: Add support for pinctrl in non-ACPI system" for all SoCs. I guess it could be an improvement to your series, but i honestly do not see all fitting together too soon. Since your p2sb series still initializes the GPIO with two different names (depending on whether it was PCI or ACPI) and only for one SoC, while this series would need two ... and a consistent solution many more. Henning