From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 896BDC11F6A for ; Thu, 1 Jul 2021 08:39:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C29C61452 for ; Thu, 1 Jul 2021 08:39:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235449AbhGAImO (ORCPT ); Thu, 1 Jul 2021 04:42:14 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:43763 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235356AbhGAImN (ORCPT ); Thu, 1 Jul 2021 04:42:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625128783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u9jAbsencUUDdK5AITgRqpk4mB/AMqBStj1da/54uyc=; b=f96rBK/TT4CLe0Q34bDYMJ2tHFBcg5r9qNK/eNwZgO5R3Tggat82bH4DFuKrE9pXKlK35z VTNVateNQ+qMhXZN3jy2gFT3wWFnPLOQH7peWeeDTM4cksadIIVagLvQv7PyBMOvawutVd nASmf6R9qjaGeTNfmoUzzSMxS8VOg3A= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-558-UuPCW9mWP9aMSAYALqx_jA-1; Thu, 01 Jul 2021 04:39:41 -0400 X-MC-Unique: UuPCW9mWP9aMSAYALqx_jA-1 Received: by mail-ed1-f72.google.com with SMTP id cn11-20020a0564020cabb0290396d773d4c7so2338316edb.18 for ; Thu, 01 Jul 2021 01:39:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=u9jAbsencUUDdK5AITgRqpk4mB/AMqBStj1da/54uyc=; b=oo/ZE5QDogREGuFYTxgtWzLl6KpGmlv68qopUaE71KB3w/I5/bZvHrTKiNHF+6suo8 0M9r0tzaQ3e8y/4k6X8aquQUJUafQad18RPdSeOBcEnnf7uxHeafmqUfdGzKnwccnj+L o3fZQ1DAK36/bkH2GN9wpJESliXeHnw2nJhnJuqOd5OsPGNJZJu70+UYSgs15PVOuUTP Yql9D0SnqbYSb+XlfeuH4j1FKftfpFZ7Z+vJuGom/bApzOQmevysZNKZYVioaH+Zvc9o I2FAuX9xmgjHsuXDCTYk1aYLxyHtQwDl01bD7COU4JGKVBrNJU7Ld+a/w8QDgHRPxtNb fTmg== X-Gm-Message-State: AOAM533N+pMHiVVLihltYI22apgCYYC3A1AD1SdrUeQhSt05H5u9t4t3 LvQqXnHsruBBsPPL/SHw2uEP9uroEaqKUuVZtGuOvHXTOOgGcDr5IVfQbpGLhPfJETz1fZePtuK 2vxIWaprRNy4u2MUGoGith6dz X-Received: by 2002:a05:6402:176f:: with SMTP id da15mr51597390edb.334.1625128780805; Thu, 01 Jul 2021 01:39:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjM9KkxtshOjO1NdUjE9y5FxAxm9cYgDU4y0IKWEB3WTjlpt1wyNiLoAcJdRJ2Lm+4zJaUzQ== X-Received: by 2002:a05:6402:176f:: with SMTP id da15mr51597374edb.334.1625128780670; Thu, 01 Jul 2021 01:39:40 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id q5sm10322484ejc.117.2021.07.01.01.39.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Jul 2021 01:39:40 -0700 (PDT) Subject: Re: [PATCH 2/4] MFD: intel_pmt: Remove OOBMSM device To: david.e.box@linux.intel.com, Lee Jones Cc: 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 References: <20210617215408.1412409-1-david.e.box@linux.intel.com> <20210617215408.1412409-3-david.e.box@linux.intel.com> From: Hans de Goede Message-ID: Date: Thu, 1 Jul 2021 10:39:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Regards, Hans > >> >> I suggest Andy should also be on Cc. >> >>>  drivers/mfd/intel_extended_caps.h          |  40 ++++ >>>  drivers/mfd/intel_pmt.c                    | 198 ++--------------- >>> --- >>>  drivers/platform/x86/intel_pmt_crashlog.c  |   2 +- >>>  drivers/platform/x86/intel_pmt_telemetry.c |   2 +- >>>  8 files changed, 270 insertions(+), 186 deletions(-) >>>  create mode 100644 drivers/mfd/intel_extended_caps.c >>>  create mode 100644 drivers/mfd/intel_extended_caps.h >> > >