From patchwork Wed Nov 27 20:31:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180340 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp6652263ilf; Wed, 27 Nov 2019 13:05:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzCMCOHujqfA834OyNwblObK/jf8jBBYuIUuIB72XtzzzIysw2gXT7BIgUAO6j3WyK7Dsj2 X-Received: by 2002:a50:9b1a:: with SMTP id o26mr33871793edi.208.1574888734380; Wed, 27 Nov 2019 13:05:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888734; cv=none; d=google.com; s=arc-20160816; b=oVwvpgvYwou3AEriC2p0NvGlqDoFtv/ygWWuOtq34lFWiPYc933A2h6w7qaXyh/XcP SQXsZh97SEiHoKyGJNPDWwz1/l1vtZx3Aux/1uH+Uh5v2LhKR5TVveCtgL6t6Le7/a5A IIt68iG+xiAGT8+taQoTKqGBB688GZimwJOM4u7kjvNYb9aYar9zTITNQ749XxNHdl7f 4axv+TzQesBcOhNFGr1hUif9I2XwtAZLpksXOPttOxibImWSix7Vn94fjVP+XGC+C/A7 lwxnnE4BqPg3BAYNZu/WZRUInoIH4bzGToCMVQdF4uNu77U9BCplGMiYTR9ZN9nVHz9k +zZg== 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=l8g7OZpanZ5lmJS2c04LXST/25kq4mPXwUsA+g0xfCY=; b=xvpCk9YUlC7T6mJtd5JMylWEL+O7dsViheq8zIM+NYKccLQygWphrGrYHPWVyI8fcN 6IcMR8xkDC61DfRnwwz+IlXB4VetLZ8iXPwkINlX/ZRLFg7QPy55vdbkaO9GMLOH05gL 3TfDC6tID2khQrcuewqqr+MZy6YhvVCt9bx5NeRlmvLBdjUUt3j/7GU5S0GIhm2/Z0a8 OMS6vzvcTEL6quM6OAwan97Y3yT+nYvq4xDMiGqNQveEInQGhiXKu7B2GRkoZgkqmiAl 2k7BSmCTKJZ1vVORS+8IH6dsDT9cGUtzHCFLIZl0D91q34kPlQeNBg7FyVdiI/F2PCv4 uZEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e1XgCzfa; 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 9si10259580eju.352.2019.11.27.13.05.34; Wed, 27 Nov 2019 13:05:34 -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=e1XgCzfa; 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 S1731403AbfK0VFc (ORCPT + 15 others); Wed, 27 Nov 2019 16:05:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:59258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732295AbfK0VFa (ORCPT ); Wed, 27 Nov 2019 16:05:30 -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 C1EB521741; Wed, 27 Nov 2019 21:05:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888730; bh=9OXAevLG4BgzRbZksXQkB08q/O8Khxr4GuRBGW5lZdM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e1XgCzfasZOKGXBrSvi4Nubr1Wg3CfPSNT465GtSCC7y7I2DB53IjO5QOBlBWl3KB 6eHJ0jZf2LLW5cCWKfx3LZf5mUvNBOjbr7hhxGml8OWpHqqSrTuMYlRZhyNkwk+uuG Nz8bOqtw/usHxMDx4/UyApi+bm28WRfIEE4asIo8= 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.19 248/306] PCI: keystone: Use quirk to limit MRRS for K2G Date: Wed, 27 Nov 2019 21:31:38 +0100 Message-Id: <20191127203133.038833312@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@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/controller/dwc/pci-keystone.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.1 diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c index 5e199e7d2d4fd..765357b87ff69 100644 --- a/drivers/pci/controller/dwc/pci-keystone.c +++ b/drivers/pci/controller/dwc/pci-keystone.c @@ -36,6 +36,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) @@ -50,6 +51,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, }, };