Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2931603pxb; Mon, 16 Nov 2020 00:38:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxw5fnbXqyKxO5QhlV+MdnBJHT/1ak/qkHVzqGlb0yj5x3bcesCYaSUpzDITzkJqDspp5+i X-Received: by 2002:a17:906:8603:: with SMTP id o3mr13715994ejx.333.1605515934575; Mon, 16 Nov 2020 00:38:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605515934; cv=none; d=google.com; s=arc-20160816; b=uQk3uuG/MZnB7du1CyTnr5SuVMPfe7MZrHWAzwIbuIcOuvRvuhugyXz31QIPgVt8FL NFd+i+Bw46nklcnDxXcQT5doP+tlrpfQoGHhTJmX+TZWqOmCvtL9JmU7/Wq1vhiqA5TP PWgpNz0hvGtuDPjYm46NskN1OOQchwQRNLrk7dzrBKCqPF4m0GgCAWzL06sjiaPEiW5U tTmeWVf6ZYDYhBOAaFDgG9almGSa8hW6doRP26HMFXcZkvZOXmtztKpv4rKck3RBhKez bqWiRlxNjitrnoSO85dsF3S4Fg60bPguRIsfSx9g9gXd3NcX8hr5D8r1iBr9vQFCsrep Ligg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ajkkWoZANJH8/P8Q+7q013FNsBZ+VKWh+iMvT6gRgeY=; b=PB4OKOIWH9Pgc3rApLRLyU8P6Y6nBgaozqBFYQpSJNzv1phJFF6SgiTzHOQETQIDnJ dkI6XitEjoeyKMna1Btgbckkon3GgmdYlAosq9/s0Ua/MZeGM3mJ83Y8toLUpLybQoT2 x02eOgM90F+uHbZbChwAccKzt9fw+NeMNk8i+W6PbIxbkAljzUdwcp6H2eIPk1vNWoPx VpSJHVCQftmpBID28NYoVdDZgB0+19U3S5afYBdNNWlsVt0tXyNdSZ1w5Mlz3CJWF32C kG3mfH2ruk8eZA1J0ai4JSVKBjrk5C8N5OFC6kuolwoA2yHyURgEnAYL9XlKoine5q8T DjqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YdI9cFFQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si11968788edx.188.2020.11.16.00.38.31; Mon, 16 Nov 2020 00:38:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YdI9cFFQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727418AbgKPIeX (ORCPT + 99 others); Mon, 16 Nov 2020 03:34:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:56516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbgKPIeX (ORCPT ); Mon, 16 Nov 2020 03:34:23 -0500 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F655207BC; Mon, 16 Nov 2020 08:34:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605515662; bh=XRMSYA38EWNB6SZh6t6STfpii3PwY9kz7Jvt5zohb8w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YdI9cFFQ2/Gv43v5+1Js9ojr5/kXbWUW141XXkWt30Ik0fSo/2Pjp2W7h/qSWpYeE T89r7H781FX7RjG+xkGexAlbBbf+gRt7HsW0Z4sEcj2FhTLnNkJZutDJovH1Pzcjaj REpRUdzXzIcgA2Gbv8zAvBEeIYzqvP7givijzroQ= Date: Mon, 16 Nov 2020 16:34:17 +0800 From: Shawn Guo To: Daniel Baluta Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, paul.olaru@nxp.com, shengjiu.wang@nxp.com Subject: Re: [PATCH RESEND 0/3] Allow on demand channel request / free Message-ID: <20201116083415.GK5849@dragon> References: <20201111111118.21824-1-daniel.baluta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201111111118.21824-1-daniel.baluta@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 11, 2020 at 01:11:15PM +0200, Daniel Baluta wrote: > Requesting an mailbox channel will call mailbox's startup > function. > > startup function calls pm_runtime_get_sync which increments device usage > count and will keep the device active. Specifically, mailbox clock will > be always ON when a mailbox channel is requested. > > For this, reason we introduce a way to request/free IMX DSP channels > on demand to save power when the channels are not used. > > First two patches are doing code refactoring preparing the path > for 3rd patch which exports functions for on demand channel request/free > > > Daniel Baluta (3): > firmware: imx: Introduce imx_dsp_setup_channels > firmware: imx: Save channel name for further use > firmware: imx-dsp: Export functions to request/free channels Applied all, thanks.