From: Takashi Iwai Subject: Re: [PATCH] ASoC: mediatek: Use current HW pointer for pointer callback Date: Thu, 03 Dec 2015 12:07:26 +0100 Message-ID: References: <1449129208-63615-1-git-send-email-koro.chen@mediatek.com> <20151203110158.GD5727@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 mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id C8608265325 for ; Thu, 3 Dec 2015 12:07:26 +0100 (CET) In-Reply-To: <20151203110158.GD5727@sirena.org.uk> 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: Mark Brown Cc: Koro Chen , srv_heupstream@mediatek.com, s.hauer@pengutronix.de, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org List-Id: alsa-devel@alsa-project.org On Thu, 03 Dec 2015 12:01:58 +0100, Mark Brown wrote: > > On Thu, Dec 03, 2015 at 10:41:38AM +0100, Takashi Iwai wrote: > > > While reading this patch, I wondered how regmap can be used safely in > > an irq-disabled context. Mark, do we have any API for that? > > We can use user supplied locks or spin_lock_irqsave(). I meant how to guarantee to make regmap_read() working in an already spin-locked context, typically in an irq handler? regmap_read() involves with the regcache and it may invoke kmalloc(). Takashi