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


Groups > linux.kernel > #1466237

Re: [PATCH for 4.8] ASoC: omap-abe-twl6040: Correct dmic-codec device registration

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Russell King - ARM Linux <linux@armlinux.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH for 4.8] ASoC: omap-abe-twl6040: Correct dmic-codec device registration
Date Fri, 19 Aug 2016 11:00:02 +0200
Message-ID <s7NOG-3o7-5@gated-at.bofh.it> (permalink)
References <s7LDc-23l-27@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=vDq5ODlbY4EfLBGvyowxJMjbr4+1h+i5EXT/lowaVmU=; b=dUoVChSHf2dqO/PitiREtaczUZZ1wkmHDcgvcLoADmn30aZ/DIbCUEQm7IkrOcyNWoxknjAkGPyhkhUyUTlFlIKr8EERGWrkjEwBtSBV8+JgF2FUJep7wNbTAt19Nk39RJhgJP5x4A27GFaiRPPN/3OA7AVvkJE+NBjuRcpKIck=;
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 38
Organization linux.* mail to news gateway
X-Original-Cc Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Tony Lindgren <tony@atomide.com>, misael.lopez@ti.com
X-Original-Date Fri, 19 Aug 2016 09:54:04 +0100
X-Original-Message-ID <20160819085404.GI1041@n2100.armlinux.org.uk>
X-Original-References <20160819063424.16383-1-peter.ujfalusi@ti.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1466237

Show key headers only | View raw


On Fri, Aug 19, 2016 at 09:34:24AM +0300, Peter Ujfalusi wrote:
> The dmic-codec was registered within the platform_driver's probe function,
> which can cause deferred probe to run in loops as reported and analyzed by
> Russell King.
> 
> Use module_init/exit in the driver and handle the dmic-codec device
> registration and removal at that level instead of the platform_driver
> probe/remove.
> 
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> Reported-by: Russell King <linux@arm.linux.org.uk>

I think this address came from memory... it's certainly not the one that
I'm using today. ;)

> ---

This certainly fixes the problem:

VUSB: disabling
mmcblk0: mmc0:0002 00000 972 MiB
ALSA device list:
 mmcblk0: p1 p2
  No soundcards found.
omap-abe-twl6040 sound: ASoC: CPU DAI (null) not registered
omap-abe-twl6040 sound: snd_soc_register_card() failed: -517
Waiting 2 sec before mounting root device...
EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 subsystem
EXT4-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended

and allows booting to continue.  Thanks.

Tested-by: Russell King <rmk+kernel@armlinux.org.uk>

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

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


Thread

[PATCH for 4.8] ASoC: omap-abe-twl6040: Correct dmic-codec device registration Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-08-19 08:40 +0200
  Re: [PATCH for 4.8] ASoC: omap-abe-twl6040: Correct dmic-codec  device registration Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-08-19 11:00 +0200
    Re: [PATCH for 4.8] ASoC: omap-abe-twl6040: Correct dmic-codec device  registration Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-08-19 12:00 +0200
  Applied "ASoC: omap-abe-twl6040: Correct dmic-codec device registration" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-08-19 17:20 +0200

csiph-web