All of lore.kernel.org
 help / color / mirror / Atom feed
* Codec driver gets probed prior to the machine driver
@ 2013-06-09 14:50 Fabio Estevam
  2013-06-09 15:12 ` Lars-Peter Clausen
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2013-06-09 14:50 UTC (permalink / raw)
  To: Mark Brown, Troy Kisky
  Cc: alsa-devel, Shawn Guo, Lars-Peter Clausen, Sascha Hauer

Hi,

When running linux-next 20130607 on a mx6qsabrelite I see that the
audio drivers fail to probe.
Added some printk's to better illustrate the problem:

mmcblk0: mmc0:b5a1 SD04G 3.69 GiB
**** reading the chip ID
sgtl5000: probe of 0-000a failed with error -5
****** enabling the codec clock
imx-sgtl5000 sound.13: ASoC: CODEC (null) not registered
imx-sgtl5000 sound.13: snd_soc_register_card failed (-517)
platform sound.13: Driver imx-sgtl5000 requests probe defer

The problem here is that the codec driver (sgtl5000) is being probed
prior to the machine driver (imx-sgtl5000).

The reading of the chip ID fails because at this point in time there
is no codec clock, which is turned on by imx-sgtl5000.

Running 3.10-rc4, the order of the events is as expected: imx-sgtl5000
is called first and sgtl5000 is called later.
In this case the probe works as usual.

Tried doing a bisect, but this was not succesful due to several bisect
breakages (build issues and non-booting kernels) on  its way.

Would anyone have some suggestion as to why the codec driver is
getting probed first?

Thanks,

Fabio Estevam

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-10  9:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-09 14:50 Codec driver gets probed prior to the machine driver Fabio Estevam
2013-06-09 15:12 ` Lars-Peter Clausen
2013-06-09 15:41   ` Fabio Estevam
2013-06-10  9:14   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.