Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2982168rwb; Sat, 6 Aug 2022 09:58:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ybQ11Ky5kCGzKgUrw2hseNcHfjOdGlwuyE1DIRwdH3YlvqIv3IZgaVwVURtxUHnkaSQEz X-Received: by 2002:a63:2b84:0:b0:412:5277:99dc with SMTP id r126-20020a632b84000000b00412527799dcmr9597607pgr.208.1659805082393; Sat, 06 Aug 2022 09:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659805082; cv=none; d=google.com; s=arc-20160816; b=F5iUdPNTL41czetAUQEUuAREoH7m1j58EvUomP+3xsHDAaF/xDgiMoeK054YPZvKhV 3XjKIa+MH8zFJw5f8+eCLweR9/GHoJ8O6yZ64vcLl+VK4j3yibBwC+gWyvyVlM3K50mY uEgLw/CgE8iqUL39ONjzZrb1uRdPC/eMmtU+tuUUgGkAVjtr5XtE5vMAoubH2GktGUmV XCcd/AK9fcAK5xahBGQSoiyHe4oWqnk32GqVbQd9/hxLOFv/MxT4I/et/+vmWSITUQ2y wYeehsS/luNms2zZZQw5S8QU4eYESerU7t10cD5JjnlMEBYg+VQBS9iGQRuaeF0yGd/J ODOQ== 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=tbINJ7QsOYoYb8ZFX+exoUH6wh4ff1wK54fBzhvpouw=; b=Xoqbeuusm03jeiXvqVDt39tK9LZKn4LfMg374FLewZn0pp7b/U/W8DEuFXLSnvFIki kL5Har1A0lSyJclDRyH7PLrywLFZsiiFVI2b9CRqzd5OAUeTH82GXPL7eEkyrA1s9kK9 FnbPi0Wdy8ycguuwoEbw8kQGivysyk6RJl7jD3g2EYdeaJ8RugXsMFKQyToNtWfN6ogs Mu3PCwkc01xc16RiCC5Vrka5FKmxO4FesnVSKXy80F2EvyXn2ggMXWjYOXBbDQUA1Sw6 q7ilazhIiJ2sKQJjSZizPK2loEfBtPGjtwJI2dztQngDjuQjIPR680BuGBOKORa/XJGs g/ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JOLyQbC/"; 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 t7-20020a634607000000b004161b3b9565si5776491pga.590.2022.08.06.09.57.48; Sat, 06 Aug 2022 09:58:02 -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="JOLyQbC/"; 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 S231795AbiHFQwv (ORCPT + 99 others); Sat, 6 Aug 2022 12:52:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232360AbiHFQwu (ORCPT ); Sat, 6 Aug 2022 12:52:50 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA3C3DEAC for ; Sat, 6 Aug 2022 09:52:48 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id x2-20020a17090ab00200b001f4da5cdc9cso10933067pjq.0 for ; Sat, 06 Aug 2022 09:52:48 -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=tbINJ7QsOYoYb8ZFX+exoUH6wh4ff1wK54fBzhvpouw=; b=JOLyQbC/YMjp6EweqOCx5ld/GN+PK4jwMP0XxvuVyYh9wO2unrHYuKJF32mfYXhGV6 F0WYdaUb9qRQjhplg92+CUn3PP6MCZuDcMUXJvXJOfXDb6QIyELTbxDl9FuJCr5UiAol h8gW2GFN+ikLlDIYzwq5jlVhbZdxOwqBKSmrNKjeVpVctmFPUwkYw4dfiNqMQeX3Jso/ +fI8v5+eIyaYd45EsqVtHuP3xFVt4fiZdmj7d3CACYAjvxdymM0aTyLY0F7c6VEZZnG4 pQ7A5reXVmP8cMlHc8ch57dHzBzfAugQyLfDx0DZKi+NuY1WzXQKCLEDkj0m7DRKdfHZ HDtw== 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=tbINJ7QsOYoYb8ZFX+exoUH6wh4ff1wK54fBzhvpouw=; b=OjFRHozzXUYYA3pF1MChQ2oirP5gaeYVzslaOQufiA5u9VuzO4vmRJ9GDA/iDbr/Rq n/vRsAoUrydc1gzeO2B+ee6u68XoJX0xFiUEKlZXeaMD/FKZdzxlAPftcMJhQkq/u+ek JcRGvblBRC1uo8Gs6lDxg24aqMt4/rG165zbebynJCw8Uq7ETcng8pqYVQCYU4xjqHEB EjnxXSzWna1z7PPNSCz6+fXmZstNi9jCI/lTLKO9hwuZ1Kieak+w2IpBGay4JgKVZndU pN6reL0esqdz60hiP8dioRSV0XvM4BidNaJXXh0D6UyVNq/NpM3Hfx43DZ+9g9RZv4bz WzOA== X-Gm-Message-State: ACgBeo3xpW4Gy30IPnvpNlvoF3YsaWjaJ6/bzyYc8gMj70MCbuPIxXRd 0CDuGnWh3emu5w7YgI0jHdHm X-Received: by 2002:a17:902:8d8a:b0:16f:21fb:b97a with SMTP id v10-20020a1709028d8a00b0016f21fbb97amr11712794plo.160.1659804768082; Sat, 06 Aug 2022 09:52:48 -0700 (PDT) Received: from thinkpad ([117.202.188.20]) by smtp.gmail.com with ESMTPSA id u14-20020a62790e000000b0052d78e73e6asm5189736pfc.184.2022.08.06.09.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Aug 2022 09:52:47 -0700 (PDT) Date: Sat, 6 Aug 2022 22:22:38 +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: <20220806165238.GM14384@thinkpad> References: <20220804151001.23612-1-johan+linaro@kernel.org> <20220804151001.23612-8-johan+linaro@kernel.org> <20220806150848.GH14384@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=unavailable 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 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? I know it is broken currently, but moving the wakeup parsing code is not helping either. 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? Thanks, Mani > Johan -- மணிவண்ணன் சதாசிவம்