Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp608023pxv; Thu, 1 Jul 2021 05:39:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk0PvxItL9/IrYAUpSGEMgFP+cj/MuSRo2y1P0XToJaGSX7TnbsmIMUGtEl2qPgxzokl7V X-Received: by 2002:a17:907:ea5:: with SMTP id ho37mr11238210ejc.109.1625143190920; Thu, 01 Jul 2021 05:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625143190; cv=none; d=google.com; s=arc-20160816; b=tgY93CYQoOyk6S7KPU6tmWcHegEKiqr7jq6dz82mmidHrIshQ8N7DFy34i3WPkJpHb TPN8xIkwGS9n6ZR4Fj/TFxlpkoxT+JpUttWHgG+7Ygl+OgoyWTZuQrl7+QFooQU10+/j VJlY55nuoeFlY8GkS1Qz4K6kSFsATQ1hlA7WTR2Y6Va/Da7Y2sXceqSnrEyPm3Fv1Mjf +vBWHhuK/IClMF8wpUX8QkYUxRiioaXFOE7Axzzj6P8EUgUtfT/EK/S12xfcwvvtmFPt 2tvfWV7F4xpqMFLKNpoIJParPusQO4XK8d1cnQ7rtgPhozW4DoVsDINXmaMWtUmGH6O9 VnfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kssr4gmtp/IYFhUj7wTF1rAC75pSE7knZqtnbVaCSJQ=; b=x4CpZJHH6K2bNgfzZXtBqlgQ/Ro1mSHvp1bs2CsTYUSoqk60h3I6xOpwet2iZd8fR2 FY/FsijxCfHtSbhl/yoPd8xcBxG5I+5Am2y5fTEPjStEr+ofoTni1DDi+Jq32UVojH/W KNovg+M3EHd3AbBLk08+08T3K3I2E2AwqqiDpUjiKM9KadiZ5wRHRPi7trIuYtl8Fwid lsQEaqfybPfmR2T+u3hE7C9dhuTUPvdQ6B84aQSbGxE/2H259OmYJmsruQ+mwu/5vloU +eoR2z4dO62n/YMy17b8z5YZcviDP0KHMsdXvzID1TO0Aa17XLyi7X5qqzZ5D5iF/bta q4ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bNldtXZX; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dq22si23914085ejc.51.2021.07.01.05.39.23; Thu, 01 Jul 2021 05:39:50 -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; dkim=pass header.i=@linaro.org header.s=google header.b=bNldtXZX; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236413AbhGAM2z (ORCPT + 99 others); Thu, 1 Jul 2021 08:28:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236332AbhGAM2y (ORCPT ); Thu, 1 Jul 2021 08:28:54 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6F90C0617AD for ; Thu, 1 Jul 2021 05:26:23 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id t15so4629472wry.11 for ; Thu, 01 Jul 2021 05:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=kssr4gmtp/IYFhUj7wTF1rAC75pSE7knZqtnbVaCSJQ=; b=bNldtXZX7OEsU7hC/ydIj5dZEObpyOXouxDSTP89Bgkm87aVhs+/bm1l7KCWSLfxUY +63/2TYNUoS4zfmhz64+zcyhyR+i9yXH910ON0rNU4Y1WQDxQ98gafnnx+XnYp5CfkpB tPmkpwU9vwlTeed7La9IgctWwoV91OfNryWv1O+tXb5Yj1aV1adqxcVoJDmjl/xjuldP O4vUhCVi2hOqheVzxcJTz8Ff1BTOJo6PF4iVhEbkB263lHY0zM9xJx+UKUXZGTKVJKrI Q/QPQqUu2EjkDt8Uakc7DwKgz6a3KEa/n5ZGqhBiC89+fLOCB64xhrzqQPEDj3ntuqle fY8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=kssr4gmtp/IYFhUj7wTF1rAC75pSE7knZqtnbVaCSJQ=; b=pT/7UVz5Ikt4dMPTEAtfRxjJKixh+3mxax0YfL4QghXxxo17ByVJqPKQakOY00CAhn +RuCJPlLCafTj4HQliOwJ4wgFCE0uKsQwfCbwzlnMXh0tbBSTehu1w0JZ1aNFXzQAoNL fEEi7FDehBnFUs9QzQfgC0f9P5z2Kf2HCsY7gyNiCKfzVtZWGp8ncrFQxYV5ZXm/1b9E +CDLa+ALxQRvdT/S2xIeHpYBYS0mlKEjICS3Xp6PLGxWpIEeJiLVH37XqewtZPbBzqDp 8uOf6W3PPoLWmj+25qgKVlqIr5xzlueAgY8jMOzCgtcRfP4NUGr44F3PTdxdJrbRf/Od M7vA== X-Gm-Message-State: AOAM531xFpkMl+aoxJRyhP3Gl1Ziw3lw/fT738VpM65VLliDLwpI0BKO p7TeFlCPdRv4HHUFiFtUrff8Jg== X-Received: by 2002:a5d:564c:: with SMTP id j12mr46200631wrw.37.1625142382388; Thu, 01 Jul 2021 05:26:22 -0700 (PDT) Received: from dell ([109.180.115.217]) by smtp.gmail.com with ESMTPSA id n18sm4392386wms.3.2021.07.01.05.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jul 2021 05:26:21 -0700 (PDT) Date: Thu, 1 Jul 2021 13:26:19 +0100 From: Lee Jones To: Andy Shevchenko Cc: Hans de Goede , "david.e.box@linux.intel.com" , "mgross@linux.intel.com" , "bhelgaas@google.com" , "linux-kernel@vger.kernel.org" , "platform-driver-x86@vger.kernel.org" , "linux-pci@vger.kernel.org" Subject: Re: [PATCH 2/4] MFD: intel_pmt: Remove OOBMSM device Message-ID: References: <20210617215408.1412409-1-david.e.box@linux.intel.com> <20210617215408.1412409-3-david.e.box@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 01 Jul 2021, Andy Shevchenko wrote: > On Thursday, July 1, 2021, Lee Jones wrote: > > > On Thu, 01 Jul 2021, Andy Shevchenko wrote: > > > > > On Thursday, July 1, 2021, Lee Jones wrote: > > > > > > > On Thu, 01 Jul 2021, Hans de Goede wrote: > > > > > > > > > Hi, > > > > > > > > > > On 6/30/21 11:11 PM, David E. Box wrote: > > > > > > On Wed, 2021-06-30 at 11:15 +0100, Lee Jones wrote: > > > > > >> On Thu, 17 Jun 2021, David E. Box wrote: > > > > > >> > > > > > >>> Unlike the other devices in intel_pmt, the Out of Band Management > > > > > >>> Services > > > > > >>> Module (OOBMSM) is actually not a PMT dedicated device. It can > > also > > > > > >>> be used > > > > > >>> to describe non-PMT capabilities. Like PMT, these capabilities > > are > > > > > >>> also > > > > > >>> enumerated using PCIe Vendor Specific registers in config space. > > In > > > > > >>> order > > > > > >>> to better support these devices without the confusion of a > > > > > >>> dependency on > > > > > >>> MFD_INTEL_PMT, remove the OOBMSM device from intel_pmt so that it > > > > > >>> can be > > > > > >>> later placed in its own driver. Since much of the same code will > > be > > > > > >>> used by > > > > > >>> intel_pmt and the new driver, create a new file with symbols to > > be > > > > > >>> used by > > > > > >>> both. > > > > > >>> > > > > > >>> While performing this split we need to also handle the creation > > of > > > > > >>> platform > > > > > >>> devices for the non-PMT capabilities. Currently PMT devices are > > > > > >>> named by > > > > > >>> their capability (e.g. pmt_telemetry). Instead, generically name > > > > > >>> them by > > > > > >>> their capability ID (e.g. intel_extnd_cap_2). This allows the IDs > > > > > >>> to be > > > > > >>> created automatically. However, to ensure that unsupported > > devices > > > > > >>> aren't > > > > > >>> created, use an allow list to specify supported capabilities. > > > > > >>> > > > > > >>> Signed-off-by: David E. Box > > > > > >>> --- > > > > > >>> MAINTAINERS | 1 + > > > > > >>> drivers/mfd/Kconfig | 4 + > > > > > >>> drivers/mfd/Makefile | 1 + > > > > > >>> drivers/mfd/intel_extended_caps.c | 208 > > > > > >>> +++++++++++++++++++++ > > > > > >> > > > > > >> Please consider moving this out to either > > > > > >> drivers/pci or drivers/platform/x86. > > > > > > > > > > > > None of the cell drivers are in MFD, only the PCI drivers from > > which > > > > > > the cells are created. I understood that these should be in MFD. > > But > > > > > > moving it to drivers/platform/x86 would be fine with me. That > > keeps the > > > > > > code together in the same subsystem. Comment from Hans or Andy? > > > > > > > > > > I'm fine with moving everything to drivers/platform/x86, but AFAIK > > > > > usually the actual code which has the MFD cells and creates the > > > > > child devices usually lives under drivers/mfd > > > > > > > > Correct. It must. > > > > > > It’s definitely not the first time you are talking about, but it may be > > the > > > first time I asked why it’s not enforced overall. Last time I have > > checked > > > it was like 5-7 MFD uses outside the MFD folder. Are you going to fix > > that? > > > > Because I can't NACK patches that weren't sent to me. :) > > > > > Hint: you may add regexp match to the maintainers database and you will see > them more often Good idea. I'll add it to my TODO. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog