From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA9FBC352A3 for ; Thu, 6 Feb 2020 19:24:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B60D120659 for ; Thu, 6 Feb 2020 19:24:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581017083; bh=LEZ4Ymx0IOm0Q+QtTUuTqBbLMJA/lILgh2cL8H9HxW4=; h=Subject:To:Cc:From:Date:List-ID:From; b=ekyuPrqr61FdtumOnvhCIMP8RTICdwRezXOpysEaMY/Kbc+MVLoAee/NcdzQPxhj2 iGT0dmzRIxhFgprCM2hJyLinyfu/xn9ex2+yAUNjAREL6b5w7QmCOxnrZGf4j3B7MW Z5XNqkN9++OKKbnLQ3UP4KXrdCcCihn/4W92752U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727949AbgBFTYn (ORCPT ); Thu, 6 Feb 2020 14:24:43 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:39367 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727738AbgBFTYn (ORCPT ); Thu, 6 Feb 2020 14:24:43 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 6B3EE21DC6; Thu, 6 Feb 2020 14:24:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 06 Feb 2020 14:24:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=4ztaDo pn73hTjDXY3iqr9tlJSKn8Xyk+g/OBX0iNdWA=; b=o6cuuwrGyFAlhX4HUARnmQ V+Q6ZW6WY92Km/SFkqirhOdPXE7Nm+tC+t6D1ma/OMBgZZ1oJPK63dbj9qX8cLbd YTrNKyQUtrVi8832QLFn+y1K7WIXL/q4xAJ/cR/e5GNKybDi5O0Z0kRGUR4743ov Y3keBDlZSrXSaqAyz3yJfAzMDvEjIf4vpD6VhrZCnAaJGJxVJRdIR6b0P20ow4UJ XEKUP/FIyu9O32fDJ0Agytd9pTS6fvkK/hfUXuI51kEPVW5tYiZB6ZqaAWOFxNKQ a0DnNF1ybFi1jnw+jR5UuvxC4mH9pN+HYDosV2avjITST8mmGuV7DYLVzDsc28mQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrheefgdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecukfhppeekfedrkeeirdekledruddtjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 0CFA030600DC; Thu, 6 Feb 2020 14:24:41 -0500 (EST) Subject: FAILED: patch "[PATCH] PCI: keystone: Fix link training retries initiation" failed to apply to 4.9-stable tree To: monakov.y@gmail.com, andrew.murray@arm.com, lorenzo.pieralisi@arm.com Cc: From: Date: Thu, 06 Feb 2020 20:06:45 +0100 Message-ID: <1581016005161100@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.9-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 6df19872d881641e6394f93ef2938cffcbdae5bb Mon Sep 17 00:00:00 2001 From: Yurii Monakov Date: Tue, 17 Dec 2019 14:38:36 +0300 Subject: [PATCH] PCI: keystone: Fix link training retries initiation ks_pcie_stop_link() function does not clear LTSSM_EN_VAL bit so link training was not triggered more than once after startup. In configurations where link can be unstable during early boot, for example, under low temperature, it will never be established. Fixes: 0c4ffcfe1fbc ("PCI: keystone: Add TI Keystone PCIe driver") Signed-off-by: Yurii Monakov Signed-off-by: Lorenzo Pieralisi Acked-by: Andrew Murray Cc: stable@vger.kernel.org diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c index af677254a072..d4de4f6cff8b 100644 --- a/drivers/pci/controller/dwc/pci-keystone.c +++ b/drivers/pci/controller/dwc/pci-keystone.c @@ -510,7 +510,7 @@ static void ks_pcie_stop_link(struct dw_pcie *pci) /* Disable Link training */ val = ks_pcie_app_readl(ks_pcie, CMD_STATUS); val &= ~LTSSM_EN_VAL; - ks_pcie_app_writel(ks_pcie, CMD_STATUS, LTSSM_EN_VAL | val); + ks_pcie_app_writel(ks_pcie, CMD_STATUS, val); } static int ks_pcie_start_link(struct dw_pcie *pci)