Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp706891rwd; Wed, 31 May 2023 04:27:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6K/77f6zVR0lERt5HFZKh/mbRU3kDuVlCcAX1IGBpvAAxp7v6VchBRoYmzjHK6Yj72AIaa X-Received: by 2002:a05:6870:98a5:b0:1a1:2939:3f13 with SMTP id eg37-20020a05687098a500b001a129393f13mr759242oab.24.1685532457549; Wed, 31 May 2023 04:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685532457; cv=none; d=google.com; s=arc-20160816; b=QQB1u1VEzUdqyHG1pw/lUa/xnGXQFFu8ttMJf25BuDzocPWcE/aH4zlvCUFv/WGu6o GvIr9aJlGrtd0998ANHXOlTqTnwIcmGIRiH7GNnJ6NboGboVhYHLzXBsyPmmcXe9XSqu tNnBvsXM6YMsU4RFkzg78pg1JZ7yqixhm8wNruxZ280nQBZeV9keZBLIG1/IzM8UgrET 2J5lMQ+KusZgZI8VaKMC8d1hEPf9XH/kocWTTW/GLaHiUIlKRUa14uMvuxQankvP4WWt wzxOwsoTScapJpwGeBKlbwy39EIjb99im78xdg1QbxCLZ9jKGitCda27rdGuHBh60/7K PNBg== 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=rfkO4VrZPJa83RVClW6BXy6s+ZLqHph/tem1/UoeYmQ2xLAs1kXcJezNJAGAN/o36B lpFtDaSVwu5uCx2mqk51yHN94dd/HG+n2732wQ9d/4DIS5ZQtBrSXs3sS9Ck3KSQNCcZ LDjXj8ZpNIKb1fEel8gt7HcPijX5zayLRCzeKjBxQ9sh5cjL6T5MWcFrueIHTbDb5ije hbb9O7hBHCWN3ZdbjtJ6k5VSBz4sn6ujRIt+/DfNOB8ST0TXOS7rNme1aqtrssFMT7Hm l4Tyn88f57X8RNGyr5pzyQLTMmxse37s9+I59/YKoFV3HqMtuRBBjQK11/C/RVrDiOhO ElGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=Q4qAdyIU; 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 x24-20020a63db58000000b0053ef0ac79c8si881350pgi.263.2023.05.31.04.27.25; Wed, 31 May 2023 04:27:37 -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=Q4qAdyIU; 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 S235636AbjEaL01 (ORCPT + 99 others); Wed, 31 May 2023 07:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235112AbjEaL0M (ORCPT ); Wed, 31 May 2023 07:26:12 -0400 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 14989129; Wed, 31 May 2023 04:26:11 -0700 (PDT) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id 377D2E0E6E; Wed, 31 May 2023 14:26:10 +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=Q4qAdyIUXwWg GpwShv+Crsudz9bedrOu41wVVykjn7SYWaHMsmND2DN9BU+4eo25qsx071qucZg9 TQhFUi4pCQPj4rMMe1ulG6FRrMRQ3hYJwQD6zqfnnNhJzm+LPFmOYTNeXYi6trqj uWFiG2yB/pZuequLWtgaidyNGzQJ+f0= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id 0F275E0DE3; Wed, 31 May 2023 14:26:10 +0300 (MSK) Received: from localhost (10.8.30.6) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 31 May 2023 14:26:09 +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 v6 05/11] PCI: dwc: Drop duplicated fast-link-mode flag unsetting Date: Wed, 31 May 2023 14:25:56 +0300 Message-ID: <20230531112602.7222-6-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230531112602.7222-1-Sergey.Semin@baikalelectronics.ru> References: <20230531112602.7222-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.8.30.6] 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,URIBL_BLOCKED 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