From: Liam Girdwood Subject: Re: [PATCH] ASoC: Intel: fix broadwell module removing failed issue Date: Thu, 28 May 2015 16:44:34 +0100 Message-ID: <1432827874.2726.57.camel@loki> References: <1432793658-9463-1-git-send-email-yang.jie@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by alsa0.perex.cz (Postfix) with ESMTP id 564F42604BC for ; Thu, 28 May 2015 17:44:50 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: broonie@kernel.org, alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Thu, 2015-05-28 at 17:09 +0200, Takashi Iwai wrote: > At Thu, 28 May 2015 14:14:18 +0800, > Jie Yang wrote: > > > > From: Liam Girdwood > > > > In haswell-pcm module unloading, we can't free runtime modules > > directly, for they may be already freed in runtime suspend. > > > > Here add executing suspend call to unload runtime modules, only > > for status not equal to RPM_SUSPEND, to fix broadwell module > > removing failed issue. > > What if a kernel is built without PM support? (Practically seen, it's > never any serious problem, though.) > Keyon, it sounds like you will still need hsw_pcm_free_modules() and should call it after the PM put/disable on module remove. You will need to add some code too that will check the memory state prior to doing any unloading though.... Liam --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.