Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp978180pxb; Fri, 22 Apr 2022 15:48:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8KULvLYvn+B5sKYlBDyvTyrO5/cRDDT2BqqMFWCtebWH42mbAYxTDoO4+EmoksJ0i6WCf X-Received: by 2002:a17:902:6ac1:b0:158:a295:ba71 with SMTP id i1-20020a1709026ac100b00158a295ba71mr6820634plt.49.1650667691342; Fri, 22 Apr 2022 15:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650667691; cv=none; d=google.com; s=arc-20160816; b=nvucPnCKAc9iYotmNvalxb0KT4lnAsLxyTmp7flcbS8McPmDRx16pWhLfaJ3kxzPSZ iPgfaTD4vM82ZEP5hznlEfXV9d1aNrKUfsa0mKSZpoTSDim7ERvmvdrtNmWqJ76vZZVC b9cdG9cKQX6PotsfOka75v7FcobhQwTtpI6s1beOGRh6O49I7pV1vFFfKvvDsaMgVxeG KciwnxKZmxLm7pbmU8ZHIBo+Y1U/fIevrj3Ng1NC1Mu/LaueE7Dt3GH18YDeTJqH2VFP I95RatPwiN2nZn3mHvrSByw6kGxzKAptwsp7IwCaMDhKaJYRHA34TKRUrCoVW6VErJcq HIlA== 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=U5kbOYIbw9W5idi/w7UWPQThlgNI5YFtm66gzqTVHwI=; b=qFu2/1n2TdrshxX0l5r+sTWfh8ngh8urMvixg6/I4e+x8y26jizmvXtKRAmjka4NfZ Mc4QRZeYM3bSPjeKMMVAamB2r2qK7BTl8qZ8MVP4FKnOKocHMLkZ61v0oMkkpwlV/HAB Aoh6t5Mvti2k/gGTCukAvCpJ2JJBn1yMXW6+5rOg/tOUJc9cXdDe8QVgYoi6mwQUtqM3 10RvPzR7JD9NIgag4ZMXcM2qarjsjHH5fqXdfTzlKQbpQJvdI5qG8TLi5us/MVIbQIQ7 7YiSuk801klC/aGolhWV/+6Wa27YN74Z8HRoQSGW8CNXOz3dQa2JG8RdWXzI30d9F1Hx Zuew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EosFqLT9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p34-20020a056a000a2200b004fa3a8e0041si10801670pfh.248.2022.04.22.15.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:48:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EosFqLT9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2386A3F9361; Fri, 22 Apr 2022 13:37:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229556AbiDVTSK (ORCPT + 99 others); Fri, 22 Apr 2022 15:18:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbiDVTSJ (ORCPT ); Fri, 22 Apr 2022 15:18:09 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 398E612ACC0 for ; Fri, 22 Apr 2022 12:04:55 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-deb9295679so9558259fac.6 for ; Fri, 22 Apr 2022 12:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=U5kbOYIbw9W5idi/w7UWPQThlgNI5YFtm66gzqTVHwI=; b=EosFqLT95BxHAVUXgvmDMUV5Lz2xaMtfJWrbZhJGacLzWlPy34JcgfMzn6ruT8Jsx1 /k/R+WO/a7/sW8WbwMoxUHuURYkIbCwrSeHhuFoEIigjXEhwSnf7lnkTrpCrS9B9b3oE tysYeR6jkN+E5fSBIA12eW/xrV9n6zaAKHLeQ= 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:in-reply-to; bh=U5kbOYIbw9W5idi/w7UWPQThlgNI5YFtm66gzqTVHwI=; b=U5BUiq2yNWy7CisR017/eKVySGfzG2O+Zrp8A5j/7alSQwmUab1Nb5oEjA/PoZCPuG KW+G4e4F35civ9DX9JMXnnBrfMq/Ag0Gjp+Q7sMg6jdG1lYsvIw1gTfMlTwvPCYyhIg2 DgGA7gXvzyUJ6uB1AfSmahlqAPdeyTaySutdqNv5o+fXAGBkgVP5sEk8WUfKWe9bQfGI BCi2eeIFs0VEtqJ2ZXfReXz4ktKUnq7UsfNBxsNxEZRHOZwrw1KjWYTxQfkVBfZ/KA4H VMhdhA/N52BigP9s8XBSJuvw+ReV/EotA3cMJtf9u9Jf1BZIu8yeJkh34GyctSANpVG4 5AgA== X-Gm-Message-State: AOAM532hfhraF3RrJ1m0BGxM4PqRJjUygFELqrQGGmCtpB7RqeH1MU41 lP6Gr9uIXSyuz12sWWNk3bUxLuamn1ILYQ== X-Received: by 2002:a17:90a:d0c5:b0:1c9:ec78:18e5 with SMTP id y5-20020a17090ad0c500b001c9ec7818e5mr17636056pjw.53.1650653079678; Fri, 22 Apr 2022 11:44:39 -0700 (PDT) Received: from localhost ([2620:15c:202:201:404c:8721:29:87a4]) by smtp.gmail.com with UTF8SMTPSA id ch10-20020a056a00288a00b0050a51a95e91sm3041025pfb.201.2022.04.22.11.44.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Apr 2022 11:44:38 -0700 (PDT) Date: Fri, 22 Apr 2022 11:44:36 -0700 From: Matthias Kaehlcke To: "Rafael J. Wysocki" Cc: Sandeep Maheswaram , Rob Herring , Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Felipe Balbi , Stephen Boyd , Doug Anderson , Mathias Nyman , Krzysztof Kozlowski , Len Brown , Pavel Machek , Linux PM , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , "open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:" , Linux Kernel Mailing List , quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com, quic_kriskura@quicinc.com, quic_vpulyala@quicinc.com Subject: Re: [PATCH v14 2/7] PM / wakeup: Add device_children_wakeup_capable() Message-ID: References: <1650395470-31333-1-git-send-email-quic_c_sanm@quicinc.com> <1650395470-31333-3-git-send-email-quic_c_sanm@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE 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 Fri, Apr 22, 2022 at 01:57:17PM +0200, Rafael J. Wysocki wrote: > On Tue, Apr 19, 2022 at 9:11 PM Sandeep Maheswaram > wrote: > > > > From: Matthias Kaehlcke > > > > Add device_children_wakeup_capable() which checks whether the device itself > > or one if its descendants is wakeup capable. > > device_wakeup_path() exists for a very similar purpose. > > Is it not usable for whatever you need the new function introduced here? I wasn't aware of it's function, there are no doc comments and the name isn't really self explanatory. In a quick test device_wakeup_path() returned inconsistent values for the root hub, sometimes true, others false when a wakeup capable USB device was connected.