Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4093611rdb; Mon, 11 Dec 2023 08:38:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHz9sq3vnejaU+Wr10soUiP5aq+k6fF5gY5/HK9hvmxQefNS+8qkLuBwoH9Eq9vevSwR22L X-Received: by 2002:a05:6a00:8806:b0:6ce:7d15:9a80 with SMTP id ho6-20020a056a00880600b006ce7d159a80mr1790341pfb.61.1702312708745; Mon, 11 Dec 2023 08:38:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702312708; cv=none; d=google.com; s=arc-20160816; b=gbM/NAvkSFMc2DCsX6k/O5mTBpzzSxO20XkfITvTgFl6cDNYhwVF/fdCjP/QRk4UeD dAT/REe8c6CaR4tnwTkW73WATfT/BIlf+poRWam0W18GUPUNYUSYi9i5D/mUzbLwDwXz 73pW7TNqbPjJixyKJmgHp5bMgpZ5cicb0EP7sLNabnK0gcQTCxKrC0JUm6bNfJFQwI5A ye2yBi3/BVmPLywsAGAf5naKoBfNHRrZnUFaEUJrXwplnjEWBDJlv1py5htosZHyl3Eo fCJCyvBvpjUdxJvzrnGufr4jJNTw7EC7t+SCu1CW5M2r2cvcSB83+7dnMjo7u+nGIh/p Fpgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IkNdALLkWSMuqvUU1B5VoRP+8jd8fMyt6GFbZuNMxQI=; fh=WHgixzKFBdnNPMugAIBHoiswMGwH227WE8BBVSraXio=; b=KtrotZt0mlcAQTneR6+n8f2tzpufWVPwZuPZMCLLfxhozyAcyK3WMfQRcNMHhDyKuN bqOXIIcC0jcsnQLHjs7UDKZDLBLWNseFrFYuM6rswgqjNWKLTOFxlFL3pQ9/zoUzferZ +XssEQeK8dy4fhyz/m66ul1GeqsUQDv0UAyCIHGWpPP+S8DJmvYAzxW5WbbdQ4a2hbFk TVQpgjGrah0NyqqMFj4las6BJINC8n6qTTXNyrEApB7onDATn2Kqd909pOiub80+gD0m jQV4JOv3hH57UW2JC2YRl4qmYj7Fa1GsFUo+ymERz4MuSn0gnVBswhNQ5dyo+mo3FW7M uNHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V0sdzlHz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id c4-20020a63ef44000000b005b834096959si6210012pgk.851.2023.12.11.08.38.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:38:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V0sdzlHz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 623A28042B79; Mon, 11 Dec 2023 08:38:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344506AbjLKQiN (ORCPT + 99 others); Mon, 11 Dec 2023 11:38:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343931AbjLKQiM (ORCPT ); Mon, 11 Dec 2023 11:38:12 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B287691 for ; Mon, 11 Dec 2023 08:38:18 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58BFCC433C8; Mon, 11 Dec 2023 16:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702312698; bh=uT3+vtv8HvVFAQ4LBmaj/5ll70qrpowhUoWCN8h1EKg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V0sdzlHzEI3Kvyn+aJJE+//AB/HyRXlUCzj0PeNF1vDfIfo7i+WeYD+xwuZD4/6zO qWZe6lIs0vd/eMbwZsURybmS1k8ZlnKdurb/8l6F2jlWJGnYM+OSEMkXU30EAcpu4Y h8sx+bHkmZKNuilNAIa7em232OhoPJSO+vtQu6C5q56xi36ly/8bjmOxldnx09zl5+ J+A2REZGk8Xbv2htMOBm59RaZ/8UaW8tSvR1wYX7p9MlRwJM28obbFvRAYq3Iw40Gq 6yX0/lW7c5v7Y02JrYRme9mLIbNgGJWgZQ8eq+QPhbG0rnxcd64Ldoje70yUjfqcm9 fze+I5j0TV/hQ== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rCjJB-00069a-0E; Mon, 11 Dec 2023 17:39:05 +0100 Date: Mon, 11 Dec 2023 17:39:05 +0100 From: Johan Hovold To: Bjorn Andersson , Konrad Dybcio Cc: Andy Gross , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/11] ARM/arm64: dts: qcom: fix USB wakeup interrupt types Message-ID: References: <20231120164331.8116-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120164331.8116-1-johan+linaro@kernel.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 11 Dec 2023 08:38:26 -0800 (PST) On Mon, Nov 20, 2023 at 05:43:20PM +0100, Johan Hovold wrote: > It turns out a number Qualcomm devicetrees have also gotten the trigger > types wrong, something which this series addresses. > > Specifically, the HS/SS PHY wakeup interrupts are level triggered while > the DP/DM HS PHY interrupts are edge triggered, and which edge to > trigger on depends both on the use-case and on whether a Low speed or > Full/High speed device is connected. > > Fortunately, there should be no dependency between this series and USB > one as all devicetree use the correct trigger type for the HS/SS PHY > interrupts and the HS one has never been armed by Linux anyway. The > DP/DM interrupt trigger types are also updated on suspend currently. Konrad reported off-list that the sc8180x patch in this series breaks probe of the dwc3 driver. Turns out a number of these SoCs were using GIC interrupts for the DP/DM_HS_PHY interrupts despite the fact that the driver tries to reconfigure these as IRQ_TYPE_EDGE_FALLING (which the GIC does not support) to detect disconnect events during suspend. This is obviously broken and the proper fix is to replace the GIC interrupts with the corresponding PDC interrupts. I believe Konrad is digging out the magic numbers at this moment. The following patches will need a follow-up fix: > ARM: dts: qcom: sdx55: fix USB wakeup interrupt types > arm64: dts: qcom: sc8180x: fix USB wakeup interrupt types > arm64: dts: qcom: sdm670: fix USB wakeup interrupt types > arm64: dts: qcom: sdm845: fix USB wakeup interrupt types > arm64: dts: qcom: sm6375: fix USB wakeup interrupt types > arm64: dts: qcom: sm8150: fix USB wakeup interrupt types Sorry about not noticing this. Johan