Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5516907rdb; Wed, 13 Dec 2023 10:50:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IElJ6TKIKAGmez1uWta7075/hOrbbofCqw6euwzAv8fmtZB+V86J3oWVlHQScOPZY0GigYu X-Received: by 2002:a05:6a20:5656:b0:18f:97c:4f6c with SMTP id is22-20020a056a20565600b0018f097c4f6cmr4448174pzc.120.1702493404064; Wed, 13 Dec 2023 10:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702493404; cv=none; d=google.com; s=arc-20160816; b=N0DtOCYO4q17RYwjqdEBXO6hE35rHDoeuAyA+XWs0Z+8iNH68/uqV+TGu/U76TZdVc PPuMi7HUefNUtv5/MQHz1PY+FBGKJ525lwQTTZPseNoYP/AEjXU29vMBfRe6Ni5XU3wb o9m9nGBGm1VgWXBTnSboS2S66FCpPbZudOa0jRMAopzIbTOA/cdj+2M1iHRhfpRIFTBd OPniYrpzMp1eDe3Z2hVT1DdRtTWGuVp5nVMJ7HCHPc7tfE8jtiCcpfwDeU8ruXHwuFOL FTftI1GXK7leif7Soxwq0j/LO12tGEXe9upBubulIYH0E8sbYyWTQgTgaPABjbMwX3ls mcPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=u9w0otzZlXHEhkhqLHq549bkqhOx0OoxS5csCVRIyxs=; fh=dPUoC3CP71tJgNOfenW06UimESv/z4aA8wY85z8Z+8c=; b=gNkouI0tzEHu2NBdMMqvP3AU8Ea8yHKeZzqK76Byzy4LwOqjpJK07iRiMWf0m5pMF1 4njObLxnI/zuE/m4DXSBFE/j+05mDxGi2wmCWT+bBQuWYuKMRHr+w1aF/vzBgMnwqYoR E3+n4XOaR8OptHXLw8yuY7dIoh8wX7bjatAVY6p9Yp7HKLjfzcg8LCLWMY7DjyoeexjD Bc52ljDA/UMyJweVsGlKmKxonVSMCJxDRQ5ePPuGUx9n+gkKzL6BiKWouWolcsi4Dq1d +xiF4OA5/qpIkLtU3PkymVd9GULAihvbeSHEWOCXNkE2QbdSB59OGrhus5PqXqf3IJvP VEhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FeOREvMK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t9-20020a056a0021c900b006cdce1e4c39si9424512pfj.383.2023.12.13.10.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 10:50:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FeOREvMK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4E5BB80324EF; Wed, 13 Dec 2023 10:50:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233758AbjLMStt (ORCPT + 99 others); Wed, 13 Dec 2023 13:49:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233516AbjLMSts (ORCPT ); Wed, 13 Dec 2023 13:49:48 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D8BDEB for ; Wed, 13 Dec 2023 10:49:54 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50c0f6b1015so8539214e87.3 for ; Wed, 13 Dec 2023 10:49:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702493392; x=1703098192; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=u9w0otzZlXHEhkhqLHq549bkqhOx0OoxS5csCVRIyxs=; b=FeOREvMK8XGoFNXj3oQnDGvz7XwLoSFk4rON8dZ8Pq0eCI2GJjo7cYibmKkFrI/GE8 O2aOCmoDxsC1XotefeuLI8iMidfbqie62bv7Cp2Esj+8mJVLKXJPF283fQiKMhVKujDG vnN15soHjq5yDvthpDThthYjhH7ZtDsb7Z+SpQLaJCd/2gGnuS4r5v1dRkGQunMxl53u gj4S4Dr3ce569O5v3WGeY4GAR0KXbRX0fexaShyfJ3tp3S3Oj+or9eTKCfMUSpbBi9yX ys9QfS5WiriXhuABpc6BUN9JEeDSYaTzmYhDlOBltMVNisrtjJgZOhItPrRiMZR0Bj5a U+xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702493392; x=1703098192; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u9w0otzZlXHEhkhqLHq549bkqhOx0OoxS5csCVRIyxs=; b=I99wYgJFRLWhIdFxTgsWPY98TSdfMjc46vai8LPIxJkqF3hmW1rneSZ1sG3JkjskWm y5//6CQzxbiShNJsPBu1Pv+mDlygK28D6kk8Wn+LkyiYdSrC5+lFaAcvDXpx+1QkMvKs OgT8e+duQUmJyZo6AmOEXj1ufq/PLCy6ZQ2/vC/MooF7bXqwzKtwtO1bmIVbNrCu+ySF 4ufY5mcoRqZicVf26v4KREjzRC8AEzy9o734JXSwn2t0DJSC2lMGCRje5UtukEwgcCFa aBSs27CO4zimQ3gqlXgB/v3SJrt7fUvumv5/rwCR7v04nCXy2IVFeY8nGtKQL+ATO9lK jYhg== X-Gm-Message-State: AOJu0YwTEaeZRJiGUFSiqlj1kHTB+RhCUyQFS+sZbb8Qfgz0IVo9beIO 8mlquXa9TssYfR8d5NU0rLA9VA== X-Received: by 2002:a05:6512:489a:b0:50b:ff2a:8848 with SMTP id eq26-20020a056512489a00b0050bff2a8848mr3798058lfb.120.1702493392343; Wed, 13 Dec 2023 10:49:52 -0800 (PST) Received: from [172.30.204.126] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id k31-20020a0565123d9f00b0050bfe8abf04sm1674563lfv.138.2023.12.13.10.49.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Dec 2023 10:49:52 -0800 (PST) Message-ID: Date: Wed, 13 Dec 2023 19:49:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/5] arm64: dts: qcom: fix USB wakeup interrupts again Content-Language: en-US To: Johan Hovold , Bjorn Andersson Cc: Andy Gross , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Kurapati PSSNV , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231213173403.29544-1-johan+linaro@kernel.org> From: Konrad Dybcio In-Reply-To: <20231213173403.29544-1-johan+linaro@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 13 Dec 2023 10:50:01 -0800 (PST) On 12/13/23 18:33, Johan Hovold wrote: > The USB DP/DM HS PHY interrupts need to be provided by the PDC interrupt > controller in order to be able to wake the system up from low-power > states and to be able to detect disconnect events, which requires > triggering on falling edges. > > A recent commit updated the trigger type but failed to change the > interrupt provider as required. This leads to the current Linux driver > failing to probe instead of printing an error during suspend and USB > wakeup not working as intended. > > While at it, fix also the SS PHY interrupt so that it too can be used to > wakeup the system up. > > Thanks to Konrad for reporting the probe failure on sc8180x and > providing the corresponding PDC interrupts and to Krishna for providing > the remaining PDC interrupts. The exception is for the second controller > on sm8150 whose PDC vectors I inferred from sdm845. > > Note sdm670 and sm6375 need similar fixes and I believe Bjorn is trying > to dig out the corresponding vectors. The SS PHY interrupt on sc8180x > should also be fixed. sdm670: pdc 9 DP pdc 8 DM pdc 6 usb3 Konrad