Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp322935pxf; Wed, 17 Mar 2021 06:17:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweG1sjbx1mWa5X6mkBlsgZvcm2vq3ggU2TmM/O3uEam7CqlKXSuttS7vlZXsdKDZI8tmHK X-Received: by 2002:a17:906:4cd6:: with SMTP id q22mr35612070ejt.469.1615987046171; Wed, 17 Mar 2021 06:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615987046; cv=none; d=google.com; s=arc-20160816; b=D1HltNOfU+JXa59CqmCA6q13BK0VjiTXukX/V6SK5Y5PUCt32IBjD5yUS9ezOQrZBp /tuomn+wscknSXB25J87DYCLcclvfIWkmJzlOPyx+ZwI+xNnwQexI29oS2XhscXi4uYU o2IMcoP8c77jtdDMJGEOnRucK2nDRgTCkExI2RLop2FczVRNPiyQVQn4CHQhljaHByzP MmFMbuKy30OhHOPuX1I6c8vy0KiL+7Kh40Dd8Yx1a6Q+H72Fs0wqt1YgfVj8LrBz2tCG E0jdvfKPRtATydX9ItAbuuEqqiPzXPDDjoRpNr7VdWCWQu+h6QLoSUlupDZTnr6YcBk0 4VlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=z/0RVjPVB6nhY++viO0cqAxcncQ8evyw2P8L1LGfuMM=; b=DvIvIsffGWVMk+kTVIeh5q933T4GLm/eRe2+5dz63Deqj0nUQQGjgWGVsfyM4HtEqn sxmlA7gC+nBuoq0sPZdHytWNVVu03G9ZRPCGE7MWg5TayoTzE7WOWQP4kXALbjktQTmH Bz7obUtbCw2/M+WEceN+e3xbDTLHB8Doy9BKjkapOAenIQ1y4gP9s0rARaSloeogXZ+a vdP3senmKI+MJNDwYbCDdUGnFe/bqB5Q4SKNac6n72QuszjAcZUxzJpXYTvJv4O2g985 uLie3s9jusTRkzS2NTHD8KB/8GDWL8gEW9g1iT4XRss33vXM3WaXldcw/njZwErOJ1Pq xO+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GnN6XnFA; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si16805925edc.181.2021.03.17.06.16.59; Wed, 17 Mar 2021 06:17:26 -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=@ti.com header.s=ti-com-17Q1 header.b=GnN6XnFA; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230430AbhCQNPp (ORCPT + 99 others); Wed, 17 Mar 2021 09:15:45 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39210 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbhCQNPm (ORCPT ); Wed, 17 Mar 2021 09:15:42 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12HDFVBU053849; Wed, 17 Mar 2021 08:15:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615986931; bh=z/0RVjPVB6nhY++viO0cqAxcncQ8evyw2P8L1LGfuMM=; h=From:To:CC:Subject:Date; b=GnN6XnFA5VAlNAURY/XnkRI/eTJhT7DP6fS4DLdJVaIu2DbU0RvbjCrTtszSXOgZ6 O4M4tI0JToTHy65MJ7Fo6GqKyIY0Zq+g5YctlUx/B3s2XkBnaHoSCTN9ebm+9IiCuN u6g2Ritvl639rJqJKzfPCo6OOIaKJeyw4KcBCXU0= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12HDFVb4001100 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 17 Mar 2021 08:15:31 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 17 Mar 2021 08:15:31 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 17 Mar 2021 08:15:31 -0500 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12HDFQLo024146; Wed, 17 Mar 2021 08:15:27 -0500 From: Kishon Vijay Abraham I To: Lorenzo Pieralisi , Bjorn Helgaas , Jonathan Corbet , Rob Herring CC: Kishon Vijay Abraham I , , , , Lokesh Vutla , Subject: [PATCH] PCI: keystone: Let AM65 use the pci_ops defined in pcie-designware-host.c Date: Wed, 17 Mar 2021 18:45:18 +0530 Message-ID: <20210317131518.11040-1-kishon@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both TI's AM65x (K3) and TI's K2 PCIe driver are implemented in pci-keystone. However Only K2 PCIe driver should use it's own pci_ops for configuration space accesses. But commit 10a797c6e54a ("PCI: dwc: keystone: Use pci_ops for config space accessors") used custom pci_ops for both AM65x and K2. This breaks configuration space access for AM65x platform. Fix it here. Fixes: 10a797c6e54a ("PCI: dwc: keystone: Use pci_ops for config space accessors") Signed-off-by: Kishon Vijay Abraham I Cc: # v5.10 --- drivers/pci/controller/dwc/pci-keystone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c index 53aa35cb3a49..a59ecbec601f 100644 --- a/drivers/pci/controller/dwc/pci-keystone.c +++ b/drivers/pci/controller/dwc/pci-keystone.c @@ -798,7 +798,8 @@ static int __init ks_pcie_host_init(struct pcie_port *pp) int ret; pp->bridge->ops = &ks_pcie_ops; - pp->bridge->child_ops = &ks_child_pcie_ops; + if (!ks_pcie->is_am6) + pp->bridge->child_ops = &ks_child_pcie_ops; ret = ks_pcie_config_legacy_irq(ks_pcie); if (ret) -- 2.17.1