Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4643528pxj; Wed, 12 May 2021 09:55:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDBSBC91doKMkav+KsljNt06n200gJxXhwiU9f9PvVfxnL9d7T+rCU/MBDXALHJJ/xipq/ X-Received: by 2002:a17:906:2bd0:: with SMTP id n16mr38753609ejg.110.1620838535263; Wed, 12 May 2021 09:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620838535; cv=none; d=google.com; s=arc-20160816; b=ecir1sqowrJICOYcfxm/Fzv8YFsGR7PdSe1buvxSye0ycZtvR8YdJPFBqFBGr/cuoS xRggx6APdS4rFUdvRrLAr3aEB0o5oKAAqUHq89YJts4Hoey4FhoERrNBbWVqjjHcI26t 3Iq0wf3w8Y+KWRE7BmXpsFGox+un1Win+YDlEJ9NniW4y3jleWO4hOeYTZbkYlcPpLYt AyVVtcyQFMCEAlqp2NPAbhRM7ULlQcTnDTUTgcMzE+cSRw4ki8gWrkx76YjN0XBRg0o6 fVV/t2f2pGtnm7Y/UjkAPIajrh6yVcGQ5oRLXFLsjQZnUag6F9ZhpzqbOBnkqi3KFziI MKCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Bif4NiIg28J/6hJTpVDYf+av7S2FRiJ4AuC8BTHRHzk=; b=QPS5tMGtZTAztGuvAbnWw19URxEeLHqMiw3Rjbv49d+Ze3YRD60qCc5RF/q+BO935b r0O6xzJOZkE9kb5bAhn/WZj5h7EvFUj4eFKkkxfEY5aOjqXCZ47bmJT8Eeh4R2jUK0gT Z2iwd90sEwixsiGZ96Yz252DSiiPfIpVtiZJBGfJb7Khong5JTOxemmRELHBj3Yv15Gp ZSW2RZ3OKXQQ29b4qncXaDSN2l0PFEF8/xQSXXfOqm/qHJ6FNMvisMcmL5ajy1g5oZ9S GXXIkWLBVp/KGC2sOpnyqMtjMH+qLRQG/LeTqLsF9pVtIlxIrs++rnV7dNtVKct3+n/H 9kDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="kPRIGa/4"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o15si56777edc.604.2021.05.12.09.54.55; Wed, 12 May 2021 09:55:35 -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=@linuxfoundation.org header.s=korg header.b="kPRIGa/4"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343683AbhELQxY (ORCPT + 99 others); Wed, 12 May 2021 12:53:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:51326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234045AbhELPxJ (ORCPT ); Wed, 12 May 2021 11:53:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5405961A13; Wed, 12 May 2021 15:27:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620833221; bh=WPxUwQe8u99ofw6ZGE11GzGFazsZ1tTEFDYvN+gAbSQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kPRIGa/4/anG/7ga6wY/ogx9WjCtSUJxlPbOXjRIMR6dZbuOPjv5yMBBA9dDJt2v1 6yjNAwXcfBQmol0llgCDx+AwI1UKGQs1sy+WN8jgojQ6GWmXfCB7TnHLxEPsQL/14c OgeG9AkRi2/AQJZFnGO69S4Y4sc/WrkD+NaOaCF8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kishon Vijay Abraham I , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= Subject: [PATCH 5.11 031/601] PCI: keystone: Let AM65 use the pci_ops defined in pcie-designware-host.c Date: Wed, 12 May 2021 16:41:48 +0200 Message-Id: <20210512144828.849363854@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144827.811958675@linuxfoundation.org> References: <20210512144827.811958675@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kishon Vijay Abraham I commit 3d0b2a3a87ce5ae85de46c4241afd52ab8b566fe upstream. 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. Link: https://lore.kernel.org/r/20210317131518.11040-1-kishon@ti.com Fixes: 10a797c6e54a ("PCI: dwc: keystone: Use pci_ops for config space accessors") Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Lorenzo Pieralisi Reviewed-by: Krzysztof WilczyƄski Cc: # v5.10 Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/dwc/pci-keystone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- 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(stru 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)