Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1149109rwe; Sat, 27 Aug 2022 01:37:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR4gwi0rJOfbB3DZHVu3jQnK10wR6rgBkPVD6zbNh+s7IHvKjn79j12GhKfSZh0/yAdR1AP0 X-Received: by 2002:a05:6a00:1943:b0:536:2bef:2f93 with SMTP id s3-20020a056a00194300b005362bef2f93mr7285307pfk.34.1661589450827; Sat, 27 Aug 2022 01:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661589450; cv=none; d=google.com; s=arc-20160816; b=LPwPjk+pVvmOSjDFDYQinIcBhuPr5tRu47W+AJ5HDD1yOEbDJu0vpwILORJyFKQuFl x/28bl0N0kOW+HWqEsM93AXNgZqKMDYfQ1XkW2J3cd3CuvCb26Q2BrCPH0WnGvhFQMr5 hTdCRI2BXqGs/jPPtbACOHzxWZ2IY2lYMx2+CNClUnZOXWCdQL13hZ+fziof5IFpzs7b 8r2uQyelWGdoFfaE0x6QKTOZBo+CT82KUXvzQ6q2NkSF6wmQpAQXWbqpgRIOydq2CtAH MagAwoWSE6KoBUyUBss+jlKBrXeEkKnV3EmRYqVjXuK4QzFYVNBtf+OiMPPtyt5kAZrH /etQ== 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=CW+rDdOkA7L+2s31YCJxTWKzHCwHtWcsXeYzRB/B1iA=; b=fi23A0DOYrZIzPttPr94MQ7m1xU99zgyp0+TrKvztb5MPf9+ysrH0jtWRltdpp329T 3iDX9avibfGw3Acf0oIHPZ1M7ufGr3vkQHcJN15AejZh9GhrSKg2QCITCGXUTMgnlB52 +VYkohFqONjAXP8DBwVG9SFkqUMAmCobfkfNmhHFExhqymRPQcPSEBEwzDa/fw33lTyF aqnIIb3ZlLmrjUeoVVVkUDgXjV92nDQk3IAvBgCHGKPNGKjCakKAWyEgLeiNRZkDyRdw mVGy5Te5OEF35mVNNitdsaxtrydQtmj+gabGbi/ph18lBF1xOZBnwR3MsTglngaKfmew 5Jmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Eqq6eTo8; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k185-20020a6384c2000000b004224f632c9asi3785651pgd.328.2022.08.27.01.37.17; Sat, 27 Aug 2022 01:37:30 -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=@linuxfoundation.org header.s=korg header.b=Eqq6eTo8; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233193AbiH0IAL (ORCPT + 99 others); Sat, 27 Aug 2022 04:00:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231452AbiH0IAJ (ORCPT ); Sat, 27 Aug 2022 04:00:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A18515702; Sat, 27 Aug 2022 01:00:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EC079612A8; Sat, 27 Aug 2022 08:00:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A24AC433C1; Sat, 27 Aug 2022 08:00:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661587207; bh=Fnq8NIGJXiku9CNy3wBtWa2wsxQQpEDGAa8sHzP/QBg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Eqq6eTo8MVP0sp/uExWMxflFAbzxQkG4qCNnSCL6oNYYrHySyE98Solis3BdxVsSh Mr6y0DLjf/gwTolfDjCKm/VBoiXlrodxzkWU/nUGaJ0rNflOZjq041u6uDg/kPTj4l BSmCOUsjsYQUrV8GAtnzA/UBqsWssPRpYlxjUZvY= Date: Sat, 27 Aug 2022 10:00:21 +0200 From: Greg KH To: Vimal Kumar 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: 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: <20220825173457.23298-1-vimal.kumar32@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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