Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1700438rda; Mon, 23 Oct 2023 23:56:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDfUoWjrEtSoGqABno/SL9uuc2WfsApU/A6BOzZDnWUIUlrGeJv4kSlxQDw4nM/uoZmHc9 X-Received: by 2002:a05:6870:1391:b0:1e9:bda0:771 with SMTP id 17-20020a056870139100b001e9bda00771mr11937810oas.4.1698130585327; Mon, 23 Oct 2023 23:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698130585; cv=none; d=google.com; s=arc-20160816; b=FxWSDlyWhA8oFCQ9sjxpjI0BuFAQS7gPGMXPqawrzLLL3yVBRH0GOxmtOgk6F1jzHa boL+NQmYHqQTeVyCd6Tk/0Lpp0VtX0YOe6vhau6A5DiocHUKyhHvEYG/+hPD//dqnCPV QfeTFRrzH2wehla0JJf4IrVIPRuUqvj1xe7XK9epsokGL5X9bgMgRH+DevWKvS2XWACt lnOYOhOhwY5sq4dKuOGo4JO1UthVB21I9qbUCFaRWmsaT45YHhafXjvAqdYohM+mxSZF H/W5UegZ9PUct30+ff/hqHAhCvXCyf7JIHTQLs/hpt/IKul/fNj4Z+ivpNbjCTgX7MFY Qlpg== 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=DEvtPNYBDwn+z63Np7bueyktaIvpUzthw8DVgRKMexQ=; fh=6zfQWYT84uMUkZK3d7KMOA01GAZ2SsielBpfOQKQ1Y4=; b=vwcnKjnsH7egs3DOCNVeLx+bMf+E4Z06zYzokuV5g2ZEpBuRFl1P7mkElCwlT0cWnz /ryICBZ+BZXNlAt+5bCXd7jMEQTjmEt2Crpl92rmLtnoHih0OnHlltoD5iN9JduPgbP6 sNGdjp8PUKB0xsT4BCXFrEBQLunuos3whj1VQ5+bnRoZPqw7r6iLN2icj8o0gdCyALiK oQugDMYvPVUwdQDa7obKMUeIO/fs/KB35j4wEWxZcaYatmAMtJ8qJIAA04n9tAi8rA82 Z4EeNbHxNV7MgwzHR432xr+IgzjEXPZUwXa5bSkA3fK3xnZ+mQskQFt9UN30EKovdhHJ 9A9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IV6DlaEA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id h10-20020a056a00230a00b006bb0aafd563si8059252pfh.237.2023.10.23.23.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 23:56:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IV6DlaEA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id E44AE80AFB85; Mon, 23 Oct 2023 23:56:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232670AbjJXG4R (ORCPT + 99 others); Tue, 24 Oct 2023 02:56:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232566AbjJXG4Q (ORCPT ); Tue, 24 Oct 2023 02:56:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FED592; Mon, 23 Oct 2023 23:56:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C924DC433C8; Tue, 24 Oct 2023 06:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698130573; bh=EV4VOJE8vL5U09j1FWreOW/O4tPUOMNuDQvuEyy9q84=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IV6DlaEAIJr9GrDxMfFMEbjQMrcJvLcsy0GuqAeJN080WDLom6NDCL+nVn7+eudl5 hkO49bsu+tzH0wXYnpbY9DKa1NnNBA/KjdX5M630I2Ut5N9NEUkAHZsQfMMhKCd6cx WseiUXJJtBp7gqkkRi9AuWayM+PYG+VwK6MSJV1qXwIl9lqjwoaHTa9e6nmocZJrnD fNIHAfbETiDI5Vjw5CLNp1oI+z7d2kqBexPb/xlzStqqNRMceBRdM4O5/CKMIutdXm K9C1wvvYfWAuY826aPYbS8pPHUUGKWRElfG7k/PiXh3Re6EpnSubweH0GbZuWpNU/8 FoQo0ZYsW4+7w== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qvBL3-0003aq-0n; Tue, 24 Oct 2023 08:56:29 +0200 Date: Tue, 24 Oct 2023 08:56:29 +0200 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: <20231007154806.605-1-quic_kriskura@quicinc.com> <20231007154806.605-6-quic_kriskura@quicinc.com> <14fc724c-bc99-4b5d-9893-3e5eff8895f7@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 23:56:23 -0700 (PDT) On Mon, Oct 23, 2023 at 10:42:31PM +0530, Krishna Kurapati PSSNV wrote: > On 10/23/2023 7:37 PM, Johan Hovold wrote: > > Right. And I assume there are hs_phy_irqs also for the first two USB > > controllers on sc8280xp? > There are, I can dig through and find out. Atleast in downstream I don't > see any use of them. Yes, please do post how these are wired as well for completeness. > > Can you find out anything more about what hs_phy_irq is used for? It > > appears to be an HS wakeup interrupt like the dp/dm ones, but there are > > not really any details on how it is supposed to be used. > > This IRQ is really not used in downstream controllers. Not sure if its > a good idea to add driver code for that. I did some digging and I got > the reason why I first said that there is only one hs_phy_irq for > tertiary port of controller. The hardware programming sequence doesn't > specify usage of these 4 IRQ's but the hw specifics mention that there > are 4 of them. Adding driver support for these IRQ's is not a good idea > (atleast at this point because they are not used in downstream and I am > not sure what would be the side effect). For now I suggest we can add > them in bindings and DT and not handle the 4 hs_phy_irq's in the driver > code (meaning not add the hs_phy_irq to port structure we plan on adding > to dwc3_qcom). But there is already support for these interrupts in the driver. You work for Qualcomm who built the thing so surely you can figure how they intended these to be used? You need to provide this information so that we can determine what the binding should look like. The implementation would also be simplified if we don't have to add random hacks to it just because we don't know why the vendor driver you refer does not use it currently on this particular platform. > Also I plan on splitting the patchset into 4 parts (essentially 4 diff > series): > > 1. Bindings update for hs_phy_irq's > 2. DT patches for MP controller and platform specific files > 3. Core driver update for supporting multiport > 4. QCOM driver update for supporting wakeup/suspend/resume > > This is in accordance to [1] and that way qcom code won't block core > driver changes from getting merged. Core driver changes are independent > and are sufficient to get multiport working. No, you clearly did not understand [1] at all. And stop trying to game the upstreaming process. Bindings and driver patches go together. The devicetree changes can be sent separately in case of USB but only *after* the first set has been merged. If the code had been in good shape from the start it would have been merged by now. Just learn from your mistakes and next time things will be smoother. > [1]: > https://lore.kernel.org/all/d4663197-8295-4967-a4f5-6cc91638fc0d@linaro.org/ Johan