Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1335940rwe; Sat, 27 Aug 2022 06:04:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR74RkSZZjhHA+5HBUovpMf4eLsN2FTMZE4c7T0Z+5RD9Lfqh2wpd2kIKrI4OzOki4I1RQMI X-Received: by 2002:a17:902:cec1:b0:172:e677:553b with SMTP id d1-20020a170902cec100b00172e677553bmr8139619plg.99.1661605453132; Sat, 27 Aug 2022 06:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661605453; cv=none; d=google.com; s=arc-20160816; b=dhyt9hyII5sCIbm9U2FniHVONKs2RoqKGCEfQLCYvi35yTuiJ16tubo3rpyWn8FuFi XeGX8GMArPq88CLqjwiGcITegA+yb5c4RcIUcZ+USVIXEGmWnYt3Z6ZC1+av3k2Wp9AD +LwmqucYlu5QzNtQlcbGxmd0MkN/GLocbaubM5ZltOKN50Xg6B1tAhhCgsJ1mpYDJ2a6 C6Hk3JNJyde1RmJpE4qy48VESUQBr176daHidgpBa+wKYallqyc139ZvxILA32MDqZHn 7Skf6CxhurzFEqRjUNThES79NcIoWCjtv6tg1AwEViDQ8nCUYxJkp/b7vu4IO27qZj7c nFfQ== 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=Xm1nhA4qs4Pjpc09I2GPMsrr76SU/YUnQePs9+vlA4Y=; b=DCCYaBGx4sgDTkDcrJG3ZRERboxLDKNHB8FY07SEoipnsI2NZWG8WqEp7mO3P4pxP5 tn0I9NgBtR5/7EsLXwRDISG/XS+D3lh3qN5TxHIB6V/lVgWK3E0RXSgvSFAMcll2WK3J jfsht0GCpVyqia1U1iW2i40mlWQTPXhPCzHg5swmtbg3cT3wNv10GiXOsL0i4Kp9v6tJ yK4SPYyqPh1U7GK3Jk59iJuHY3PNyUBSLvjKWCIAEjQiup6p6I9GOqJ7ywHXcFq31FaJ j5IUrIfTKIFIj47d9HOOK0s3hx/05PajxIzKcRtjEnrxx2Zb/MyoYrQHkPWoStY12YeX fusQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PWCRF10Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y11-20020a656c0b000000b00429efb62b08si4264637pgu.645.2022.08.27.06.04.00; Sat, 27 Aug 2022 06:04:13 -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=@gmail.com header.s=20210112 header.b=PWCRF10Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbiH0MFz (ORCPT + 99 others); Sat, 27 Aug 2022 08:05:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbiH0MFx (ORCPT ); Sat, 27 Aug 2022 08:05:53 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5929612602; Sat, 27 Aug 2022 05:05:52 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id t129so3978835pfb.6; Sat, 27 Aug 2022 05:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=Xm1nhA4qs4Pjpc09I2GPMsrr76SU/YUnQePs9+vlA4Y=; b=PWCRF10ZlJ8x5xSxr1AjjIxi6mMod5unparcdBbL3CcXvXAQFnQ2TJoGEUCRy5POdy UhgUv0+3VT6SUzsIC9qjmOULw14A76zXogxudPTe5lPsfxZVTXNvPRRLXYYgf5B2jZD+ 59Q4eIhj9GdjbS23gzjW+4EwJpd8NFK9XOde7YUOlmMv263S/sNdE/375KtEmOsiNIgH +VZS31LlrnyxD+t8LCFijQzSJiiXH2U/fB0WLRbAkuzBI4FPKw3iF4e+VSQG7aPu6+nT PflxEjpZvfi4BcPt1IHw73VMAfYPxJdlgrystLflrRsW9K74a30q/vorUcCQaJg4NZpC 7a7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=Xm1nhA4qs4Pjpc09I2GPMsrr76SU/YUnQePs9+vlA4Y=; b=VmdNJQLEBl4VfqqdOF4zYoDay4Rgvwiy16mN/MEekp6FKfBF+4/DP6haJqZFM3gDDb czmH7nK5pYKyirw8p+bVevHCZaLqlP0kvLLUCM7n8oHtr7bRvh6pKG7v3myV8ItPcPrx w/xsvAuWY9SlMzBM9rknv6l2EbgbeG7bo35ijsB+Dvtrh/zXfkAU6YgAzeM+SdjcQMYZ HL/OQpgp7O8bpiZN8u0Jes9C3ingxyUFmI1Ky2ntKyDgHM4NEUhAd+7TmIjoJJrfPBnw BvvpIIAgyolzlgj8/7iuaAJFMJ8qvv+eI/fssSEZBOxdmIgcvdMkY69Ecd8FZmAFfDWu TN+A== X-Gm-Message-State: ACgBeo3NY0IF2AM/ipP/hGFg4n0lscNuyQ0r01hSB2I0lsLwOKmuPDaW NoA9cDOfy7mdmJN9dtdSDRg= X-Received: by 2002:a63:da13:0:b0:42a:7f03:a00e with SMTP id c19-20020a63da13000000b0042a7f03a00emr6777867pgh.332.1661601951215; Sat, 27 Aug 2022 05:05:51 -0700 (PDT) Received: from DESKTOP-KA7F9LU.localdomain ([49.207.219.204]) by smtp.gmail.com with ESMTPSA id t15-20020a1709027fcf00b0017446f8d494sm2621921plb.240.2022.08.27.05.05.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Aug 2022 05:05:50 -0700 (PDT) Date: Sat, 27 Aug 2022 17:35:45 +0530 From: Vimal Kumar To: Greg KH Cc: chinmoyghosh2001@gmail.com, Mintu Patel , Vishal Badole , "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v2] PM: runtime: Add support to disable wakeup sources Message-ID: <20220827120545.GA332@DESKTOP-KA7F9LU.localdomain> References: <20220825173457.23298-1-vimal.kumar32@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,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 27, 2022 at 10:00:21AM +0200, Greg KH wrote: > On Thu, Aug 25, 2022 at 11:04:41PM +0530, Vimal Kumar wrote: > > User could find many wakeup sources available in the bsp, which > > they won't be using. Currently users can only get the status and > > list of enabled wakeup sources, but users can't disable it runtime. > > It's very difficult to find the driver for each wakeup sources from > > where it's getting enabled and make the changes for disabling it. > > > > This will help users to disable any wakeup sources at runtime, > > avoiding any code change and re-compilation. A new class attribute > > "disable_ws" will be added in the wakeup calss. If user want to disable > > any wakeup sources, user need to find the wakeup dev node associated > > with the particular wakeup source and write the devnode name to the > > class attribute "disable_ws". > > > > Example: > > Need to disable the wakeup source '1c08000.qcom,pcie'. The dev node > > associated with this wakeup source is: > > cat /sys/class/wakeup3/name ==> "1c08000.qcom,pcie", then for disabling > > this wakeup source : > > echo wakeup3 > /sys/class/wakeup/disable_ws > > > > Co-developed-by: Mintu Patel > > Signed-off-by: Mintu Patel > > Co-developed-by: Vishal Badole > > Signed-off-by: Vishal Badole > > Signed-off-by: Vimal Kumar > > --- > > Documentation/ABI/testing/sysfs-class-wakeup | 16 +++++ > > drivers/base/power/wakeup_stats.c | 65 +++++++++++++++++++- > > 2 files changed, 80 insertions(+), 1 deletion(-) > > Based on previous discussions on the original submission that you seem > to have taken private, sorry but no, I can't even consider this > submission from you. > > Please work on other portions of the kernel first to get used to the > development process. > > Rafael, please don't worry about this. > > greg k-h Hi Greg k-h, My sincere apologies for responding privetly on the original submission, It was not intended to do so. There was some issue while responding via mutt and I end up responding privetly. I have responded publicly on original submission as well. Please consider this second version, I have taken care of some previous reviews. Thanks Rafael, for the review comments as well, I will be respondig to the queries in a seperate thread. Warm Regards, Vimal Kumar