From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66DD5426430 for ; Thu, 13 Aug 2026 19:31:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786649470; cv=none; b=DSBSj9UlBn9dxDQ+JiUWM0boUxoSHE8j2010whuW5gLdrleN1FqIFnzTE7PF2M0sNeEnVpgXO8T2vgX9P/o2r/imF0oHgyJCM39SR8MjZlkxF9OuHkek/DTaXY7NegW69kZbOIAaiKrn14uPI6Rjzzj/P82SMHVeCVcv6eM69qU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786649470; c=relaxed/simple; bh=4jd523lHV6z9sGisUjcZziHb4lsgWQZfL2Ciel9WIL4=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qWPeG4HOSsAl0DKA5FJHYeitwXJDFzxbyhwgl7oJijIgZV491HHaHpWrCfcf/zrQFto4Ju75UmBYcHbgs2BdjmYiSv3qiGJjr1caLrcQXad8BU1Iwdyfl72F1Jm5FRR6+SKYwmMhQzjzYxn2S59C0M5yHwExTUF1c97uUXXuojw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=b5Ucjk7h; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b5Ucjk7h" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4957eefd361so2166545e9.1 for ; Thu, 13 Aug 2026 12:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786649461; x=1787254261; darn=vger.kernel.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=b5Ucjk7hr81w2lx5V4aClFdUTcSCQc9Bm/M+mZ9EmOJAIB/SSWAXoh9AX1ktVXAZzJ SOPSTvH1q1zaDPdvrAVeBuriievcD3F1UCOcUd6v1RFxAzWwOm1UYAgDccSlzR0XBdPn T05SZJJW9mz5I9lHberlj5vniqSQwJKZ0jeGvekLfS4OPy2t241RV41jbHbk3l4VSCVz LWnAi9iWLZXGWFIv5XoVzv6h5DLDoXoKN5J2zP7YoWIYlfgnnYUnLPg/NoHsE+adnqNl Svq+88DY+AhZHhnhzy0yvpSBMfMFljNfxkoLLomD2yaWOXDAbdao7Lr7zrjHN027+2z2 c1LQ== 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=HM3KEcZQXq0JlWC1RUc4qYZYVX3f1YomMdAa5/lbTAZLVDbaSZHvemTMw60WFFKUL4 9969eQHl/z67JIjIo4gNrnCKmU/RZn2gTaAXB4dJ5h4OuaPhTgRWdQEUlaajHj2ktXt7 v+Yc0BPHapNrysAoUYQPj1qhG0nbZ6pKAdpa6Ke1D/DOicFvU3m2FihwZFHl9y0x61Sl teA5QT+OZWMNbtVNBB593dr5Db7QGekD4NqbIw7l3RGyIkTwy1wbXh959B6BwNmHi0YG +A62XeSiZdn3DAZ2eP3WZCsTmaFRyn+olA8UnqnbxqjFQdRQqLiMqcPmySjFCKoeuGfl dksQ== X-Forwarded-Encrypted: i=1; AHgh+RoOMgqGc1p/kmJFSJ434ri/+L/5aYq6zl/mSFWPcXn+11GlIp+RLY7PUj9E0unBeTx96tCqRp2q6B/6oiw=@vger.kernel.org X-Gm-Message-State: AOJu0YyscDNqhJYGS+Hg1Yb6bWYS77HyCPpKQXYWUL/hmctfle4nVgmU vcwZrgFl6fcJtRc7FVpzEuO4R3AY4UBbzRuDBzGyl4EySckdj0jwAaNb X-Gm-Gg: AR+sD11SnNL0GNZ0PJJqwD0y8tx5sZy/3iq81sydqtShTpEH9o/OwmhX/8XxgVY7XGo AKFG0PJTXkgoFUGJeH8tlod8tGq9U8i5CcksVJ8bLZIHqKochAYdnbYqHI8V3BCiiDtOnFxtEEq p5w+ub+GNa9BGN6Mk1pbMIayofGCYiMOva5EFjh8Tnd9uswcu3mpxKXg+t/DAbQ8paQRBwTvfVg 5DLaBCVasUepr8veoSETXd3+ucBqpLgl0FtHFtvpYjkLX/zzTvtKQ/eLFPMYcZ5H+gZgEA4ZdRj u48qI187x7KKaWy8I7FqJN73GClzj1JiM7eZjTZZiL76HSustqj1WzVkwF7wjXUu8p4kstlfN19 JhmwptAZpEFcs2GtovQs8+217jMaQZa9Vcrik54SmCOpX4ZbitBmgFTUmW9moxVHgPnPIOY7T4B LOCUWNOapokLMOeYwd5PF9GUi1auRJmcisRSWbPTg8iu+Rqx4YKOHrqSA2y3yPWJebO8By2F6k8 OvQvXCBjgh5EqfEOPJrRvdSo+lF9GboGFcs7JeZ3Q== 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260813170820.GA1143871@bhelgaas> 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