From patchwork Wed Nov 27 20:31:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180318 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp6631238ilf; Wed, 27 Nov 2019 12:44:00 -0800 (PST) X-Google-Smtp-Source: APXvYqyQYODI/GrRjr1aFlsWU7lAdRs/J1ggE7h65H10KXouqokF9JCqT9/Tyo9t4JyjxbJcHcjN X-Received: by 2002:a17:906:5a92:: with SMTP id l18mr50009947ejq.238.1574887440493; Wed, 27 Nov 2019 12:44:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574887440; cv=none; d=google.com; s=arc-20160816; b=Hi6rjo5eP/iljzBWn4lGv36k1DdF9AsrQlCdUc2zmm2ftdIoazrQOOryZ+g0r5bDaL YRAuw7oT5yu0Ibj75jVQMpacsOJDaC9iFoucH2lvMaIaqhsZu7JNP1aox5JyWY/yhSEw AMxKySnzKhILiQTMOloouUdCBclhwn+BWkh1V9Qguci7tdigWX2MdEU8pYyW+ahmNJT/ WvtZugTvpgISELq0NceokixxAhn+eWdciEsNVseu+OpEex8ikOnupgUZXWhTGNU5kVpk ngmj9fBuAhC5ZkazWZcjPLDHcQGrixVoLPJrgtNGIKFqzA9TL3eaYbsjUk5AxzV/QAxx xNQA== 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=6B1VQkFN+7JfUmD+mjJJsHDFAo8fueR5MxCMfdgvx2o=; b=za6f7d7cp4PSUDgeJGhoAHy+SvKJb2Zf3MuwjdBFXdM75GPmlZgHiFQ7hQPSHaRfZ3 kz+AqSOI2ilM7izXlqTB4YLhmOHroR8znjGm9n7l5vxOgAFg6ZcooHKcFIjaYK77koLF bJx70Uww26OF0zV3EHRkoszw2bhPMlbxPYTN4cndSoX3S7uJRNukEyfLC/HqUkfDPGKi eTFmfHUUFd5DD1stN+V88sb8xohQ486C2GBeKgAhjMx3CcPzBlwOXUQtCzyjz2orcmMH aKjbpz8kbJWcfOz7BjzLzpYqe9FKPQd76mTjS2joTBf9T9WHcgZwH0M++iTtUgobKykv MnXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="f8/S6nal"; 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 a15si12219551edu.427.2019.11.27.12.44.00; Wed, 27 Nov 2019 12:44:00 -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="f8/S6nal"; 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 S1729515AbfK0Un6 (ORCPT + 26 others); Wed, 27 Nov 2019 15:43:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:52416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728980AbfK0Uny (ORCPT ); Wed, 27 Nov 2019 15:43:54 -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 6759720862; Wed, 27 Nov 2019 20:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887433; bh=ANpEzvaNrgTeJe+unM5bxWbDq76vUfMBryJX1h5/v5w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f8/S6nalJ8vDCUIjWnGnSfgQFKcF1SyIBxNy5gKG8gfhWSaluzpKpi4aQT4sgYD1Z Bd8KJ/bgDmQZ58vaW3xVKMXyU628GUwZqvbiAQcCqIcuuYoml3DoDtmrSGQOTtBr3B J9PLE9Ad4s7iApQBUaVRWGODkPtzUjjShAOi9fww= 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.9 107/151] PCI: keystone: Use quirk to limit MRRS for K2G Date: Wed, 27 Nov 2019 21:31:30 +0100 Message-Id: <20191127203042.087223129@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203000.773542911@linuxfoundation.org> References: <20191127203000.773542911@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 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/host/pci-keystone.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.1 diff --git a/drivers/pci/host/pci-keystone.c b/drivers/pci/host/pci-keystone.c index eac0a1238e9d0..c690299d5c4a8 100644 --- a/drivers/pci/host/pci-keystone.c +++ b/drivers/pci/host/pci-keystone.c @@ -43,6 +43,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) container_of(x, struct keystone_pcie, pp) @@ -57,6 +58,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, }, };