Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp219045pxh; Wed, 10 Nov 2021 00:28:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJx75faNlKFPjGo6CldvL0wyK9d2Rs2FYKlN5GKUvduBgscMFJBwPDKe0Sk9vVPe8itfSi9t X-Received: by 2002:a05:6402:2712:: with SMTP id y18mr18827577edd.212.1636532888174; Wed, 10 Nov 2021 00:28:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636532888; cv=none; d=google.com; s=arc-20160816; b=khxTBWMm18k6ZmdP+Q+O0COqJIJis6j6j1U+PKLVoJq1DyhgP10PQAXf6NdOpyWGij yBPlph2Tvqgv8d1dHOG6LfwEwPrU5CskN2Ksb1mkiKFsGQF+CVsaEY0v+ge29NaK+aVK Ea3oCkc3MP0MP9tmRgJ8q14fREahgqlC0O0YILKvIf90OHodRr/iT3/5balruXlTCXsZ pVa7WYdd3BM6fAuGwDfIRlgyn6al1Ruo/Kvh4unBJIOwZU7bmCxRfWF7A2cA99lCRMrn BRPjWLF4PFKf5zRl65qWqTG/aACb3IKG4uYvzIqO+aQRBEzRGnJM+H7lLCsjtBLZlwhL pL9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Av7Qz5sEMcpTmM//x1eiEc79WC2YGGErC5aX5mpmfGs=; b=GbQL3j+Bx9ZpIXSh1tLU0Ig/8gkImEnZhcmkksX8jjvRhLmmg1cNWodPfUTEm+z2XW wRdNzy12iOsD2W4OKWSqWx3cAGvRKxE8mA8t1kjpwlLJMe3atQ3wZUBd76AEVbnCFWNk drLzaWbv8t5J7eGmpk2NwHpX+LsHk4sPKsGDmBfGK4kF/p0ejX7ZetHItdk5Fz1AfPFB 16iPwwTSqtX+S/WecX47ne4TeP9sdR2xRbDg53kfCbceEVtVY5Nee/sVhQoO+XJrnrK7 y3h2MMvQh9Y3x91I53MPtCQzqPCM9Cqo7MyYGXhRpVpPf+jqDq4ICxgqJUOc52SabvkX okCg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o1si63401426ejy.319.2021.11.10.00.27.40; Wed, 10 Nov 2021 00:28:08 -0800 (PST) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230205AbhKJI16 (ORCPT + 99 others); Wed, 10 Nov 2021 03:27:58 -0500 Received: from mga14.intel.com ([192.55.52.115]:24874 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbhKJI15 (ORCPT ); Wed, 10 Nov 2021 03:27:57 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10163"; a="232869524" X-IronPort-AV: E=Sophos;i="5.87,223,1631602800"; d="scan'208";a="232869524" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2021 00:25:01 -0800 X-IronPort-AV: E=Sophos;i="5.87,223,1631602800"; d="scan'208";a="492009144" Received: from smile.fi.intel.com ([10.237.72.184]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2021 00:24:59 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1mkiuV-005LpB-Jm; Wed, 10 Nov 2021 10:24:47 +0200 Date: Wed, 10 Nov 2021 10:24:47 +0200 From: Andy Shevchenko To: Tom Rix Cc: Moritz Fischer , Matthew Gerlach , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, Wu Hao , Xu Yilun Subject: Re: [PATCH v1 1/1] fpga: dfl: pci: Use pci_find_vsec_capability() when looking for DFL Message-ID: References: <20211109154127.18455-1-andriy.shevchenko@linux.intel.com> <8ccc133a-fb47-4548-fee3-d57775a5166d@redhat.com> <39ac1f40-66ab-6c7e-0042-8fcdc062ed00@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39ac1f40-66ab-6c7e-0042-8fcdc062ed00@redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 09, 2021 at 10:27:58AM -0800, Tom Rix wrote: > On 11/9/21 10:05 AM, Andy Shevchenko wrote: > > On Tue, Nov 09, 2021 at 07:55:43AM -0800, Tom Rix wrote: > > > On 11/9/21 7:41 AM, Andy Shevchenko wrote: ... > > > > + voff = pci_find_vsec_capability(dev, PCI_VENDOR_ID_INTEL, PCI_VSEC_ID_INTEL_DFLS); > > > This may be a weakness in the origin code, but intel isn't the exclusive > > > user of DFL. > > This does not change the original code. If you think so, this can be extended > > later on. > > I would rather see this fixed now or explained why this isn't a problem. This is out of scope of this change in a few ways: - we don't do 2+ things in one patch - the change doesn't change behaviour - the change is a simple cleanup - another vendor may well have quite different VSEC ID for DFL If you think that it should be needed, one can come up with it later on. -- With Best Regards, Andy Shevchenko