Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4944938rwl; Mon, 10 Apr 2023 20:41:52 -0700 (PDT) X-Google-Smtp-Source: AKy350YydcXzNU31TdS8HEPjnfOdUX5opq7oG2rvbDV8Gn7sMt+UMGPjbJ7JgygSN9GCxeoxuLe9 X-Received: by 2002:aa7:d40b:0:b0:501:d18f:af83 with SMTP id z11-20020aa7d40b000000b00501d18faf83mr1010409edq.8.1681184512409; Mon, 10 Apr 2023 20:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681184512; cv=none; d=google.com; s=arc-20160816; b=yPuQyeqNA6ie+ImKIhes/dNo+icckD0W3zZyHpdD9LTj+Yx+rBttsOKyRIoxmN2hOS OCMbdsZlOAwKg9X4pD56Ku9ATVqIsixrpIYATUfrx8lgBQhAsvDYNLa7e+H8mSa4i4wH vAcFwmur71fknT2lcbcQiRuFBmOOrSri1nyy1Ui0GwqLfi179HB2PAo6/zpdQfpF+oOE yxOjLF1F07oYg6bPmnaKCPk+mRMxUOR+TtdJvXlO50ie3NoAa1oc8B0hbVcV2uqXMA/t M9iwESTvOVHkEGaaqbx8YQld5hBzYjarAGl2RGdMST+rgEOT+avBeLCKBQUAHgOK+my8 21Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6XssbBvI45R3gW5dyCZlANOptb4ng76cV2Y7e/5miHw=; b=bHO1JW3BtkaCd7tDMZcAXoS2hXc1zv1pYmreXW3x88NJmP9poYEzlP/X14jYUZAMbf wWyErY2YQCOHQGYwa+Zlj/mU+vDC2WQCf0Kn/GKRQcLPWzHtjrSnlFA8L/o4kRQyY8K0 ZDG943SgUHtDqcJ8zpXpkEqSIa5lJcGIZMN63VJLKLbQBflnRZfB+d95y7/GHNaJJld0 xtQF5ZiCcthbo609d7A6M3A6Rk0b73RMjZhzL61BxJ72sYyjG4CB9cAJquP/N73HMV4E v+8Em2rIfyXGjvv6mq9bIjGn0gNA1Lp70YRdx6JV/2nU7RoLkb0OROY9i8xyomo4dYIx ZUOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b="luqF/e1n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=baikalelectronics.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w21-20020a056402129500b0050230ec7e00si588933edv.377.2023.04.10.20.41.28; Mon, 10 Apr 2023 20:41:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b="luqF/e1n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=baikalelectronics.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229794AbjDKDkb (ORCPT + 99 others); Mon, 10 Apr 2023 23:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbjDKDjw (ORCPT ); Mon, 10 Apr 2023 23:39:52 -0400 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1CFA32118; Mon, 10 Apr 2023 20:39:51 -0700 (PDT) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id 2D425E0EAF; Tue, 11 Apr 2023 06:39:48 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= baikalelectronics.ru; h=cc:cc:content-transfer-encoding :content-type:content-type:date:from:from:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=post; bh=6XssbBvI45R3gW5dyCZlANOptb4ng76cV2Y7e/5miHw=; b=luqF/e1nnoeK 81NnSjaQ4TqHEZPnFf6vU4zeITPmnBRm0yKBWF36DnbUd3Jis5xm7ceJqYspKmAb ilsfE8jYx52j/uJndaNGc5FjZEU3QmuW9cfviQEG/AHq+cA7MwHtlJQzoMC0J7zY duVEItDsAzUzRvMLbQRzko9DTzFjxtI= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id 0B800E0E6A; Tue, 11 Apr 2023 06:39:48 +0300 (MSK) Received: from localhost (10.8.30.38) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 11 Apr 2023 06:39:47 +0300 From: Serge Semin To: Bjorn Helgaas , Lorenzo Pieralisi , Cai Huoqing , Jingoo Han , Gustavo Pimentel , Vinod Koul , Manivannan Sadhasivam , Yoshihiro Shimoda , Rob Herring , Serge Semin , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= CC: Serge Semin , Alexey Malahov , Pavel Parkhomenko , , , Subject: [PATCH RESEND v3 05/10] PCI: dwc: Drop duplicated fast-link-mode flag unsetting Date: Tue, 11 Apr 2023 06:39:23 +0300 Message-ID: <20230411033928.30397-6-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230411033928.30397-1-Sergey.Semin@baikalelectronics.ru> References: <20230411033928.30397-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.8.30.38] X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Most likely by mistake the PORT_LINK_FAST_LINK_MODE flag unsetting was added twice in the commit cff9244432e8 ("PCI: dwc: Ensure FAST_LINK_MODE is cleared"): first it is cleared right after the content of the PCIE_PORT_LINK_CONTROL register is read, second it's cleared in the framework of the link-mode initialization procedure. The later action is redundant. Let's drop it. Signed-off-by: Serge Semin --- drivers/pci/controller/dwc/pcie-designware.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c index 8e33e6e59e68..e55b7b387eb6 100644 --- a/drivers/pci/controller/dwc/pcie-designware.c +++ b/drivers/pci/controller/dwc/pcie-designware.c @@ -1019,7 +1019,6 @@ void dw_pcie_setup(struct dw_pcie *pci) } /* Set the number of lanes */ - val &= ~PORT_LINK_FAST_LINK_MODE; val &= ~PORT_LINK_MODE_MASK; switch (pci->num_lanes) { case 1: -- 2.40.0