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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8B60DC5B572 for ; Thu, 13 Aug 2026 19:31:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Subject:Cc:To:From:Date:Message-ID:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ULbcTDnO0AMWuu67LZdQx8/Vu46a5smfVMMhgY9gY0k=; b=bn2n3ygmQ3ef/yvKt+djwckYlJ qKTDIsex9CZCGAOk0P8Vs6In+de8s11HCDI9jcr3R3L0pathLT1U0fIuZ4QPC4R9NXzAVlY5QSKrY 8zioQVyHdzES8S4dcjU4SqmltE7/q3C4hmzvKidBVrjRKuL9Iz6ALnnf/6JBUWsBMep+mihMvdRVH oF3AceqovtYFLHhKvE+x7XVD4DlZzQkDAKvvrb1dYvXygjsR97eoma74h66nHvvvcfDnad8mA+weg HHSTk9MfLPpUeAeq9xjSDTQwZFG97c1nTTL+EHVoG98xGk0fvPw2LXLWtkpOAsrZqsrKykeAoSpwv R1lrPJhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wub8s-00000001SCn-0jTv; Thu, 13 Aug 2026 19:31:06 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wub8p-00000001SC5-1ovL for linux-arm-kernel@lists.infradead.org; Thu, 13 Aug 2026 19:31:04 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4953de5be0aso2227375e9.0 for ; Thu, 13 Aug 2026 12:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786649461; x=1787254261; darn=lists.infradead.org; h=in-reply-to:content-disposition:content-type:mime-version :references:subject:cc:to:from:date:message-id:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ULbcTDnO0AMWuu67LZdQx8/Vu46a5smfVMMhgY9gY0k=; b=SK8g8czU4ukq1Zus1Nr3OBHfaNMh+tuadTT86NTIuPhj1apq5iCXrAxlG6G3e2MQS/ 1iBjjXI2X/c5YOt9eTy89np1CROeZHnfnUv6hPQWwsrrXSxzuXoLUfmq9+N8DbXMu42D 7l3c5yamGV5H3rgUKRoFQHyUaU1aoT2s7N1vB1Mxw6uW1jitLaCMVAtkxVviQULBwRfW lBs9ixbwakwLs5jZHCYbawl6wEB9y7whyaNP+eOWtLAjyZtRIek9av2MarXhz0PFw0Z/ h8NpGPu0LGm9V7hHp1TIz83triFm3Z8Xb5NhZSk6BpCLQwoTrUBVa2ytju3RFZNd3A77 tFpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786649461; x=1787254261; h=in-reply-to:content-disposition:content-type:mime-version :references:subject:cc:to:from:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ULbcTDnO0AMWuu67LZdQx8/Vu46a5smfVMMhgY9gY0k=; b=QI3pB3tBVO4WlwsJolodB0C1FDeKYzigN8kjrS1xrZOfroDNbtFAAQj419BxZ4JULp bDLzPDtzr8jbOr7nKufFJePdk2ysf3jphdjCSFtFftcI/eojrQ9UuGnVokJn7KsTM7dp ppeeW9Ph6207EzSUfchnwCWQiSEbj7KqH7QDn9CpD0udu0xHX5b/I9CevpuqM0n8bYdV 8+v+b2xEP0P6av+GX3NMHerwGWsCywmL2f6vSFIWb4h2Jy8V+iDeyI59HxhwewaRjoXU OJRUu1StM1pxsZozkdWjh2T4NKPcp+SDUKuYj5kXrlblhQlO9jXb97BsoPfNlYc0/5uJ MIXw== X-Forwarded-Encrypted: i=1; AHgh+RoxtXAfR8kQRFQs3i6uMNKHimRYxkUSvJJDusAPlL7GATDnKUjb98pKlOhQtl9fBuKnZiPyoTAaEn09QnNawGKB@lists.infradead.org X-Gm-Message-State: AOJu0YwAzBBKq/8AQYePsqm+u649Sse++Zg7rJU9GRnlqYtwp+Eau9KZ QT98iBulkMQKNRCAdxQPUnARhuW1ROWd4nBey/YaAI9thTnJ5+GwKMVP X-Gm-Gg: AR+sD12d/IiCCsPeE7PRA9wibcZUmif8kqwm4Iq5qNnsnwNEr3fnUDiP0UI8DCcZbrU NMrBrlHYdBQw+wOYXZ6duS1EAjGgm4XQoRsrDEMk9CuU2+TgbQZ4e3H92f2oZLxzc60i81Nypeq iWmcttC4ERf7k3Qh9ZC4gNxAGPOVKQZDZ0LHGsyPawtd7sFbCvLqZMv8Dl/uqCEvkU6vjeu/nt7 dqyTpQnDiNqIdH85QPA+JdPCilvvSgPLVErq4n7pzrYGgieAy0jqQidMfzToLIA6k7YKZjVsBDN GECp70xQN+jJyDCSwHIysDdnMGcwgB/wWjs2uRITtnfE2B6YbNnkUlQ8A5sIF00jAUc2sMmwt63 8U8TQVkOwIg/K+Rnq71nPn08vHg0mthVLmHqwcF+gDG3d7WQCMpqzlsZQwSVTXXEwZeO6iBhfvR 11f+kuHlp5HagcmGgqQI+DYy0ldrSR4BKdZYcAYONrtf1gyXUeXXsrVghflBQXwUdmC2+kJERmw bYXwfcUIo1y9MvPNa22VoPiojJeJ66yGkuTx+szIw== X-Received: by 2002:a05:600c:3496:b0:493:f318:3bc6 with SMTP id 5b1f17b1804b1-4998796e478mr11165245e9.13.1786649459483; Thu, 13 Aug 2026 12:30:59 -0700 (PDT) Received: from Ansuel-XPS. (host-87-20-3-207.retail.telecomitalia.it. [87.20.3.207]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49981b1bd61sm81000835e9.8.2026.08.13.12.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2026 12:30:59 -0700 (PDT) Message-ID: <6a7e1b73.e11288f4.1351ae.5625@mx.google.com> X-Google-Original-Message-ID: Date: Thu, 13 Aug 2026 21:30:54 +0200 From: Christian Marangi To: Bjorn Helgaas Cc: Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , Ryder Lee , Philipp Zabel , Matthias Brugger , AngeloGioacchino Del Regno , Jianjun Wang , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 2/2] PCI: mediatek-gen3: Add 2-lanes mode support for Airoha AN7581 References: <20260806165334.7328-3-ansuelsmth@gmail.com> <20260813170820.GA1143871@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260813170820.GA1143871@bhelgaas> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260813_123103_493673_66BFD488 X-CRM114-Status: GOOD ( 21.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Aug 13, 2026 at 12:08:20PM -0500, Bjorn Helgaas wrote: > On Thu, Aug 06, 2026 at 06:53:32PM +0200, Christian Marangi wrote: > > The Airoha AN7581 SoC supports configuring the first PCIe0 lane to 2-lanes > > mode (x2 link) by bonding it with the second PCIe lane (PCIe1). This is > > done by configuring the PCIe MUX in the SCU register. > > > > To correctly configure PCIe0 in x2 link, define in DT the following > > additional properties: > > > > - additional reg, 'sec-pcie-mac' for the secondary PCIe. > > - PERSTOUT reset for both main and secondary PCIE0, called 'perstout' and > > 'sec-perstout' > > - 'airoha,scu' property to correctly configure the SCU register for the > > PCIe MUX > > - 'num-lanes' set to '2' to enable PCIe0 in x2 link > > > > In such configuration the EQ preset are configured to the same values. > > > > To permit correct configuration of the PCIe link, additional logic is added > > to assert and deassert the PERSTOUT resets. Support of these additional > > reset was introduced in Airoha clk driver with commit > > 6712f48eb3a1 ("clk: en7523: add support for dedicated PCIe PERSTOUT reset") > > and on backporting of this commit also the clk driver change will be > > needed. > > I don't see 6712f48eb3a1 in upstream or linux-next. Is this SHA1 > going to valid if we merge this for v7.3? I picked that sha1 from the git pull for the staging clk tree. -- Ansuel