Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp932039rwe; Thu, 1 Sep 2022 09:42:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ZIOwdg9Ibu+LTAmHYqxeF5NUeqDkWD9ipk8/+ws72oMTHDoFmWitNEkaFYKpsG1uJ0Bxd X-Received: by 2002:a17:907:86a9:b0:741:79ed:63c5 with SMTP id qa41-20020a17090786a900b0074179ed63c5mr15258020ejc.672.1662050545588; Thu, 01 Sep 2022 09:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662050545; cv=none; d=google.com; s=arc-20160816; b=A7FpTKtF0XBMEyt1iPLRA//k0/k+ACLSw5VMrhK5C58id9Z+JtUSTV4S3dh6ClLoMi pkLnddK1VM/F6EiIYQEXKS0GB/oUEU0fGzqoOT6q82PPH9lCej3vDTA+QP4obw6eQCTM D5WFDetVYFH+ZTPnxYa4vB7rV7iR/02zOa08SIQ2YQvjRITx+zuwlJkgYnWaROQ/TW6v AMnEQRE2ZrMLn9d4VOU1UMcZzJ8wdhzMKUPYHSqCDKR+dnEPXCmBpEK4hLgz/dulBXT6 0dU6E8M6EFqy2pARpu3eNRVlnjRr7pi5cEzPdGrat4uk40s0zTjONFqL1JOZi6HhA9Ze 2K5Q== 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=30DaToB+ZolJnoFkQbAeB6XKw5+AGbzIm9hAKifKPSA=; b=Funqa4onRECDdwG/p61RbfNm6KL381TpJOM/MJBkHdt5hOHt6Cal3OQaJlU0eams9I iadyYkQdjoV33O8dm6Y3fTCLcbd2JNAbVWuYIRdteVToyBIXuRx7SR+onYskWFb0afDC jZGEQCb4SZs3CSt8mqqCRPNAguxDgO/1fEJR8MAsfFrGuOd+eOKe7/6ddvf1icIs62DW laHetIOCJSMYUqSP87PTn5atf/pg7aNJN0qSz4yvjctGqM4cEjS/spNfAedLnm5r7ITX 7phv30Nlb31UVXy/Lccwj0CRtP7HQrtZsn24vRnEC2cYrDKoOYONY/Vm6YzRLi6xUPAQ 48xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0T35UNSH; 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 gb19-20020a170907961300b0073d6a7e6662si14308020ejc.798.2022.09.01.09.41.59; Thu, 01 Sep 2022 09:42:25 -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=0T35UNSH; 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 S234461AbiIAP44 (ORCPT + 99 others); Thu, 1 Sep 2022 11:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbiIAP4z (ORCPT ); Thu, 1 Sep 2022 11:56:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96DEA8000D; Thu, 1 Sep 2022 08:56:54 -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 196F861F31; Thu, 1 Sep 2022 15:56:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE578C433C1; Thu, 1 Sep 2022 15:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662047813; bh=PO3JHixyGeTvQB4eTxI5p4EHFoeyb/XZAm6c6Dd80j0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0T35UNSHQHSgOBUKHNO9VBJ4BCdHZK/qYKZOXB4euigOIxuLMeBeNeQXG2NnGbzPo 69V1C046Lmbr9BIZXNGGWplxACTZMdvDQnBEiDj1VbhTjK3o3LwT80tPrdv0gf3cx1 a0eUc2sOlFbPEW6WWLONFhW74FIq5wtbX/tYV468= Date: Thu, 1 Sep 2022 17:56:50 +0200 From: Greg KH To: Vimal Kumar Cc: chinmoyghosh2001@gmail.com, Mintu Patel , Vishal Badole , "Rafael J. Wysocki" , Pavel Machek , Len Brown , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] PM: runtime: Add support to disable wakeup sources Message-ID: References: <20220821134533.22901-1-vimal.kumar32@gmail.com> <20220827114028.GA258@DESKTOP-KA7F9LU.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220827114028.GA258@DESKTOP-KA7F9LU.localdomain> 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 Sat, Aug 27, 2022 at 05:10:28PM +0530, Vimal Kumar wrote: > On Sun, Aug 21, 2022 at 04:03:40PM +0200, Greg KH wrote: > > On Sun, Aug 21, 2022 at 07:15:32PM +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". What userspace tool will use this new interface? Who is supposed to interact with it? Why is this even needed? Who would disable this dynamically, shouldn't the kernel handle this all automatically with no need for usersapce to get involved? What is the root problem here you are trying to solve? thanks, greg k-h