Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4668493pxb; Tue, 28 Sep 2021 00:57:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKz5BSDivpItdb0Re56hbyIdJ6L4aHJODpA1kwgvlMbcX2mh4Fc9UVmw7+myItnzBQ+RNZ X-Received: by 2002:a17:903:2308:b0:13d:ec2a:2e07 with SMTP id d8-20020a170903230800b0013dec2a2e07mr3954220plh.3.1632815829855; Tue, 28 Sep 2021 00:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632815829; cv=none; d=google.com; s=arc-20160816; b=dBx2uTlpNj4YZvnDID0lCp2WoP7xC6uCJloolcNuQ8Kl6lHHDQJp+kMKomlAqTu3le Ybn7akVMI+qJ/xEzfMRW+5n0uIRZ3OX5iOV/MZTjHP4RB4KjMNSDQDeQHVgpPIT7EvNG vBlHHVIS7IdoQbQS/ZjZ0VyLBOMMKQFeLcEW2khziRdW+CIDq25kZUq3flLZ9Ad0yEcU T3vipOlNpVXIMDSpsHyWgame6Nsdpy4oVChO/4o1XtrsB5VOGjTnc8wzaTZF31MVv4fo 23JcEjbQgaR1S3cHXJ2/KbbzdUFy/ZWnBvmeD15/vUqayxWTiV6Em7qmtjUN1jeQmrN2 h8rQ== 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=f4VN/SnhPqfb/dEeJYDkJM2WbH0AefwIT+QKzstH0Q8=; b=JDEPzcS6DTX/qQ0ye38lZW2WfhK66CL2uzCSibJfs0cUQuM1w8Eu/JHXUY+xhZnQMQ sY5vXSt6h0GNlmfvmlQHGFQz6Q19Al3m9MWlxB8Toc18qnzBBcDfaQW3OEOWn0F7b99G GMz6n9SfufpgJSqu9PZNjitqt77ldnAoKd8ApaBOKIaEkYrK6oy6EZYy4yvNrbEiL+fW T1UNIoMrPL7npRY15PAcYxHxEHqFYWALiINGnJHGFdyahq0bVukhb7/1I5XpiiIJ5G2e UsBNpaO2IxyzzLQ3R2qG0zxsgernnw+4FavkpAz0Xjj5VRhJroUH9i9IkbVDo/IjBNiy ZN2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qzlQe3PV; 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 x6si2302789pjl.51.2021.09.28.00.56.57; Tue, 28 Sep 2021 00:57: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; dkim=pass header.i=@linaro.org header.s=google header.b=qzlQe3PV; 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 S239357AbhI1H43 (ORCPT + 99 others); Tue, 28 Sep 2021 03:56:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239450AbhI1H42 (ORCPT ); Tue, 28 Sep 2021 03:56:28 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D507C061604 for ; Tue, 28 Sep 2021 00:54:49 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id t8so56460591wrq.4 for ; Tue, 28 Sep 2021 00:54:49 -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=f4VN/SnhPqfb/dEeJYDkJM2WbH0AefwIT+QKzstH0Q8=; b=qzlQe3PVamgrfOedx3vzFKyEVE37BD2Pmu1oTNeTtix60+ticgm1/crdjKGDbW+DrW zUkHOtCy2iZ8E4Ux+zxwrtaNtBAYwPPeLR4xBanAU2dXq6neD9wH9wSuMUcP21JGSnPb awbXYpU3q2BOyxQ5RxVWOQH0JW60yOAGQ6LXrnjwZhsIcJpHk96T4rTJEN+pd2iwTXrw hecRYw1fC48BRlLCCqIg8YfdFgoMItU7LjO5r/N+xMRDoFVoeG7tsTpCwdJNPfVGvcWE 2dHwEL7q1uqwtOPdaw7//A9tAwqjE1i22TtFj8KDlwJh8Hoi7E5ByE6a4pl8q6HX4hyV clwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=f4VN/SnhPqfb/dEeJYDkJM2WbH0AefwIT+QKzstH0Q8=; b=Rrmb3WT2N19V7mnvYkhvHjldd01elTpx/XmZdXZsB4WuNmlQI7MIpE3oBFKPuxZzPn kumfrnmDqzblQl1Mr6GPb/btsYNtDng7JI3xiuYu8tEOllv8DQnQOJmf6+LrEB2nN4ap q+FrEgmFFCXVg1unWqIdOjuyIqvLKQra1bbwaa4WVIOxMZtsRmuebvbOCFX5PeV0//JQ FeLKk1qqOKIOP6CSOJK8wCirVnfbXhwLONt66uB+mGUzMPygF+UdRPHVzhTyUA+gn3eh KiZbYaSuVWdTriYFBrCWdQ0x3i38RUnWHtE+scVOw+mMPn5Alvkq5IjkWXB6aYIxMAdW 7S+w== X-Gm-Message-State: AOAM530DB8yGwY+AyyjIGIVnc6RWK7zq6G2vNtK7NDeaWz6SS60gdxDc TbTLv6l3FHSi3DriSV8jdyyf1w== X-Received: by 2002:adf:d22e:: with SMTP id k14mr4994311wrh.258.1632815687682; Tue, 28 Sep 2021 00:54:47 -0700 (PDT) Received: from google.com ([95.148.6.233]) by smtp.gmail.com with ESMTPSA id p10sm1375564wmq.40.2021.09.28.00.54.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 00:54:47 -0700 (PDT) Date: Tue, 28 Sep 2021 08:54:45 +0100 From: Lee Jones To: "David E. Box" Cc: Greg KH , bhelgaas@google.com, andy.shevchenko@gmail.com, mgross@linux.intel.com, srinivas.pandruvada@intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v3 2/5] MFD: intel_pmt: Support non-PMT capabilities Message-ID: References: <20210922213007.2738388-1-david.e.box@linux.intel.com> <20210922213007.2738388-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 Mon, 27 Sep 2021, David E. Box wrote: > On Mon, 2021-09-27 at 19:36 +0200, Greg KH wrote: > > On Wed, Sep 22, 2021 at 02:30:04PM -0700, David E. Box wrote: > > > Intel Platform Monitoring Technology (PMT) support is indicated by presence > > > of an Intel defined PCIe DVSEC structure with a PMT ID. However DVSEC > > > structures may also be used by Intel to indicate support for other > > > capabilities unrelated to PMT.  OOBMSM is a device that can have both PMT > > > and non-PMT capabilities. In order to support these capabilities it is > > > necessary to modify the intel_pmt driver to handle the creation of platform > > > devices more generically. > > > > I said this on your other driver submission, but why are you turning a > > PCIe device into a set of platform devices and craming it into the MFD > > subsystem? > > > > PCIe devices are NOT platform devices. > > But they *are* used to create platform devices when the PCIe device is multi-functional, which is > what intel_pmt is. > > > > > Why not use the auxiliary bus for this thing if you have individual > > drivers that need to "bind" to the different attributes that this single > > PCIe device is exporting. > > It wasn't clear in the beginning how this would evolve. MFD made sense for the PMT (platform > monitoring technology) driver. PMT has 3 related but individually enumerable devices on the same IP, > like lpss. But the same IP is now being used for other features too like SDSi. We could work on > converting this to the auxiliary bus and then covert the cell drivers. I see this as subsequent work. It should not affect this submission. FWIW, I still plan to review this set for inclusion into MFD. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog