Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp349838pxj; Thu, 10 Jun 2021 02:14:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmdbcXjAuWTuWtjpgMHmlkcJMESyPt6A6XQgc+RVpqWQKb4bMwcC4bBi8D9bjHs7bE9y1M X-Received: by 2002:a05:6402:51cf:: with SMTP id r15mr3602901edd.263.1623316472049; Thu, 10 Jun 2021 02:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623316472; cv=none; d=google.com; s=arc-20160816; b=CwpRM1b3pApU7kPTrFerOLfzGRJHboxstYzLEF+qDdZEc6KF45/0gtFNkdX3Ktpa+v dFuCRrf/9aG0CHc1vLFXFRxI5i9MmOnfsLQLCwVZ46UXKhqBaFc11mGSVggEZff74Q43 sPQDkXyYIAyq2QSqsVFwp4k1yjKovnd4B3UFKajq2yQxMYiQ47Qq5bBjRU74HwzanCIL 7AhoDhNJ3noqozxNew/VLwi+Z+fuLjyucPiA1bdrTcOnqIVa4nbvwpnVUSDMLM/9OnP6 n9h5LdHXv4GmcOsgrm2/6/yGjO+XhPdtSyJc3gKsWmAuRTaagorQGzxWPVbi4E8KDlet I6vA== 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=CP7wfmr0FTAkNGnbhuJ3/IIosdv3CzZQ3RTTPuyf+8w=; b=GThRrGNrGHle6QIzV2KjFumRkKvfxGk3CMxT8ED9XURI2gDW2SiOADHp5jUX3o3WcK tbeLOzy3fs+tmIZMMoKOnhtkyFvW91M6+WWjuZcjjJdKxpeoJ2CHmckJU/l/T0FpjWcF P/yAYD/4XGwF2dYi+gdzwiw/vw+uoNLhSVyYVDm6K/vqXlv5urGYwpr4f+0760QyZ2A4 PBjLrznI9M4SCNZ7YypN26kRhq6VSnCHJ3oLBCd0rjWlgxy0SqsfhqlNa+ny0dWC/pQf L88D5MOU87cBIoKQxr+7CbrCeu7BlYte4WagvDBKGTZZnepBL1USe937Ziobf7fd5K6s nYpQ== 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 z13si1769046edq.281.2021.06.10.02.14.08; Thu, 10 Jun 2021 02:14:32 -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 S230334AbhFJJMp (ORCPT + 99 others); Thu, 10 Jun 2021 05:12:45 -0400 Received: from david.siemens.de ([192.35.17.14]:48416 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbhFJJMn (ORCPT ); Thu, 10 Jun 2021 05:12:43 -0400 X-Greylist: delayed 491 seconds by postgrey-1.27 at vger.kernel.org; Thu, 10 Jun 2021 05:12:42 EDT Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id 15A92FRb022870 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Jun 2021 11:02:15 +0200 Received: from md1za8fc.ad001.siemens.net ([167.87.8.208]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 15A92DK0011717; Thu, 10 Jun 2021 11:02:13 +0200 Date: Thu, 10 Jun 2021 11:02:11 +0200 From: Henning Schild To: Andy Shevchenko Cc: Wolfram Sang , Jean Delvare , Lee Jones , Tan Jui Nee , "Jim Quinlan" , Jonathan Yong , Bjorn Helgaas , , , , Jean Delvare , Peter Tyser , Subject: Re: [rfc, PATCH v1 0/7] PCI: introduce p2sb helper Message-ID: <20210610110211.0e239af6@md1za8fc.ad001.siemens.net> In-Reply-To: <20210308122020.57071-1-andriy.shevchenko@linux.intel.com> References: <20210308122020.57071-1-andriy.shevchenko@linux.intel.com> 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 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. 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. 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. regards, 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). > > Andy Shevchenko (5): > PCI: Introduce pci_bus_*() printing macros when device is not > available > PCI: Convert __pci_read_base() to __pci_bus_read_base() > mfd: lpc_ich: Factor out lpc_ich_enable_spi_write() > mfd: lpc_ich: Switch to generic pci_p2sb_bar() > i2c: i801: convert to use common P2SB accessor > > Jonathan Yong (1): > PCI: New Primary to Sideband (P2SB) bridge support library > > Tan Jui Nee (1): > mfd: lpc_ich: Add support for pinctrl in non-ACPI system > > drivers/i2c/busses/Kconfig | 1 + > drivers/i2c/busses/i2c-i801.c | 40 +++------- > drivers/mfd/Kconfig | 1 + > drivers/mfd/lpc_ich.c | 135 > +++++++++++++++++++++++++++++----- drivers/pci/Kconfig | > 8 ++ drivers/pci/Makefile | 1 + > drivers/pci/pci-p2sb.c | 89 ++++++++++++++++++++++ > drivers/pci/pci.h | 13 +++- > drivers/pci/probe.c | 81 ++++++++++---------- > include/linux/pci-p2sb.h | 28 +++++++ > include/linux/pci.h | 9 +++ > 11 files changed, 313 insertions(+), 93 deletions(-) > create mode 100644 drivers/pci/pci-p2sb.c > create mode 100644 include/linux/pci-p2sb.h >