Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp535175pxj; Thu, 10 Jun 2021 06:53:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTUSgX5AIDhdTTokDL3mKh1qXTwn96Y9eylPqvObb0Dsfto7SJtcX04aEJwp/u+Nm/6T1G X-Received: by 2002:aa7:c04d:: with SMTP id k13mr4947914edo.122.1623333189399; Thu, 10 Jun 2021 06:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623333189; cv=none; d=google.com; s=arc-20160816; b=H40PEgOcksdO7OITncBIyn8u8zUaR/qdhohhLRVbym242ey58qzCFUF5Fd4Vg2iCqT SqbPPlaVjulldeq4mwGfHCaUR3o/pzycUlX0ulRBcGUP85CMAdJ0q07TFkTrFeb1bMXU 2cnOAN8CCVbwCn40hjNqyyNHPc08rYFbWFwZqHC6i1AI5vDO4ZZvL2MH2IwkdNeE2sqj KsqmDfMA7xrv2ADdAF9HgAMpqRYCQXjhT+IZQVRo0My8005eemaLWIUb7K1trG4q0A3E xRV4OoTVBNiAU74bsEf0Js+gbU30FCrXxMNdBdYBpew7G1U/l/OTwxoEqatSUppyq8Nm QWWg== 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=yfFCSMTmXK03fG4Jpox0sWaEW2z4diP7qmljiuWYnLo=; b=lYhCmNv7We07FcB9NNU+nu69hEcBEyUzrMw3sfdYBncHU5JCEsn85/eEyqRhTD1Gw6 xZfnLBXVoCkcocaFcCNVQ3JwfxiUgC4++c7YSwNJ78nRpHv2Kr7Bnv2AomJsVTkrlSqH Ac/+C1mBPVJbhQd3jjMQVBtaOrYNrNrellyCDpbMtpmOgSJZu0uvbAHL3KiMpnuT8SNh kqwsUlu9+D7wmz6Nxqipxza/UBefzJ1X8baP4redY6w+YD1q1CvQiqEloOomoIToH2ha 4vssjgDL0b1H9/XykMa1NUEiZqmdp+M+RXVX6z2fe1GvOxmEtWnacxhiK5Y6+lSUMBiF smGw== 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 os28si2798502ejb.695.2021.06.10.06.52.46; Thu, 10 Jun 2021 06:53:09 -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 S230383AbhFJNvG (ORCPT + 99 others); Thu, 10 Jun 2021 09:51:06 -0400 Received: from thoth.sbs.de ([192.35.17.2]:54379 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230289AbhFJNvF (ORCPT ); Thu, 10 Jun 2021 09:51:05 -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 15ADmlsc022442 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Jun 2021 15:48:47 +0200 Received: from md1za8fc.ad001.siemens.net ([167.87.8.208]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 15ADmklU030937; Thu, 10 Jun 2021 15:48:46 +0200 Date: Thu, 10 Jun 2021 15:48:44 +0200 From: Henning Schild To: Andy Shevchenko Cc: Andy Shevchenko , Wolfram Sang , Jean Delvare , Lee Jones , Tan Jui Nee , Jim Quinlan , Jonathan Yong , Bjorn Helgaas , Linux Kernel Mailing List , linux-i2c , linux-pci , Jean Delvare , Peter Tyser , Hans de Goede Subject: Re: [rfc, PATCH v1 0/7] PCI: introduce p2sb helper Message-ID: <20210610154844.06e1e733@md1za8fc.ad001.siemens.net> In-Reply-To: References: <20210308122020.57071-1-andriy.shevchenko@linux.intel.com> <20210610110211.0e239af6@md1za8fc.ad001.siemens.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; 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 Thu, 10 Jun 2021 13:14:49 +0300 schrieb Andy Shevchenko : > On Thu, Jun 10, 2021 at 12:14 PM Henning Schild > wrote: > > > > Am Mon, 8 Mar 2021 14:20:13 +0200 > > schrieb Andy Shevchenko : > > > > > There are a few users and even at least one more is coming > > > that would like to utilize p2sb mechanisms like hide/unhide > > > a device from PCI configuration space. > > > > > > Here is the series to deduplicate existing users and provide > > > a generic way for new comers. > > > > > > It also includes a patch to enable GPIO controllers on Apollo Lake > > > when it's used with ABL bootloader w/o ACPI support. > > > > That bit is especially interesting. Making pinctl*lake initialize > > when ACPI IDs are missing and p2sb is hidden. > > > > However i have seen pinctl-broxton get confused because it was > > trying to come up twice on a system that has the ACPI entries. Once > > as "INT3452" and second as "apollolake-pinctrl". They should > > probably mutually exclude each other. And the two different names > > for "the same"? thing make it impossible to write a driver using > > those GPIOs. > > Then it's clearly told that BIOS provides confusing data, it exposes > the ACPI device and hides it in p2sb, how is it even supposed to work? The patchset works fine on a machine with hidden p2sb and no ACPI, except for the NULL pointer issue i sent that patch for. The problem appeared with the patchset being used on a machine having ACPI entries and a visible p2sb. > I consider only these are valid: > - ACPI device is provided and it's enabled (status = 15) => work with > ACPI enumeration > - no ACPI device provided and it's hidden or not by p2sb => work via > board file > - no ACPI device provided and no device needed / present => no > driver is needed > > > Unless it would try and look up both variants or not looking up with > > gpiochip.label. > > > > I would also need that "enable GPIO w/o ACPI" for skylake. > > Not a problem to add a platform driver name there or actually for all > of the Intel pin control drivers (depends what suits better to the > current design). > > > I think it > > would be generally useful if the GPIO controllers would be enabled > > not depending on ACPI, and coming up with only one "label" to build > > on top. > > I didn't get what 'label' means here... The name of the gpiochip /sys/class/gpiochipxxx/label or the first arg to GPIO_LOOKUP_IDX It seems to me that the very same device driver can come up as "apollolake-pinctrl.0" or "INT3452.0" depending on ACPI table entries. Henning > > > Please, comment on the approach and individual patches. > > > > > > (Since it's cross subsystem, the PCI seems like a main one and > > > I think it makes sense to route it thru it with immutable tag > > > or branch provided for the others). > >