* [PATCH] asoc/multi-component: fsl: add support for disabled SSI nodes
@ 2010-08-04 22:51 Timur Tabi
2010-08-05 11:42 ` Mark Brown
2010-08-05 13:51 ` Kumar Gala
0 siblings, 2 replies; 4+ messages in thread
From: Timur Tabi @ 2010-08-04 22:51 UTC (permalink / raw)
To: alsa-devel, linuxppc-dev, lrg, broonie, kumar.gala
Add support for adding "status = disabled" to an SSI node to incidate that it
is not wired on the board. This replaces the not-so-intuitive previous method
of omitting a codec-handle property.
Signed-off-by: Timur Tabi <timur@freescale.com>
---
Kumar, would you please ACK the device-tree portion of this patch? I want
it to go through the ALSA tree.
arch/powerpc/boot/dts/mpc8610_hpcd.dts | 1 +
sound/soc/fsl/fsl_ssi.c | 13 ++++++++++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/boot/dts/mpc8610_hpcd.dts b/arch/powerpc/boot/dts/mpc8610_hpcd.dts
index 9535ce6..83c3218 100644
--- a/arch/powerpc/boot/dts/mpc8610_hpcd.dts
+++ b/arch/powerpc/boot/dts/mpc8610_hpcd.dts
@@ -286,6 +286,7 @@
ssi@16100 {
compatible = "fsl,mpc8610-ssi";
+ status = "disabled";
cell-index = <1>;
reg = <0x16100 0x100>;
interrupt-parent = <&mpic>;
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index a0e18b8..45d27b1 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -636,12 +636,19 @@ static int __devinit fsl_ssi_probe(struct of_device *of_dev,
struct resource res;
char name[64];
- /* We are only interested in SSIs with a codec phandle in them, so let's
- * make sure this SSI has one.
+ /* SSIs that are not connected on the board should have a
+ * status = "disabled"
+ * property in their device tree nodes.
*/
- if (!of_get_property(np, "codec-handle", NULL))
+ if (!of_device_is_available(np))
return -ENODEV;
+ /* Check for a codec-handle property. */
+ if (!of_get_property(np, "codec-handle", NULL)) {
+ dev_err(&of_dev->dev, "missing codec-handle property\n");
+ return -ENODEV;
+ }
+
/* We only support the SSI in "I2S Slave" mode */
sprop = of_get_property(np, "fsl,mode", NULL);
if (!sprop || strcmp(sprop, "i2s-slave")) {
--
1.7.0.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] asoc/multi-component: fsl: add support for disabled SSI nodes
2010-08-04 22:51 [PATCH] asoc/multi-component: fsl: add support for disabled SSI nodes Timur Tabi
@ 2010-08-05 11:42 ` Mark Brown
2010-08-05 12:43 ` [alsa-devel] " Liam Girdwood
2010-08-05 13:51 ` Kumar Gala
1 sibling, 1 reply; 4+ messages in thread
From: Mark Brown @ 2010-08-05 11:42 UTC (permalink / raw)
To: Timur Tabi; +Cc: linuxppc-dev, alsa-devel, kumar.gala, lrg
On Wed, Aug 04, 2010 at 05:51:08PM -0500, Timur Tabi wrote:
> Add support for adding "status = disabled" to an SSI node to incidate that it
> is not wired on the board. This replaces the not-so-intuitive previous method
> of omitting a codec-handle property.
>
> Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [alsa-devel] [PATCH] asoc/multi-component: fsl: add support for disabled SSI nodes
2010-08-05 11:42 ` Mark Brown
@ 2010-08-05 12:43 ` Liam Girdwood
0 siblings, 0 replies; 4+ messages in thread
From: Liam Girdwood @ 2010-08-05 12:43 UTC (permalink / raw)
To: Mark Brown; +Cc: linuxppc-dev, alsa-devel, Timur Tabi, kumar.gala
On Thu, 2010-08-05 at 12:42 +0100, Mark Brown wrote:
> On Wed, Aug 04, 2010 at 05:51:08PM -0500, Timur Tabi wrote:
> > Add support for adding "status = disabled" to an SSI node to incidate that it
> > is not wired on the board. This replaces the not-so-intuitive previous method
> > of omitting a codec-handle property.
> >
> > Signed-off-by: Timur Tabi <timur@freescale.com>
>
> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Applied.
Thanks
Liam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] asoc/multi-component: fsl: add support for disabled SSI nodes
2010-08-04 22:51 [PATCH] asoc/multi-component: fsl: add support for disabled SSI nodes Timur Tabi
2010-08-05 11:42 ` Mark Brown
@ 2010-08-05 13:51 ` Kumar Gala
1 sibling, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2010-08-05 13:51 UTC (permalink / raw)
To: Timur Tabi; +Cc: linuxppc-dev, alsa-devel, broonie, lrg
On Aug 4, 2010, at 5:51 PM, Timur Tabi wrote:
> Add support for adding "status =3D disabled" to an SSI node to =
incidate that it
> is not wired on the board. This replaces the not-so-intuitive =
previous method
> of omitting a codec-handle property.
>=20
> Signed-off-by: Timur Tabi <timur@freescale.com>
> ---
>=20
> Kumar, would you please ACK the device-tree portion of this patch? I =
want
> it to go through the ALSA tree.
>=20
> arch/powerpc/boot/dts/mpc8610_hpcd.dts | 1 +
> sound/soc/fsl/fsl_ssi.c | 13 ++++++++++---
> 2 files changed, 11 insertions(+), 3 deletions(-)
Acked-by: Kumar Gala <galak@kernel.crashing.org>
- k=
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-08-05 13:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-04 22:51 [PATCH] asoc/multi-component: fsl: add support for disabled SSI nodes Timur Tabi
2010-08-05 11:42 ` Mark Brown
2010-08-05 12:43 ` [alsa-devel] " Liam Girdwood
2010-08-05 13:51 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).