From patchwork Wed Nov 27 20:31:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180328 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp6638904ilf; Wed, 27 Nov 2019 12:52:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyvtKnEn7+Ys8ioNwK9crl3UNDlM7Emt0crlB2EZRzwf8C/rVRSmvOijh5FN1SBY6ikbGlW X-Received: by 2002:a05:6402:1a50:: with SMTP id bf16mr34299150edb.116.1574887956127; Wed, 27 Nov 2019 12:52:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574887956; cv=none; d=google.com; s=arc-20160816; b=y5I11ETjBLWN+PcR2QTy/A/aAa81FyNCfFoewwRQufcgrdPc7IV+YLhj/vj2lj6Z2K wC/ePGQz+RgZ1766R9JCAbqphThRTTO2Mz5U584WsSOG63wJx4nJmUNqfVGSRQNfbRGw o/4qEVcpZY7kPxYzn15Wbl7cwlqM2T5jXmDhseohLwMOOw6EtQDSXbu5Rip964yjqFyT IBCp/lc8Xh6epfe5USUGAjfYnhVn85fqnRsH/46MtntDDibsIflNbYvvN86s0d99ugKV Xx5VfMyyTNzWkFOhxXhnuIq1ZmRhkfvLx6wIeJwmxHBz36MLUXLHZyqy1ZMONfh5wV74 FN4A== 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=PpSsBfQ2lepHDAvciU0qPp/2k2/+DbAqMaKV0FBtxFegkkMVEI/tCnAkpnvZPGa6dT l2ctposIXeOnlOwTWGb9rdyvXNCCrWn7HcpNWmAlqS/FhmIwQrYiN7/AJO57D/k6urFI LNEd3Rdqiig4BK68nEyi3l2ZIlkh0JohFAbgKyRzGRRxw4T5ZZpa7+CXMF/KVzA3GSDA xlEQ/12j6/PeZhlyCacw4x3Ia/UtlabzHlrfNMDX12CFSCfOdSq1dvq8syacoezAgejT TtdrwB/9zAu+02tSBYwbh5fThmbXX15q/GKc+ldlSyzY/8LBM7bAEwOitV0bf8POneOA myDQ== 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 stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 e12si1143020eja.194.2019.11.27.12.52.35; Wed, 27 Nov 2019 12:52:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-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 stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729483AbfK0Uwf (ORCPT + 15 others); Wed, 27 Nov 2019 15:52:35 -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 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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(+) -- 2.20.1 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, }, };