From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756826AbcI1DSo (ORCPT ); Tue, 27 Sep 2016 23:18:44 -0400 Received: from mga09.intel.com ([134.134.136.24]:62628 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752805AbcI1DSf (ORCPT ); Tue, 27 Sep 2016 23:18:35 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,408,1470726000"; d="scan'208";a="173960095" From: Chen Yu To: linux-pm@vger.kernel.org Cc: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Lee Jones , linux-kernel@vger.kernel.org, Chen Yu Subject: [PATCH 0/2] Define positive return value to RPM_SUSPEND for runtime-suspended devices Date: Wed, 28 Sep 2016 11:26:30 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set is to define the positive value returned by device .prepare() callbacks, which is used to indicate the devices are OK to remain in runtime-suspended during system sleep. A precise return value would make the code more readable. Based on this definition, optimized the suspend process in intel-lpss driver. Chen Yu (2): PM / sleep: Return RPM_SUSPENDED to keep devices in runtime-suspended mfd: intel-lpss: Avoid resuming runtime-suspended lpss unnecessarily Documentation/power/devices.txt | 8 ++++---- Documentation/power/runtime_pm.txt | 2 +- drivers/base/power/main.c | 8 ++++++-- drivers/mfd/intel-lpss.c | 9 +++++++++ 4 files changed, 20 insertions(+), 7 deletions(-) -- 2.7.4