Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp162926lqh; Wed, 27 Mar 2024 19:29:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWeqw60IbhvPnmeuhbFIyc4qMbWKdh5VGAHQ3QDGUMJVgS8kcfaG+voEHlnDf3YDxH+G8XkCKz6WdFsRHXKeAiemIh2sx8z2R1CoU9olg== X-Google-Smtp-Source: AGHT+IHMsKAFSKQmSOlbH7Jt4oIIxnZQf3g7P0X0uPHGOO06GXcBPHV0lcqSeLA+vj8fhtluAndH X-Received: by 2002:a17:906:a18:b0:a46:36ee:cfac with SMTP id w24-20020a1709060a1800b00a4636eecfacmr717752ejf.77.1711592996221; Wed, 27 Mar 2024 19:29:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711592996; cv=pass; d=google.com; s=arc-20160816; b=nuX/cesYtHNr42fNBVsX+PjGcakqZYxfeS3AQyWz816z4Sdbdz2Ue87bBqfdT+9Pdv eHTPXuoruyi/ALPFVrXLqvBOGVgL+tPq4oT9rfANjWyvH7CJHg4pxfBDGRX2igrsoFyd DeyczJp7qi0OHUiHp8lgXaTo4u8Q35X6W6+hE756yRxbJKm/Fbbe2iC9VCSxhDrdH2lT kn+wabVI7DdJ2gMjf0eDpZRdm7I7ZHV/f6HR0IboTqnMr09yfPI600Ux8t1vw5SJ4KQ/ BGcxV6/Ld5kkgo8DMbMC6QOmV/JUCE1iLz7SkQrRV/1U7V2SRuUHXUF6DunqTb7pqquh A0Rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5kIdIcBwAr/yvOR+7vh6zvYo3WVZ/U/a87rUtsI1q+0=; fh=pC7zeyD7a1RfxxhNilo9RA4iD+RVj5/qxin+be2DiJw=; b=VieDCNpGluu4BPvpGf+o7IMFohUiFxRBEJwfm6QQwGODnt8L/4i+xSDROt76Z/Yidp vt9+th8BOsrBW3RDjwPzbTYelWV5W4kDzQyiOELAeeIgcuqqavL34YXCpgETsheGYfeK ei4Zrf/no6fG0V717CGGzfHc8RvVpW2fCekf6ZtsJeDYnMdPy7KWbBN3bVijg46X9DLK ZsWNEgMOOdGwKQEy5+woaziZFRzQ+GuK47qUYVWsrdoAGBVYSnfQnzqHcstlkT+A9+Wy D9sE7c3gplhom/qkO92ARVOiTtG1N5CbRPJ06oWLLjLaa0f1jbEB1ph3SMPQTPHaf8wX lIrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GXHc8PNx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j23-20020a170906411700b00a46c1bc8e82si198842ejk.748.2024.03.27.19.29.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 19:29:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GXHc8PNx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EFBA71F2A8AD for ; Thu, 28 Mar 2024 02:29:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8891D37153; Thu, 28 Mar 2024 02:29:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GXHc8PNx" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A212D374D2; Thu, 28 Mar 2024 02:29:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711592946; cv=none; b=TmeOSGlGicvVC7jc4IYOf2xZNbmGTebeIYvTXAprW2klhrR4vA6oNgz36xNE1NVJ3ryE1DCdf8yMiCQIJTfGabGj59cyy/pvTbD5MMVknu2S5z7BPevPxSuAwbylvZSZzrLIKbB8qQcLduYSNIwunIFTs8VwCyf+M8m7X4JkN3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711592946; c=relaxed/simple; bh=rHtUyom4X7jUcKQsE0lSv2b4fCRidQ44ktbNU1WEOlo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZX+Z7Iq0quIAaTMWAhCB7FgNzaQ2KOlZd5R2fqUaulPM4meyj/Bat5iZu1n+1ZaCGSpc9cftT7glrc/MA8XlMsQprYmiu6eah46GauosrAdxAfLDQmX1mriaep7LRBUZaotCF1sMY8F/0cXPkKLM31LxmM61N7kBNaA0gp1h/OY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GXHc8PNx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BB5FC433F1; Thu, 28 Mar 2024 02:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711592946; bh=rHtUyom4X7jUcKQsE0lSv2b4fCRidQ44ktbNU1WEOlo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GXHc8PNx6iNLSZNvfMq4guVnP1fINDyusRbqdOYJsoz9DstfsEfi/s8yCIwfWtuBj Si6aizraugxnkHgi+FuxUgfAaPbjCKqSbdqtgzhcIsWK+yqZbR5gSRsp9a89LorGyl z2CCS/mnyh9gifYnqx/vG9pndtekE29ZCxIRveRw759rlnvuoomB5wKklbQp85/yA6 90p+HA2g5tWgJw+Q+Jbdi4jcFgRPARJqRT8mQThqOLtsHwEBjT+mgV965JWBGdSr4Y eaMMiEfNUIEPEl1zR2Bv3xaJQPxZ+werBi4i0mxJF86rF7F4QAN56C7YkP+HHzXBPr mHBdZ0aCOOq8w== Date: Wed, 27 Mar 2024 21:29:03 -0500 From: Bjorn Andersson To: Maximilian Luz Cc: Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: qcom: sc8180x: Fix ss_phy_irq for secondary USB controller Message-ID: References: <20240328022224.336938-1-luzmaximilian@gmail.com> 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: <20240328022224.336938-1-luzmaximilian@gmail.com> On Thu, Mar 28, 2024 at 03:21:57AM +0100, Maximilian Luz wrote: > The ACPI DSDT of the Surface Pro X (SQ2) specifies the interrupts for > the secondary UBS controller as > > Name (_CRS, ResourceTemplate () > { > Interrupt (ResourceConsumer, Level, ActiveHigh, Shared, ,, ) > { > 0x000000AA, > } > Interrupt (ResourceConsumer, Level, ActiveHigh, SharedAndWake, ,, ) > { > 0x000000A7, // hs_phy_irq: &intc GIC_SPI 136 > } > Interrupt (ResourceConsumer, Level, ActiveHigh, SharedAndWake, ,, ) > { > 0x00000228, // ss_phy_irq: &pdc 40 > } > Interrupt (ResourceConsumer, Edge, ActiveHigh, SharedAndWake, ,, ) > { > 0x0000020A, // dm_hs_phy_irq: &pdc 10 > } > Interrupt (ResourceConsumer, Edge, ActiveHigh, SharedAndWake, ,, ) > { > 0x0000020B, // dp_hs_phy_irq: &pdc 11 > } > }) > > Generally, the interrupts above 0x200 map to the PDC interrupts (as used > in the devicetree) as ACPI_NUMBER - 0x200. Note that this lines up with > dm_hs_phy_irq and dp_hs_phy_irq (as well as the interrupts for the > primary USB controller). > > Based on the snippet above, ss_phy_irq should therefore be PDC 40 (= > 0x28) and not PDC 7. The latter is according to ACPI instead used as > ss_phy_irq for port 0 of the multiport USB controller). Fix this by > setting ss_phy_irq to '&pdc 40'. > > Fixes: b080f53a8f44 ("arm64: dts: qcom: sc8180x: Add remoteprocs, wifi and usb nodes") > Signed-off-by: Maximilian Luz Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > arch/arm64/boot/dts/qcom/sc8180x.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi > index 32afc78d5b769..053f7861c3cec 100644 > --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi > @@ -2701,7 +2701,7 @@ usb_sec: usb@a8f8800 { > resets = <&gcc GCC_USB30_SEC_BCR>; > power-domains = <&gcc USB30_SEC_GDSC>; > interrupts-extended = <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, > - <&pdc 7 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 40 IRQ_TYPE_LEVEL_HIGH>, > <&pdc 10 IRQ_TYPE_EDGE_BOTH>, > <&pdc 11 IRQ_TYPE_EDGE_BOTH>; > interrupt-names = "hs_phy_irq", "ss_phy_irq", > -- > 2.44.0 >