Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1282940

Re: [alsa-devel] [PATCH] ASoC: mediatek: Use current HW pointer for pointer callback

From Takashi Iwai <tiwai@suse.de>
Newsgroups linux.kernel
Subject Re: [alsa-devel] [PATCH] ASoC: mediatek: Use current HW pointer for pointer callback
Date 2015-12-03 12:10 +0100
Message-ID <qBzVT-4ak-1@gated-at.bofh.it> (permalink)
References <qBwY2-21w-7@gated-at.bofh.it> <qByGu-3cm-25@gated-at.bofh.it> <qBzVT-4ak-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] ASoC: mediatek: Use current HW pointer for pointer callback Koro Chen <koro.chen@mediatek.com> - 2015-12-03 09:00 +0100
  Re: [alsa-devel] [PATCH] ASoC: mediatek: Use current HW pointer for pointer callback Takashi Iwai <tiwai@suse.de> - 2015-12-03 10:50 +0100
    Re: [alsa-devel] [PATCH] ASoC: mediatek: Use current HW pointer for pointer callback Takashi Iwai <tiwai@suse.de> - 2015-12-03 12:10 +0100
      Re: [alsa-devel] [PATCH] ASoC: mediatek: Use current HW pointer for  pointer callback Koro Chen <koro.chen@mediatek.com> - 2015-12-03 12:40 +0100
      Re: [alsa-devel] [PATCH] ASoC: mediatek: Use current HW pointer for  pointer callback Mark Brown <broonie@kernel.org> - 2015-12-03 16:00 +0100
        Re: [alsa-devel] [PATCH] ASoC: mediatek: Use current HW pointer for pointer callback Takashi Iwai <tiwai@suse.de> - 2015-12-03 16:40 +0100
    Re: [alsa-devel] [PATCH] ASoC: mediatek: Use current HW pointer for  pointer callback Mark Brown <broonie@kernel.org> - 2015-12-03 12:10 +0100

csiph-web