From: Lee Jones <hidden> Date: 2012-07-27 12:39:26
This patch-set includes some important changes which should make
their way to the Mainline Release Candidates for the v3.6 release.
Without them Audio doesn't even probe (at all) when booting with
Device Tree selected. The kernel can't compile with ux500 audio
enabled. Also platform data will fail to reach the AB8500 CODEC
driver. Even if we can get that far SoC Core will assume we're
using regmaps and attempt to use them; however, none exist for
this driver, so the kernel will oops.
arch/arm/mach-ux500/board-mop500-msp.c | 2 +-
arch/arm/mach-ux500/board-mop500.c | 9 ++++-----
drivers/mfd/ab8500-core.c | 1 +
drivers/mfd/db8500-prcmu.c | 1 +
sound/soc/codecs/ab8500-codec.c | 4 ++++
sound/soc/soc-dapm.c | 2 --
6 files changed, 11 insertions(+), 8 deletions(-)
From: Lee Jones <hidden> Date: 2012-07-27 12:39:28
If a list of widgets is provided and one of them fails to be added as
a control, the present semantics fail all subsequent widgets. A better
solution would be to only fail that widget, but pursue in attempting
to add the rest of the list.
Signed-off-by: Lee Jones <redacted>
---
sound/soc/soc-dapm.c | 2 --
1 file changed, 2 deletions(-)
@@ -3095,8 +3095,6 @@ int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm,dev_err(dapm->dev,"ASoC: Failed to create DAPM control %s\n",widget->name);-ret=-ENOMEM;-break;}widget++;}
From: Lee Jones <hidden> Date: 2012-07-27 12:39:31
If codec->control_data is not populated SoC Core assumes we want to
use regmap, which fails catastrophically, as we don't have one:
Unable to handle kernel NULL pointer dereference at virtual address 00000080
pgd = c0004000
[00000080] *pgd=00000000
Internal error: Oops: 17 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 1 Not tainted (3.5.0-rc6-00884-g0b2419e-dirty #130)
PC is at regmap_read+0x10/0x5c
LR is at hw_read+0x80/0x90
pc : [<c01a91b8>] lr : [<c0216804>] psr: 60000013
Signed-off-by: Lee Jones <redacted>
---
sound/soc/codecs/ab8500-codec.c | 4 ++++
1 file changed, 4 insertions(+)
@@ -2406,6 +2406,10 @@ static int ab8500_codec_probe(struct snd_soc_codec *codec)/* Setup AB8500 according to board-settings */pdata=(structab8500_platform_data*)dev_get_platdata(dev->parent);++/* Inform SoC Core that we have our own I/O arrangements. */+codec->control_data=(void*)true;+status=ab8500_audio_setup_mics(codec,&pdata->codec->amics);if(status<0){pr_err("%s: Failed to setup mics (%d)!\n",__func__,status);
From: Lee Jones <hidden> Date: 2012-07-27 12:39:33
When booting via platform code the AB8500 platform data is now passed
in though the DB8500. However, if pdata_size is not set it will not be
subsequently passed onto subordinate devices. This patch correctly
populates pdata_size.
Signed-off-by: Lee Jones <redacted>
---
drivers/mfd/db8500-prcmu.c | 1 +
1 file changed, 1 insertion(+)
From: Lee Jones <hidden> Date: 2012-07-27 12:39:35
Provide a compatible string for the AB8500 CODEC to aid in
configuration property look-up from its associated Device Tree
node.
Signed-off-by: Lee Jones <redacted>
---
drivers/mfd/ab8500-core.c | 1 +
1 file changed, 1 insertion(+)
From: Lee Jones <hidden> Date: 2012-07-27 12:39:36
This was left over during a recent clean-up which removed Device Tree
helper structs. There is no longer a requirement for it, so we can just
remove it.
Signed-off-by: Lee Jones <redacted>
---
arch/arm/mach-ux500/board-mop500.c | 5 -----
1 file changed, 5 deletions(-)
From: Lee Jones <hidden> Date: 2012-07-27 12:39:38
The platform attempts to register platform device 'snd_soc_u8500'
which doesn't actually exist. Here we change the reference to the
correct one 'snd_soc_mop500'.
Signed-off-by: Lee Jones <redacted>
---
arch/arm/mach-ux500/board-mop500-msp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Lee Jones <hidden> Date: 2012-07-27 12:39:39
Previous attempts to add platform probing of the Audio related devices
only call from non-DT initialisation functions. This patch extends that
functionality to the Device Tree related ones too.
Signed-off-by: Lee Jones <redacted>
---
arch/arm/mach-ux500/board-mop500.c | 4 ++++
1 file changed, 4 insertions(+)
From: Samuel Ortiz <hidden> Date: 2012-07-27 13:36:13
Hi Lee,
On Fri, Jul 27, 2012 at 01:38:50PM +0100, Lee Jones wrote:
When booting via platform code the AB8500 platform data is now passed
in though the DB8500. However, if pdata_size is not set it will not be
subsequently passed onto subordinate devices. This patch correctly
populates pdata_size.
Signed-off-by: Lee Jones <redacted>
---
drivers/mfd/db8500-prcmu.c | 1 +
1 file changed, 1 insertion(+)
Applied, thanks.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
From: Samuel Ortiz <hidden> Date: 2012-07-27 13:36:35
Hi Lee,
On Fri, Jul 27, 2012 at 01:38:51PM +0100, Lee Jones wrote:
Provide a compatible string for the AB8500 CODEC to aid in
configuration property look-up from its associated Device Tree
node.
Signed-off-by: Lee Jones <redacted>
---
drivers/mfd/ab8500-core.c | 1 +
1 file changed, 1 insertion(+)
Applied as well.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
From: Mark Brown <hidden> Date: 2012-07-29 20:25:14
On Fri, Jul 27, 2012 at 01:38:48PM +0100, Lee Jones wrote:
If a list of widgets is provided and one of them fails to be added as
a control, the present semantics fail all subsequent widgets. A better
solution would be to only fail that widget, but pursue in attempting
to add the rest of the list.
You've completely ignored my question about why this is better.
This is also *clearly* not an urgent bugfix.
From: Mark Brown <hidden> Date: 2012-07-29 20:28:11
On Fri, Jul 27, 2012 at 03:36:33PM +0200, Samuel Ortiz wrote:
On Fri, Jul 27, 2012 at 01:38:51PM +0100, Lee Jones wrote:
quoted
Provide a compatible string for the AB8500 CODEC to aid in
configuration property look-up from its associated Device Tree
node.
Applied as well.
I remain *deeply* unconvinced that this is tasteful design for the
device tree bindings, and it's certainly not needed urgently for v3.6 as
there's no DT bindings on the CODEC side.
From: Samuel Ortiz <hidden> Date: 2012-07-30 13:24:27
On Sun, Jul 29, 2012 at 09:28:07PM +0100, Mark Brown wrote:
On Fri, Jul 27, 2012 at 03:36:33PM +0200, Samuel Ortiz wrote:
quoted
On Fri, Jul 27, 2012 at 01:38:51PM +0100, Lee Jones wrote:
quoted
quoted
Provide a compatible string for the AB8500 CODEC to aid in
configuration property look-up from its associated Device Tree
node.
quoted
Applied as well.
I remain *deeply* unconvinced that this is tasteful design for the
device tree bindings, and it's certainly not needed urgently for v3.6 as
there's no DT bindings on the CODEC side.
Fair enough, I'll keep this one for the next merge window.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
From: Lee Jones <hidden> Date: 2012-09-14 16:05:22
On Mon, Jul 30, 2012 at 03:24:22PM +0200, Samuel Ortiz wrote:
On Sun, Jul 29, 2012 at 09:28:07PM +0100, Mark Brown wrote:
quoted
On Fri, Jul 27, 2012 at 03:36:33PM +0200, Samuel Ortiz wrote:
quoted
On Fri, Jul 27, 2012 at 01:38:51PM +0100, Lee Jones wrote:
quoted
quoted
Provide a compatible string for the AB8500 CODEC to aid in
configuration property look-up from its associated Device Tree
node.
quoted
Applied as well.
I remain *deeply* unconvinced that this is tasteful design for the
device tree bindings, and it's certainly not needed urgently for v3.6 as
there's no DT bindings on the CODEC side.
Fair enough, I'll keep this one for the next merge window.
Chasing this, as it still doesn't appear in v3.7 -next.
Kind regards,
Lee
--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
From: Samuel Ortiz <hidden> Date: 2012-09-19 11:29:11
Hi Lee,
On Fri, Jul 27, 2012 at 01:38:51PM +0100, Lee Jones wrote:
Provide a compatible string for the AB8500 CODEC to aid in
configuration property look-up from its associated Device Tree
node.
Signed-off-by: Lee Jones <redacted>
---
drivers/mfd/ab8500-core.c | 1 +
1 file changed, 1 insertion(+)
Applied, thanks.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/