Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4468187rwb; Mon, 8 Aug 2022 01:08:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR5lgg3AmILyHmWEdr3+LtWTIOcrNa0MXotRLZaj3t8PC/ywBxDBv01vW0kXkkbjajfhJeCt X-Received: by 2002:a17:906:93f7:b0:730:da74:3454 with SMTP id yl23-20020a17090693f700b00730da743454mr12040882ejb.331.1659946120231; Mon, 08 Aug 2022 01:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659946120; cv=none; d=google.com; s=arc-20160816; b=VMPjf54VSAlnZMbrZ8yFDbT0qWIKhE0wm9sZqdVj36WFt9rI8o81LNLXY6f8b88pWS /j882/2y0TrF9vlpFeQeS8kLJHim53P5ofW4DTASEB/XAikBK7qGht512GH/Q4mIBguA 3y1Un7GWtRv34XMBkZbBmvNWo1KYPsgp1QjrpyiNtLREfoJ6lm+hpYJuasKjG9sviCKb N+RnSzNetaz7xnzog9qGWib6u1bmsUXiuHPPZvcFgnf6jGxLNxZUzvveIheaKtwhMVAV AbADO2TGEZzV7VDkW/EaeZaYveDFjkMtKYpS8KoeZdTMEU3ljUTu2McJU5goPlXRfWMX grCQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=O+SVGz/QwwQDImSPbxMLknJVY6/6roIp/5evt7khqi8=; b=0WwpgHzCsIO8sctFNQUUNvPFvz5W0twzC0iRmoW/bgkpzZ9RBsDvIvT50GC6NS7NcR jE1QkAb8ugGkGjuUy2cxOODzaGc+4EGq33nYA69W6V4zGJQt/1+fGxYZ/hIfQli0K/kW x1X55xgMajXAzI33X6HQCaW1SI+cNG8nguclj1nPy9cf4vacFmT8fTi8ykwW/+vvheGB 65y8pF64aO/VhehVFtmx7Kd0ffKRA0AWK28aYbhZcXut05oNdKJwxTAg5VVbMI3Toh5i aTDCx5PrPZneGFF3IEhnQAr2ntx3OythONNZZ9/V0ye6dI9TiJft1UWGZAf+GA2YM07J 73CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TVmki4I1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hw19-20020a170907a0d300b00726b4f91300si6337875ejc.269.2022.08.08.01.08.14; Mon, 08 Aug 2022 01:08:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TVmki4I1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241995AbiHHIFr (ORCPT + 99 others); Mon, 8 Aug 2022 04:05:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241997AbiHHIFc (ORCPT ); Mon, 8 Aug 2022 04:05:32 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37879D10E for ; Mon, 8 Aug 2022 01:05:31 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id t22-20020a17090a449600b001f617f2bf3eso4653949pjg.0 for ; Mon, 08 Aug 2022 01:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=O+SVGz/QwwQDImSPbxMLknJVY6/6roIp/5evt7khqi8=; b=TVmki4I1dSb+1aSt1UwuAmwywPp5Ykpxef49+Z58uTNcDh8SGKkS9NuaKfCpkNQcDO 0tjc/PD0zoncnQ47Jw/ZZ5EiC+1o/ngsmXCZkFoMpDlUu9vs0UBSQdH2xtSn0CpPJfMw jA4cTlIU+7xx7PB0Q9QLrJP+fiB6IIHkBNwiO05czQmuFbVquBEAu8MIVFeBGNvdEqfP FLPihOKNSZpCyWseKw9wa4vwhHg+NAwf7KjuSC2xJmCbxX4c5+Y2ozps/QCvwnqB4ULE 6TMWUGzT4Obt/kknCXCQLMf0rs0AM0Qsven6S6lvmv/CEE7CcIAU/O/V3cPCBs3wwPeV Ljrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=O+SVGz/QwwQDImSPbxMLknJVY6/6roIp/5evt7khqi8=; b=W/0SV93zKNlNrPWzTFXHkJKPeI44I0fyqQfKlkHnj9vBdO3BOWuwqiOx5NOnMBL/R5 NVO8BL9h3gqb2B+1EjkmGxos6zbVlMd/r5b19/crBv/nN7/8BrbRxMF2rFh7W6BSy+y6 CRVP/UAzHNM7Lt8AINdB6PJGwQcu3WZTBIecXnTSQhnSWLARCGkLcRfDCxLntzLIBy+G bExgz2nQdxRrsfyOfliaUiSdsMsvtOfTYyOdQlKl4tQWTKisD5dinJECL6i7UEW3x2vq euypz9U9n2f7yH1gKQF4h8isojSRN0S7kj9H3hJiNPkEcWTS79ZZYkm/KcCGVhMt2T1D 2v2A== X-Gm-Message-State: ACgBeo0HCsR4wtaD9n2LB2ZP4rZc7NgBJrCIqPqjgRotBhvTFSwE2WJM ZrM6Wnlt0f66pLhw84D2k8Wr X-Received: by 2002:a17:902:aa89:b0:16b:e514:54d2 with SMTP id d9-20020a170902aa8900b0016be51454d2mr17993521plr.127.1659945930573; Mon, 08 Aug 2022 01:05:30 -0700 (PDT) Received: from thinkpad ([117.193.212.254]) by smtp.gmail.com with ESMTPSA id l21-20020a17090a599500b001f4d4a1b494sm7516034pji.7.2022.08.08.01.05.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 01:05:30 -0700 (PDT) Date: Mon, 8 Aug 2022 13:35:22 +0530 From: Manivannan Sadhasivam To: Johan Hovold Cc: Johan Hovold , Greg Kroah-Hartman , Felipe Balbi , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Krishna Kurapati , Stephen Boyd , Doug Anderson , Matthias Kaehlcke , Pavankumar Kondeti , quic_ppratap@quicinc.com, quic_vpulyala@quicinc.com, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: Re: [PATCH v2 7/9] dt-bindings: usb: qcom,dwc3: add wakeup-source property Message-ID: <20220808080522.GB7601@thinkpad> References: <20220804151001.23612-1-johan+linaro@kernel.org> <20220804151001.23612-8-johan+linaro@kernel.org> <20220806150848.GH14384@thinkpad> <20220806165238.GM14384@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 06, 2022 at 07:09:44PM +0200, Johan Hovold wrote: > On Sat, Aug 06, 2022 at 10:22:38PM +0530, Manivannan Sadhasivam wrote: > > On Sat, Aug 06, 2022 at 06:41:37PM +0200, Johan Hovold wrote: > > > On Sat, Aug 06, 2022 at 08:38:48PM +0530, Manivannan Sadhasivam wrote: > > > > On Thu, Aug 04, 2022 at 05:09:59PM +0200, Johan Hovold wrote: > > > > > Add a wakeup-source property to the binding to describe whether the > > > > > wakeup interrupts can wake the system from suspend. > > > > > > > > > > Acked-by: Rob Herring > > > > > Signed-off-by: Johan Hovold > > > > > > > > So this is based on the fact that Qcom glue wrapper is supplying the wakeup > > > > interrupts. But isn't it possible that on other platform, the DWC IP can supply > > > > wakeup interrupts? > > > > > > Yeah, possibly, and that's why Rob suggested keeping the 'wakeup-source' > > > property also in the core node. > > > > > > > In the driver, the wakeup-source parsing has been moved to the Qcom glue driver. > > > > But this contradicts with the binding. > > > > > > That's irrelevant. The core driver does not implement wakeup support. It > > > was just added as a hack for the Qualcomm driver, and you won't get > > > wakeup-capability for other platforms by just parsing the property in > > > the core driver. > > > > > > When/if wakeup support for such a platform is added, then the core > > > driver may need to look at the property again. > > > > > > > My point is, the platform drivers are free to add "wakeup-source" property in > > the DWC node. Then in that case, the DWC driver should handle the capability, > > isn't it? > > No, not really. They wouldn't violate the current binding, but it would > arguably still be wrong to do so unless that platform actually supports > wakeup without involvement from a glue layer. > > Perhaps we should reconsider reverting the binding update adding this > property to the core node and only add it selectively for the platforms > for which is actually applies (if they even exist). > That sounds right to me. > > I know it is broken currently, but moving the wakeup parsing code is not > > helping either. > > It's not even broken. It has never even been implemented. > > Just because someone added a hack that should probably never have been > merged in the first place, doesn't mean we should somehow pretend that > we support it. > > > And... I'm aware of the fact that the binding should describe the hardware and > > not the limitation of the driver. So perhaps we should document it in the > > driver as a TODO or something? > > I'd rather just revert the binding update to avoid having discussions > like this. We don't even know if it's possible to support on any > platform yet (and remember that none of this has even been in an rc > release yet). > Okay. Thanks, Mani > Johan -- மணிவண்ணன் சதாசிவம்