Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4707564rwd; Sun, 11 Jun 2023 13:19:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4nXe74EpxxncOGCnEohqQCfdLE4FUMLKIw/tPZPZgdij7TS0ihX1zUqqKRcdAb7vwx0LuU X-Received: by 2002:a17:90b:2353:b0:25b:bae6:3c67 with SMTP id ms19-20020a17090b235300b0025bbae63c67mr3838435pjb.43.1686514773301; Sun, 11 Jun 2023 13:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686514773; cv=none; d=google.com; s=arc-20160816; b=EANyvHOtPzsv33L8rYDfgXpry2HjlZqZCDVdWhVejDeVdkI9R2kzGpiZg9enCtQDm5 m4CSPUbp8yvAz0U1MvroJt67NMvcg7Ck7RFiiDaZ2Nk38mUeJLq8ZG/lfFuww3gmugeo 0nTxK3qEgwULGTYHdj1PW3ogAjpL28rzzrwYtGgKIcNLH2vEQ0sB+ZQZt68g4sSbEFw2 sMk0nVgV/Kv0HvFk6JNYTERGljpEJBHuoa22Xo5feX3j0qdesoQss+GZrgTNdthQhYvv YWfrp8ASvnLI0v5fF55KpuTxJtQDO+ZMF6cqnOHH7VzD7Jtitlzy/qErpWvrnuknO34w XXZQ== 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=9M47wfxZ2/N3MPCwNJscUsRRl4XL5poYxyi96Udv8fI=; b=1D229crJGi2k5yVyMtMmZIomt9Tw5ofsZ07epEmY7T4hM1np8BebNtJwzQJmqBcPhe +xS0UNOuS/un6KmU6LeZPxJuIRfYLthT/zynyG+Q6WKawsSQERQ963RPodNTj4ZlPSyr 5AfwWxDSHGhMvLx/Gr1rjsaYyizMR0BqmQxuxXvw6+iiZSrfZsWOx8ns93Kw8AYUyXYK 034dnYrKN5Ornu3dAkRJNZ5PFpopsDml3LJcF82bQBHsXHBj5UCVWAOyaNklztVoV7hQ h+jPjGCtnSLml6i3CFKn5tCcqJL/CIOwX5DpHXTr3N663cgnLRPlRzONday0WAspyWNQ p1Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=K9bRIy90; 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 b9-20020a17090a10c900b00255fb1f4a17si2333101pje.42.2023.06.11.13.19.20; Sun, 11 Jun 2023 13:19:33 -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=K9bRIy90; 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 S233976AbjFKTUf (ORCPT + 99 others); Sun, 11 Jun 2023 15:20:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232964AbjFKTUO (ORCPT ); Sun, 11 Jun 2023 15:20:14 -0400 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6D50CE55; Sun, 11 Jun 2023 12:20:13 -0700 (PDT) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id 543A5E0EA0; Sun, 11 Jun 2023 22:20:11 +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=9M47wfxZ2/N3MPCwNJscUsRRl4XL5poYxyi96Udv8fI=; b=K9bRIy90wwnn sxfqePuL/KkpCS2j0/tX4pLasWF8yWpxpP8q2QPCGyZZ2N2vA0IBaM+kRZ7rue17 TL0fdjjLZH9Hro9TlQE8zcDLdi9ZpsTq0mL7iFsxfkDqOyU5H9H+hB+akkHQRYdo 5E6xjFgrY24J583NHIybCE1wPzlhWxk= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id 21677E0DE3; Sun, 11 Jun 2023 22:20:11 +0300 (MSK) Received: from localhost (10.8.30.10) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 11 Jun 2023 22:20:10 +0300 From: Serge Semin To: Bjorn Helgaas , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Manivannan Sadhasivam , Yoshihiro Shimoda , Rob Herring , Manivannan Sadhasivam , Serge Semin , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= CC: Serge Semin , Alexey Malahov , Pavel Parkhomenko , , Subject: [PATCH RESEND v7 05/11] PCI: dwc: Drop duplicated fast-link-mode flag unsetting Date: Sun, 11 Jun 2023 22:19:59 +0300 Message-ID: <20230611192005.25636-6-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230611192005.25636-1-Sergey.Semin@baikalelectronics.ru> References: <20230611192005.25636-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.8.30.10] X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Reviewed-by: Manivannan Sadhasivam Reviewed-by: Yoshihiro Shimoda --- 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