Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5998554ybc; Wed, 27 Nov 2019 13:09:05 -0800 (PST) X-Google-Smtp-Source: APXvYqzJsc1eTg4oYpqNV5ndVZMuUk4kywGZpAEl7VjyAaB8wJzCmm0q2BBS6mPc4aqlZc8uWmge X-Received: by 2002:a17:906:5c4d:: with SMTP id c13mr50531702ejr.80.1574888945279; Wed, 27 Nov 2019 13:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888945; cv=none; d=google.com; s=arc-20160816; b=EHaUBOEHlgwMOCPNfA6ErKiXFDBinrkRwkU18ZQpBY5JWzOPwK8m9c+QnXJLN7+o0k oE24V3iCtsKDZE5DAOVjgtw/wCMMxRXclqQkFfu/HyzCPNB8NnEjW5c2ZDGirgrCGkBv 5urbUVjBgKzezGXVqIiMElrxkOr0q3I/jkqwEqXYIUmZZe6qO5w2WjTu7R/eLSARLjb1 dz2lut5VG66oDtYGPYD3Bex6m0MTE6nHVF2/CyoD3zIjArmXEJPBRz5XVW3rsBmzLBFA c4Im+UMOZFUukBVC8LFFjwI0yH0/VfZ0j4Gv5QjwPENItuqnHWyBR9w3y5z1ZXXT4Oei irMA== 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=LpbZbXvFudzTswyh0z4R2eNTTA8nPd/KA0E5BoeHrVsuzwPROio9/fsOuJkPDAb4AK M90SkkdVDk+eUp6vyXiTHbIp+hdnR9eioaKSSK1f/Ec+ANJisXgzozAyzOoL/AU0G4CX SWqdVU5ixb//bPW+P+hFRYxSKizaCOSbsIkxcY87oUvJsbPD3FFKdcR4p+jY/AWNM1D+ kqf2jGjoWULf0ydLRth3XkiJYu2XoqxXFO1g3JSrVm8qQx5C94qr+pbWM5OW/ptMTAsp vmBneqRWqlSicFP5PoLX9xcApEcRgTpmFAqJpJonHI9ME8PIbKW61t/VX4NDGBv1bJ0Q wy8Q== 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 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 f13si11754777edf.164.2019.11.27.13.08.42; Wed, 27 Nov 2019 13:09:05 -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=e1XgCzfa; 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 S1732301AbfK0VFe (ORCPT + 99 others); Wed, 27 Nov 2019 16:05:34 -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 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/controller/dwc/pci-keystone.c | 3 +++ 1 file changed, 3 insertions(+) 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, }, }; -- 2.20.1