Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4786975ybv; Wed, 26 Feb 2020 03:07:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwp2SThm/0BUeOB+OCQauGll1ne1hlehmjl+Yai1l2vL5P86FRaNdFnJZt5SbW8qZ48xMmw X-Received: by 2002:a05:6808:7c7:: with SMTP id f7mr2711073oij.58.1582715261084; Wed, 26 Feb 2020 03:07:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582715261; cv=none; d=google.com; s=arc-20160816; b=q/YNWP4xQjugyaXriBHrA/Y+/s49bcR5jtU8+Ne7A+rL8y9tSW0etRp9h0bbcmsIch TS/JuUvh3YCC2qjg/bvE2RueMa2hjvsa6PkSA87ZU6gS6xTPURXJ1GwMSPIl1IqkB9wW fnp3JdURL0BI97sZzFTfSvoegrFHM6xYzVcaDoqmrBFdaFixu84Rr/B1hoQ4U6/nbdD5 +beJ+StVU8IxMxPIQqLKbINo/q8d6UOURqLuiBW7QfwsvXfLjyhxuco/kAJunghZGMp+ JOJGioy64y5HHgybvnqS7DBbL1teHy15M2Agq8aFofz6o1cG5cHbAfWYxsJV+/Hqx3vV qpVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=E9xTAVrrIqS2g972aBNvaNh5pXxTEaq5twdNESaZo3o=; b=bUwilSoBqSrdc4uI+ST0pr8hoz6cOk4kWZotFYtCOtt2m3U60wWRfkPWMCkEC7+wtT HS8XSaQiI9N8PcFJhzZi64IvYIjsIHAHFg0I9KlS1DBHl87oEVtocyUZbnDDQN1EFLYF VGBVMoOy0/Si/bl/55evUVcus0RvQ/CzWwvJ5W6cI9osbOPQq7Y9Sou2G/q4dfQ+Jl2C nVP+ew4z+byokkJX6GuZrI5La2980SFFbpXQUCwRtRHK1qog3cys2gQiLpRx/g7ReNwb dFwa9EICrHOu625b/ySbTDdyUJNYDFPQ6025sPngUJcWX40mitqxH9GRRsPcB3uB15gU M6pA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si896760oic.225.2020.02.26.03.07.27; Wed, 26 Feb 2020 03:07:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728056AbgBZLF5 (ORCPT + 99 others); Wed, 26 Feb 2020 06:05:57 -0500 Received: from foss.arm.com ([217.140.110.172]:33972 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726425AbgBZLF5 (ORCPT ); Wed, 26 Feb 2020 06:05:57 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 40A841FB; Wed, 26 Feb 2020 03:05:56 -0800 (PST) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0B7463FA00; Wed, 26 Feb 2020 03:05:54 -0800 (PST) Date: Wed, 26 Feb 2020 11:05:49 +0000 From: Lorenzo Pieralisi To: Stanimir Varbanov Cc: Bjorn Andersson , Andrew Murray , Bjorn Helgaas , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Marc Gonzalez , stable@vger.kernel.org Subject: Re: [PATCH v2] PCI: qcom: Fix the fixup of PCI_VENDOR_ID_QCOM Message-ID: <20200226110549.GA16284@e121166-lin.cambridge.arm.com> References: <20191227012717.78965-1-bjorn.andersson@linaro.org> <20200226102255.GA13830@e121166-lin.cambridge.arm.com> <4e1587e9-352c-a2de-d136-18506500641d@mm-sol.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4e1587e9-352c-a2de-d136-18506500641d@mm-sol.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 26, 2020 at 12:56:23PM +0200, Stanimir Varbanov wrote: > Hi Lorenzo, > > On 2/26/20 12:22 PM, Lorenzo Pieralisi wrote: > > On Thu, Dec 26, 2019 at 05:27:17PM -0800, Bjorn Andersson wrote: > >> There exists non-bridge PCIe devices with PCI_VENDOR_ID_QCOM, so limit > >> the fixup to only affect the relevant PCIe bridges. > >> > >> Cc: stable@vger.kernel.org > > > > Hi Bjorn, > > > > to simplify stable's merging, would you mind helping me with > > the stable releases you want this patch to apply to please ? > > > > We've to have this in the patch: > > Cc: stable@vger.kernel.org # v5.2+ > Fixes: 322f03436692 ("PCI: qcom: Use default config space read function") Done, applied to pci/qcom for v5.7. Thanks, Lorenzo > > I will apply it then. > > > > Thanks, > > Lorenzo > > > >> Signed-off-by: Bjorn Andersson > >> --- > >> > >> Stan, I picked up all the suggested device id's from the previous thread and > >> added 0x1000 for QCS404. I looked at creating platform specific defines in > >> pci_ids.h, but SDM845 has both 106 and 107... Please let me know if you would > >> prefer that I do this anyway. > >> > >> drivers/pci/controller/dwc/pcie-qcom.c | 8 +++++++- > >> 1 file changed, 7 insertions(+), 1 deletion(-) > >> > >> diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c > >> index 5ea527a6bd9f..138e1a2d21cc 100644 > >> --- a/drivers/pci/controller/dwc/pcie-qcom.c > >> +++ b/drivers/pci/controller/dwc/pcie-qcom.c > >> @@ -1439,7 +1439,13 @@ static void qcom_fixup_class(struct pci_dev *dev) > >> { > >> dev->class = PCI_CLASS_BRIDGE_PCI << 8; > >> } > >> -DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, PCI_ANY_ID, qcom_fixup_class); > >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x0101, qcom_fixup_class); > >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x0104, qcom_fixup_class); > >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x0106, qcom_fixup_class); > >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x0107, qcom_fixup_class); > >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x0302, qcom_fixup_class); > >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x1000, qcom_fixup_class); > >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x1001, qcom_fixup_class); > >> > >> static struct platform_driver qcom_pcie_driver = { > >> .probe = qcom_pcie_probe, > >> -- > >> 2.24.0 > >> > > -- > regards, > Stan