From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756105AbcB0IjG (ORCPT ); Sat, 27 Feb 2016 03:39:06 -0500 Received: from mga14.intel.com ([192.55.52.115]:3768 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753316AbcB0IjE (ORCPT ); Sat, 27 Feb 2016 03:39:04 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,507,1449561600"; d="scan'208";a="896117858" Date: Sat, 27 Feb 2016 10:38:57 +0200 From: Mika Westerberg To: "dbasehore ." Cc: Linux-pm mailing list , "Rafael J . Wysocki" , Len Brown , Pavel Machek , Greg Kroah-Hartman , linux-kernel , "Martin K . Petersen" , linux-scsi Subject: Re: [PATCH v2 3/3] scsi: allow scsi devices to use direct complete Message-ID: <20160227083857.GY1770@lahna.fi.intel.com> References: <1456359748-22838-1-git-send-email-dbasehore@chromium.org> <1456359748-22838-3-git-send-email-dbasehore@chromium.org> <20160227072641.GX1770@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 27, 2016 at 12:10:03AM -0800, dbasehore . wrote: > A device is not able to use direct complete if its children do not > also use direct complete. Even though the SCSI layer leaves devices > runtime suspended, the way it does it still prevents its parent from > using direct complete. Okay. Do you need to provide ->complete() hook that then resumes the device when system is resumed (since the device resume hook is never called when direct_complete is set)? Along the lines of pm_complete_with_resume_check().