From patchwork Thu Feb 25 00:11:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Basehore X-Patchwork-Id: 8415201 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D308FC0553 for ; Thu, 25 Feb 2016 00:12:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1124A20295 for ; Thu, 25 Feb 2016 00:12:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E0C17202EB for ; Thu, 25 Feb 2016 00:12:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759043AbcBYALv (ORCPT ); Wed, 24 Feb 2016 19:11:51 -0500 Received: from mail-pf0-f174.google.com ([209.85.192.174]:36522 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758999AbcBYALs (ORCPT ); Wed, 24 Feb 2016 19:11:48 -0500 Received: by mail-pf0-f174.google.com with SMTP id e127so21883268pfe.3 for ; Wed, 24 Feb 2016 16:11:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iEsXOVdUe3RyKzdogXawX+/lZJVScqNCMZYJ0lOCjEc=; b=ZFCwfqV4AU52g0Ah3c+jtjuGOzvzV4OW9esDPRTJFuw1HxqDCTllBCfQW3UB46vRq4 chkV2p3+hPV3HX+5eYbMyvCm5MONs2QrQSTys5R7rM2McW9OtFDBj1uSTh6S9op3FOtJ sEljhY24kQq79VQ73WQBwdmf/gIYW8WamJ7TE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iEsXOVdUe3RyKzdogXawX+/lZJVScqNCMZYJ0lOCjEc=; b=GD3TsaV/NOZWfDBN7xLpIjIq8UV1dP8MoMVwp0JhmDhd7brl7LcEIShh1AtobUCPKf hcwLKtDDYD6GqN6Gl4fS7679mOETsBLIIThawNk5GAxKIRUyNVxiwpHsilv3/yiNNj5I Mx2wQFJaElsxWUrzciK2TngxfxpPp1dQLKad3nDKgNGqPQ3fBruxjHk98dqD8RqXkQ/b 5D1fJYrTNYV6X9wmKdlUIAs0mnm3hRlzu/yK8Rsq5+lDEEmMwDAACRbP2sxJAJJQ3zvY m2uBEXLaGF4eY7X9yGGiFtEVgVD800lir/OzzJde9R8qJXJorTXdAO7fdUdRPzZRfE3f TNuA== X-Gm-Message-State: AG10YOQgh5avd/kic2eUjNGNZrOn/boummKCevZGwl+/2CNTbtctl4rSBdq5E7Nuo94Cwg== X-Received: by 10.98.65.91 with SMTP id o88mr58351360pfa.114.1456359102431; Wed, 24 Feb 2016 16:11:42 -0800 (PST) Received: from ketosis.mtv.corp.google.com ([172.22.65.104]) by smtp.gmail.com with ESMTPSA id y15sm7497671pfi.16.2016.02.24.16.11.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Feb 2016 16:11:42 -0800 (PST) From: Derek Basehore To: linux-pm@vger.kernel.org Cc: "Rafael J . Wysocki" , Len Brown , Pavel Machek , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org, Derek Basehore Subject: [PATCH v1 3/3] scsi: allow scsi devices to use direct complete Date: Wed, 24 Feb 2016 16:11:29 -0800 Message-Id: <1456359089-19807-3-git-send-email-dbasehore@chromium.org> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 In-Reply-To: <1456359089-19807-1-git-send-email-dbasehore@chromium.org> References: <1456359089-19807-1-git-send-email-dbasehore@chromium.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This allows scsi devices to remain runtime suspended for system suspend. Since runtime suspend is stricter than system suspend callbacks, this is just returning a positive number for the prepare callback. Signed-off-by: Derek Basehore Reviewed-by: Eric Caruso --- drivers/scsi/scsi_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_pm.c b/drivers/scsi/scsi_pm.c index b44c1bb..7af76ad 100644 --- a/drivers/scsi/scsi_pm.c +++ b/drivers/scsi/scsi_pm.c @@ -178,7 +178,7 @@ static int scsi_bus_prepare(struct device *dev) /* Wait until async scanning is finished */ scsi_complete_async_scans(); } - return 0; + return 1; } static int scsi_bus_suspend(struct device *dev)