Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3258156rdb; Thu, 16 Nov 2023 05:03:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdkTtPBy7q+P69YtE7stuyzCC3UBpww+axHVAqJ6y6H+mVD3D/AsABcAoKbvnXBc14GNuE X-Received: by 2002:a05:6808:3089:b0:3b5:75ec:44fd with SMTP id bl9-20020a056808308900b003b575ec44fdmr21262417oib.13.1700139813719; Thu, 16 Nov 2023 05:03:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700139813; cv=none; d=google.com; s=arc-20160816; b=vkVCcWkLyar8jJJIDKIzKrGMKIUdJuX54aS0f2Irb2jkIW4UixaWRhBa5RwcYPHCrj FA/Fo+I1jxN/sr2gPUl5IdP9Wd0NviwPRjXfb55iMeI5R7uceWfLL6t/OdLgA9fZxk0f Y2LavjxtVCgBUFlr68OrqZPLAO7Yu2ThQ66MFGn5oi8SRExjW+A89f8OPpV7mk0my11a hVFeCS9Vwe9jF0dpVR0UnswPy5HkT3aTe4GCN/aeWzmF4Ttt/7FaCxbVp0L96YZR12Bq e1fgPKThDVQ3egW4qIi/477+NtiLIvoS6Q0IZj0feVLWNRc8zNRRLmfdH99hzx1xPWch 70yw== 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=4jAZhjnUVBCNXhLUz7MSe/UMJ1k1lkBlaP3XfFeFYNg=; fh=6zfQWYT84uMUkZK3d7KMOA01GAZ2SsielBpfOQKQ1Y4=; b=Xn1q4A52NfQ6lo/ytmcv6dgLYImx5HSebTOlJdWhEoBCSclZb08zGEgPfBtowyzQQC dSgc3n0OGdMjaU+4fMlCvEQWqXaGPIL9B0Ygi55xo47KvIJCftza9Vv2BggY+8w1nb8C OaMiPn5k07AUh8npG8/FZHDHdPm2fSnpN7hGobihvnevIZ1aPhUNWcBNoN9rJT/B8m0N cEs6VKCYsifmHVQWB98nMsOJqKGqIP5S2UEt2ajzzKECsdbF+ESLpEKoowi6KU4M8QBc VKJtykdwNhbj987w/Pm2ubK31B1OM1+tMfMe5E+ez67luqLCzD0q9r0qMnrZAwLgTYAv maeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d9BbamjX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i75-20020a636d4e000000b005638dc9751csi12547822pgc.0.2023.11.16.05.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 05:03:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d9BbamjX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 22C62808D48C; Thu, 16 Nov 2023 05:03:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230371AbjKPNDY (ORCPT + 99 others); Thu, 16 Nov 2023 08:03:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230254AbjKPNDX (ORCPT ); Thu, 16 Nov 2023 08:03:23 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6D1711D for ; Thu, 16 Nov 2023 05:03:19 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82F53C433C7; Thu, 16 Nov 2023 13:03:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700139799; bh=H7q0Wr5l0JMqXvnR6UaqS3RUHwhyrxsJfVtztg2F/+c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d9BbamjXFqHpFD69Bz+JK5yHAzRg3YQZp0q2nkYoiM3hkzHjACM2j7w0bklyXX3b8 fjTDjqP6jqxBJrx1R19QnJPh/jnNbtyXYzwLrrGSqTaLoaq5FdOJmsuojmG5pWJ5tb MAgAo1zKfOVH6q/paVgZG1r4xOfgZ+jfVVBqGMiNs9Qv8WhGu98f91psBO5iU9sfrw qtxJ8czRSj/ztZf46PK4dwUOamW95CRMAo3Wqp8jKw4LNhY6xmWmkGGqSIobeo8Qa1 DXiJChDlv2LQ93mp+wkEcBryIld+GILsy29gT5KF69zn/nFYKY5IDy1K+bBDniyEQS 236D9Hu6bSmAQ== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r3c1e-0003Y8-30; Thu, 16 Nov 2023 14:03:18 +0100 Date: Thu, 16 Nov 2023 14:03:18 +0100 From: Johan Hovold To: Krishna Kurapati PSSNV Cc: Thinh Nguyen , Greg Kroah-Hartman , Philipp Zabel , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Felipe Balbi , Wesley Cheng , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com, quic_jackp@quicinc.com, ahalaney@redhat.com, quic_shazhuss@quicinc.com Subject: Re: [PATCH v13 05/10] usb: dwc3: qcom: Refactor IRQ handling in QCOM Glue driver Message-ID: References: <14fc724c-bc99-4b5d-9893-3e5eff8895f7@quicinc.com> <04615205-e380-4719-aff1-f32c26004b14@quicinc.com> <6d4d959c-b155-471b-b13d-f6fda557cfe0@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6d4d959c-b155-471b-b13d-f6fda557cfe0@quicinc.com> X-Spam-Status: No, score=-1.3 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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 16 Nov 2023 05:03:31 -0800 (PST) On Wed, Nov 15, 2023 at 11:12:16PM +0530, Krishna Kurapati PSSNV wrote: > > Are you sure there's no support for hs_phy_irq also in the "femto" PHYs > > and that it's just that there is currently no driver support for using > > them? > > > > And why is it defined if there is truly no use for it? > We had an internal sync up with HW folks and here is some baseline > suggestions we received: > > If DP/DM interrupts are defined, then that is the preferred path to > used, irrespective if HS Phy irq is defined or not / or whether it is > Femto / QUSB2 target. There is no target that has femto phy but misses > DP/DM today. Ok, but just knowing that it is "preferred" does not in itself mean that it should be removed from the binding. We need to know that it's effectively useless (i.e. that the interrupts are defined but cannot be triggered) for that. We can still use the DP/DM interrupts in favour of HS in the driver however. > For cases like sdm660/msm8998/msm8953/msm8956, these targets use > hs_phy_irq only and don't rely on DP/DM. So we cannot remove the binding > in entirety. I fixed the binding for those specific platforms last year: dd566faebe9f ("dt-bindings: usb: qcom,dwc3: refine interrupt requirements") But as I mentioned in that commit message the following platforms do not have any wakeup interrupts specified in mainline currently: - qcom,ipq4019-dwc3 - qcom,ipq6018-dwc3 - qcom,ipq8064-dwc3 - qcom,ipq8074-dwc3 - qcom,msm8994-dwc3 - qcom,qcs404-dwc3 It would be good to get that cleaned up too (i.e. add the missing interrupt definitions and update the binding to match). > > Also, if hs_phy_irq and dp/dm_phy_irq were mutually exclusive, why does > > the following Qualcomm SoCs define all three? > HS Phy Irq is redundant or functionality is mutually exclusive in this > case. If there are targets that define all three, then we need to update > those to only utilize DP/DM interrupts. No, as I wrote above that depends on if the HS interrupt is truly useless. Otherwise it still belongs in the binding, even if the driver uses DP/DM in place of it. Again, the binding should describe the hardware, not what a particular OS chooses to use. Johan