Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5985673ybc; Wed, 27 Nov 2019 12:56:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzKgMw/oE7EHp/i9p2Qnwhtg0vKuEumBVb9q92ODlufvFQY+cTEBK9b/ybyADOEcEIs77zo X-Received: by 2002:a17:906:7750:: with SMTP id o16mr51161482ejn.224.1574888180490; Wed, 27 Nov 2019 12:56:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888180; cv=none; d=google.com; s=arc-20160816; b=FPCLPXxqJlb04WUWnU8VptRqguLUVSmsIlecbT5Q9a/1l2/B2myPf7Xx7/Quc0cmYm VpiEsANcA7whrTeMf8M18ksVGKimrGyblFXdu6lqQzZVfd1JQ/zXjLV+R7Ienp3qgZ8d cKPIgqZGXFa62pJKtrOswsagdqyBOOzqF/kZDo3hv2309RQLcRedWkJVujMD5iJqdiV/ oY7Y+B6G1RufGCfRkfFtYOAL0Q67ZbWeg44uQsC1XPeFQIlpr3RKkzTYTDyGWGciJ8Pt ZbMlSSZ+MdBNov9pH3i3aeW9UAnBJ4lAe92onQpDJQn3+gsk5QQvrd2Yz+CAbsFeHroX asvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MUBtXYK86nyPhPwdGg7yEovYLfbJvjLQdVQ+2TovXts=; b=GewlbmrALXj1b1ZN46EO8APdsvfvmf+CQ7GGwO7XEbJidR/tUKTvRHi/eEPreRSvAf sCRI1zas/u0nFebABRkMUVCNgWcaJdI/C7Z3NLvi3d0TpVFTRD8gxHR2Ehin+rj+WADJ ovs9v7crqu2DpAF8+RWOaPwIUmxPGqKA13A150mTxiIX/W/gwv+NiQvh7Ld/sgWetjxa /vUebqGD6dGevmzmUatlmUwJD+uYWuN7UprL/6KU8ryG6K8OrLDrJec/pUzXHZyu7u+f VYUXfMVeBRTE4zPbxOWoBgnTTtmVMmCo9tCovxX095S+ww4EVYYvWS7JS5bYpiACysye ZXsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="U+V7X/td"; 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 ks14si9914856ejb.87.2019.11.27.12.55.57; Wed, 27 Nov 2019 12:56:20 -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; dkim=pass header.i=@kernel.org header.s=default header.b="U+V7X/td"; 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 S1730235AbfK0Uwg (ORCPT + 99 others); Wed, 27 Nov 2019 15:52:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:40176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729471AbfK0Uwe (ORCPT ); Wed, 27 Nov 2019 15:52:34 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B61AB21847; Wed, 27 Nov 2019 20:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887952; bh=hZs1P9plDIJ8W2ENJ7RonhFFJIGU5K6ekGDrHHqkUQw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U+V7X/td3v90QbR1GRkpSG5oZLMyusQORKuKRbSEq5lUxNuyOKD7YNrP+5vToQ7D4 j+Us0cJ8VjnTaEza/yaJbG4T3KwEf/QOox1PpCplbyr3mYEF7lM0gjsf+pmBUmdjbs 0ws7jkCfizatSlE8n43RRvVVU6AaUhH6xs7DuwgU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kishon Vijay Abraham I , Lorenzo Pieralisi , Sasha Levin Subject: [PATCH 4.14 158/211] PCI: keystone: Use quirk to limit MRRS for K2G Date: Wed, 27 Nov 2019 21:31:31 +0100 Message-Id: <20191127203108.891006511@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203049.431810767@linuxfoundation.org> References: <20191127203049.431810767@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kishon Vijay Abraham I [ Upstream commit 148e340c0696369fadbbddc8f4bef801ed247d71 ] PCI controller in K2G also has a limitation that memory read request size (MRRS) must not exceed 256 bytes. Use the quirk to limit MRRS (added for K2HK, K2L and K2E) for K2G as well. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Lorenzo Pieralisi Signed-off-by: Sasha Levin --- drivers/pci/dwc/pci-keystone.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/dwc/pci-keystone.c b/drivers/pci/dwc/pci-keystone.c index 9bc52e4cf52a0..3ea8288c16053 100644 --- a/drivers/pci/dwc/pci-keystone.c +++ b/drivers/pci/dwc/pci-keystone.c @@ -39,6 +39,7 @@ #define PCIE_RC_K2HK 0xb008 #define PCIE_RC_K2E 0xb009 #define PCIE_RC_K2L 0xb00a +#define PCIE_RC_K2G 0xb00b #define to_keystone_pcie(x) dev_get_drvdata((x)->dev) @@ -53,6 +54,8 @@ static void quirk_limit_mrrs(struct pci_dev *dev) .class = PCI_CLASS_BRIDGE_PCI << 8, .class_mask = ~0, }, { PCI_DEVICE(PCI_VENDOR_ID_TI, PCIE_RC_K2L), .class = PCI_CLASS_BRIDGE_PCI << 8, .class_mask = ~0, }, + { PCI_DEVICE(PCI_VENDOR_ID_TI, PCIE_RC_K2G), + .class = PCI_CLASS_BRIDGE_PCI << 8, .class_mask = ~0, }, { 0, }, }; -- 2.20.1