Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp555472pxv; Thu, 1 Jul 2021 04:26:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhbOOWxO8NcgYq5jnt1NydIjMwxFcc9H/sg3CvK3CREA/WdPBbkQTL5JqReERON8jJV0qn X-Received: by 2002:a02:628b:: with SMTP id d133mr13146229jac.27.1625138768284; Thu, 01 Jul 2021 04:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625138768; cv=none; d=google.com; s=arc-20160816; b=ohVOPn6H8DPSuxZ5yzA4k9MuNVW8aKUJX7IK34pmto/WX5ZTfRgUN49nzf/16i+Hzf kPjWuCZP9R0cVJ+2GYglxiW81HrALCpgUpcRAo2vGajNqz9T771Ys6u/MwVg6/kFs+IR 2r67RvnoDmdzd7eZfQbuZ3aQrNUuO/yUakPJ85V6auhnDrVfNTjaHY3MwqDZpqcDFSQH KIb0xWfAciAZxghUvaqeJ7ejV3YeKOyVMaKLdVE8L6A0BZw0Ow1J9JxPTb05uM2clgZ2 ce9CgvHRAtLkuPuFmbxZ+tqqS326WeWW2/k1Ys489Ozl+JjxbVPyBBfwumhEoFBiOjg/ 2cyg== 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=JbizASzFyiH7QXpq2ZXPRBHVK2mj4yMm6bpaT6TBR4Q=; b=j+pjUGj6DnF2wECvg5ZIIFQ5GKfLhW34CmRfUes/eUVlXwK9dMWY5BW/4P8rugqndn un5Flo3mkAMMSMMCnQNdypXcvcp3bNiBtYkhwtqwgCfdr5yVV4f/ggHBuZGOvm77PwC4 Dpc9wWWfiAaxucl9whwKv5CTEQtFhmS1TMGrNytVmYdXO/UkpZnrsZHNhWM90vImmCtn IoPnySiBzO8TLqDRnZDbO4f1gbr9kADqMesUnT/wEbsWSlNCmzhE8Z/+2oKFBTOPvBlk f/HlqdsFuYxGTqri8EHUDlg6mWTJJ4upUw+WFsbHq9qM7kjOdr0TjQ3ZbdnQvsghp4oV RJgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BQFKRMpN; 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 m25si26692841ioo.79.2021.07.01.04.25.54; Thu, 01 Jul 2021 04:26:08 -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=BQFKRMpN; 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 S236125AbhGALZk (ORCPT + 99 others); Thu, 1 Jul 2021 07:25:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236040AbhGALZj (ORCPT ); Thu, 1 Jul 2021 07:25:39 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CA78C0617A8 for ; Thu, 1 Jul 2021 04:23:09 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id b14-20020a1c1b0e0000b02901fc3a62af78so38690wmb.3 for ; Thu, 01 Jul 2021 04:23:09 -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=JbizASzFyiH7QXpq2ZXPRBHVK2mj4yMm6bpaT6TBR4Q=; b=BQFKRMpNUNTrQ8qTxAEhrp8IGSbCvaj88L6kzdh1JOHOtSd72X6pNzpaJHI/tzI+6Q nCU5hNdAwafy9n8GEAZbEtLojwatbb8Z/vdrKJKMXqmEy8VvZqrNqzjQqowPce3Go6g8 hnif4uG2t4RFdMCa61/KgK75KjOTJG6kyn1XwU050pz4ylZzN4MjO9CWQtDlyGGntL3U cKwa5Q0I7cjlF8+n/wYKD/vau423gjbf/bRthO9gpBTPKl9qtN1MRohto8SqXE4Z2IWu LZ/pdsfWef9St0wvhjG5k9sB9Zwlo5HKcFqAdQEmyGSruexuMfFRHTht39xI3xwaB2Lt +0Bw== 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=JbizASzFyiH7QXpq2ZXPRBHVK2mj4yMm6bpaT6TBR4Q=; b=AKGPmaH5jl9zShCehZk+IBQAN0PtNtOqDj1NHORqqf5kmcflxdvPXnMrcvRoa+lKB0 ujWmRddlasAOTwHmoQ0N5C01WpPvM+YPgfoMLbGynx4a931eYhK5eDaiY4Y/xokYpHYm Mr8jIFZ8m8xh/yleRhjv0t18pgE0vuBUM00BKPD/CgwPD5cZZ+pcgWohjv7SHwRm4n3y hnaCq06ce5MSWYtInJCgyDM4ww5+W0ZMmFKyJI9F4Q6yxXJa7zXdE69akr5nfLhnmQ82 Z6dB7VfxQNeT7RGbxSG1jh/D46KgrTTmz/cPQLlYAyKFIBwp1RdD8gRkOXeqcVe1vaIr kAlw== X-Gm-Message-State: AOAM530sbEBUHw9JzpoEXPMufCfuy4JK8BXPXsCSaNSDCEp6tHP2/Q/+ N8nb5yuF83TUFeaLPeuLicn/Sw== X-Received: by 2002:a7b:c449:: with SMTP id l9mr1323819wmi.98.1625138587862; Thu, 01 Jul 2021 04:23:07 -0700 (PDT) Received: from dell ([109.180.115.217]) by smtp.gmail.com with ESMTPSA id b9sm29566283wrh.81.2021.07.01.04.23.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jul 2021 04:23:07 -0700 (PDT) Date: Thu, 1 Jul 2021 12:23:05 +0100 From: Lee Jones To: Hans de Goede Cc: 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, Andy Shevchenko 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, 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. No MFD API users outside of drivers/mfd please. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog