Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757254AbcKXQK5 convert rfc822-to-8bit (ORCPT ); Thu, 24 Nov 2016 11:10:57 -0500 Received: from mga04.intel.com ([192.55.52.120]:3814 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757195AbcKXQKy (ORCPT ); Thu, 24 Nov 2016 11:10:54 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,543,1473145200"; d="scan'208";a="8960717" From: "Winkler, Tomas" To: "git@vger.kernel.org" , "Greg KH (gregkh@linuxfoundation.org)" CC: "Usyskin, Alexander" , "linux-kernel@vger.kernel.org" Subject: RE: [char-misc-next] mei: request async autosuspend at the end of enumeration Thread-Topic: [char-misc-next] mei: request async autosuspend at the end of enumeration Thread-Index: AQHSRj7WsbWcWoZfOE2E/htadCzu2KDoR37g Date: Thu, 24 Nov 2016 16:10:49 +0000 Message-ID: <5B8DA87D05A7694D9FA63FD143655C1B5433132E@hasmsx108.ger.corp.intel.com> References: <1479987242-32050-1-git-send-email-tomas.winkler@intel.com> In-Reply-To: <1479987242-32050-1-git-send-email-tomas.winkler@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMThkYmM4OTItMWViZC00NDc3LTk4YjAtYzgzYzMyNDg3NzI2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImpFWWhhZTJkZUpLTnZQNE55TXlmVG04S1wvWFMrNDhIc3k1UlBHbjY2UlVrPSJ9 x-originating-ip: [10.184.70.10] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 868 Lines: 20 > > From: Alexander Usyskin > > pm_runtime_autosuspend can take synchronous or asynchronous paths, > Because we are calling pm_runtime_mark_last_busy just before this most of > the cases it takes the asynchronous way. However, when the FW or driver > resets during already running runtime suspend, the call will result in calling to > the driver's rpm callback and results in a deadlock on device_lock. > The simplest fix is to replace pm_runtime_autosuspend with asynchronous > pm_request_autosuspend. > > Cc: # 4.4+ Looks like git send-email is not able to parse this address correctly though this is suggested format by Documentation/stable_kernel_rules.txt. Create wrong address If git parsers is used : 'stable@vger.kernel.org#4.4+' Something like s/#.*$// is needed before parsing Cc: Thanks Tomas