Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5417093pxu; Thu, 22 Oct 2020 01:29:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoWf2d+JAqftjOFXeOmHU0rpDrnJHyY3JstN3RAsskX6ATmp6k9C0gPNml3QmwRBtJFj+r X-Received: by 2002:a05:6402:1ad9:: with SMTP id ba25mr1246108edb.120.1603355371666; Thu, 22 Oct 2020 01:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603355371; cv=none; d=google.com; s=arc-20160816; b=bVfR7oRfTz3lgc5PMztfIF2uxwW6Zqsis91dieMs01Yr1VzkfCNggV/PMEVVDAq1od ve7G5be52K/J7KB/4TxB3xhwIBKVCvBM5iH1tblRRI72ZM1dJJdBe0KFNXvHftUV1CrI GpSQQUN/zzIiqjddfDa34vLm76tL+004QxKYZj3J0bPxZuCeWZioGmu5PjvopTABseCA wRORIaHFcxC7xynI5TqTkfXAV+2cJ/jIE64zo7E3hwEMbxXQoJxwsQjQOB/JJcLViDSg pyxYh3sLWCv0XkmXTtXMAwULxF486SHAYQdEM505uWT5m66EsdKctEa4JEVNyqxWap8d ykYg== 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=+DqE54aBBOlNKaj76ycqiYS8syh8n+2pdj1J18vWT44=; b=gxCXI/yGERAi4t6winjistA+1Qn83HpsQSmLUGXy1qu+Cs89bOuTC7V6bVVsL/mT1y vBDIUXuQgabVBmoMzhY4riPaQ7llhSZ8yZoindYZYqYfUz1ozDiZ3g0l6QNF+X42d5Ny iyizijSh7GLzfvqzV2FYp0PVnDC9g6wfxP+uXqzwdP8T4x3q3Rwab4n1UnCxWk6cDJn4 0VP5lwaXyFgRslDpXoklXl1IcKbwncvG2QckQEQN3ueakl3lUm/cR4Df7GFJueWUimQS E6k+HNVsqmItMDCZ7JSShT4tGRpFrOAY+FUYAlI3V1v2ZEvQ7PI1HWGuAaQ/DqHMuRO5 utLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sVEOe1U5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si405735eju.647.2020.10.22.01.29.09; Thu, 22 Oct 2020 01:29:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sVEOe1U5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502881AbgJVFbs (ORCPT + 99 others); Thu, 22 Oct 2020 01:31:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:38544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392324AbgJVFbs (ORCPT ); Thu, 22 Oct 2020 01:31:48 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 328532225F; Thu, 22 Oct 2020 05:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603344708; bh=c8Wft23L/OeRjPmbwqMGKdGIjZWj83EhGedVahVaRLQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sVEOe1U5r69NdS5pKv8pG1MpgKVIaf89W85IcxtsFc6v1wBrj38tClG2oFO3JWn0d HVBlbAiD2mtyxLFgf42d+euq52651Mcg+/SH5tTRwM46z1FhaNYO9PxE/IqE1HU+F2 OykJOtA/FeRw7ftwBHav4t/Fg4Y0gyQLh/xNsMTg= Date: Thu, 22 Oct 2020 07:31:43 +0200 From: Greg Kroah-Hartman To: Chen Yu Cc: "Rafael J. Wysocki" , Len Brown , Andy Shevchenko , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PM / sysfs: Expose suspend resume driver flags in sysfs Message-ID: <20201022053143.GB6523@kroah.com> References: <20201022032324.25308-1-yu.c.chen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201022032324.25308-1-yu.c.chen@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2020 at 11:23:24AM +0800, Chen Yu wrote: > Currently there are 4 driver flags to control system suspend/resume > behavior: DPM_FLAG_NO_DIRECT_COMPLETE, DPM_FLAG_SMART_PREPARE, > DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME. Make these flags > visible in sysfs as read-only to get a brief understanding of the > expected behavior of each device during suspend/resume, so as to > facilitate suspend/resume debugging/tuning. > > For example: > /sys/devices/pci0000:00/0000:00:15.1/power/driver_flags:4 > (DPM_FLAG_SMART_SUSPEND) > > /sys/devices/pci0000:00/0000:00:07.3/power/driver_flags:5 > (DPM_FLAG_NO_DIRECT_COMPLETE | DPM_FLAG_SMART_SUSPEND) > > Acked-by: Len Brown > Signed-off-by: Chen Yu > --- > drivers/base/power/sysfs.c | 29 ++++++++++++++++++++++++++++- > 1 file changed, 28 insertions(+), 1 deletion(-) There is no Documentataion/ABI/ entry for your new file, which makes this patch impossible to properly review by anyone, and prevents it from being able to be accepted. Please fix. thanks, greg k-h