From: Takashi Iwai Subject: Re: [PATCH v2 2/3] ASoC: SOF: acpi: add module param to disable pm_runtime Date: Thu, 13 Jun 2019 21:04:28 +0200 Message-ID: References: <20190612164726.26768-1-pierre-louis.bossart@linux.intel.com> <20190612164726.26768-3-pierre-louis.bossart@linux.intel.com> <20190613184801.GV5316@sirena.org.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 66133F80791 for ; Thu, 13 Jun 2019 21:04:29 +0200 (CEST) In-Reply-To: <20190613184801.GV5316@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Mark Brown Cc: alsa-devel@alsa-project.org, Pierre-Louis Bossart List-Id: alsa-devel@alsa-project.org On Thu, 13 Jun 2019 20:48:01 +0200, Mark Brown wrote: > > On Wed, Jun 12, 2019 at 11:47:25AM -0500, Pierre-Louis Bossart wrote: > > Add debug option to disable pm_runtime. This is not intended for > > production devices but is very useful for platform bringup. > > I can't immediately find it right now but isn't there some generic way > of doing this in the runtime PM framework? If not it seems like it'd be > a good thing to add, these can't be the only devices where it'd be > useful. Well, runtime PM can be fully controlled via sysfs, but the problem is that the driver declares itself being runtime-enabled. So, either we leave it default and let user-space enabling it (via udev or other way), or introduce some condition in the driver side. Takashi