All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: mc13783: Add devicetree support
@ 2014-04-26  6:57 Alexander Shiyan
       [not found] ` <1398495423-2223-1-git-send-email-shc_work-JGs/UdohzUI@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Alexander Shiyan @ 2014-04-26  6:57 UTC (permalink / raw)
  To: alsa-devel
  Cc: devicetree, Samuel Ortiz, Alexander Shiyan, Takashi Iwai,
	Liam Girdwood, Mark Brown, Lee Jones

This patch adds devicetree support for mc13783-codec.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 Documentation/devicetree/bindings/mfd/mc13xxx.txt |  3 +++
 drivers/mfd/mc13xxx-core.c                        | 10 +++++++---
 sound/soc/codecs/mc13783.c                        | 14 +++++++++++++-
 3 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/mfd/mc13xxx.txt b/Documentation/devicetree/bindings/mfd/mc13xxx.txt
index 1413f39..8aba488 100644
--- a/Documentation/devicetree/bindings/mfd/mc13xxx.txt
+++ b/Documentation/devicetree/bindings/mfd/mc13xxx.txt
@@ -10,6 +10,9 @@ Optional properties:
 - fsl,mc13xxx-uses-touch : Indicate the touchscreen controller is being used
 
 Sub-nodes:
+- codec: Contain the Audio Codec node.
+  - adc-port: Contain PMIC SSI port number used for ADC.
+  - dac-port: Contain PMIC SSI port number used for DAC.
 - leds : Contain the led nodes and initial register values in property
   "led-control". Number of register depends of used IC, for MC13783 is 6,
   for MC13892 is 4, for MC34708 is 1. See datasheet for bits definitions of
diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c
index 06e64b6..0c6c21c 100644
--- a/drivers/mfd/mc13xxx-core.c
+++ b/drivers/mfd/mc13xxx-core.c
@@ -673,9 +673,13 @@ int mc13xxx_common_init(struct device *dev)
 	if (mc13xxx->flags & MC13XXX_USE_ADC)
 		mc13xxx_add_subdevice(mc13xxx, "%s-adc");
 
-	if (mc13xxx->flags & MC13XXX_USE_CODEC)
-		mc13xxx_add_subdevice_pdata(mc13xxx, "%s-codec",
-					pdata->codec, sizeof(*pdata->codec));
+	if (mc13xxx->flags & MC13XXX_USE_CODEC) {
+		if (pdata)
+			mc13xxx_add_subdevice_pdata(mc13xxx, "%s-codec",
+				pdata->codec, sizeof(*pdata->codec));
+		else
+			mc13xxx_add_subdevice(mc13xxx, "%s-codec");
+	}
 
 	if (mc13xxx->flags & MC13XXX_USE_RTC)
 		mc13xxx_add_subdevice(mc13xxx, "%s-rtc");
diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c
index 0b0a4ca..9965277 100644
--- a/sound/soc/codecs/mc13783.c
+++ b/sound/soc/codecs/mc13783.c
@@ -22,6 +22,7 @@
  */
 #include <linux/module.h>
 #include <linux/device.h>
+#include <linux/of.h>
 #include <linux/mfd/mc13xxx.h>
 #include <linux/slab.h>
 #include <sound/core.h>
@@ -748,6 +749,7 @@ static int __init mc13783_codec_probe(struct platform_device *pdev)
 {
 	struct mc13783_priv *priv;
 	struct mc13xxx_codec_platform_data *pdata = pdev->dev.platform_data;
+	struct device_node *np;
 	int ret;
 
 	priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
@@ -758,7 +760,17 @@ static int __init mc13783_codec_probe(struct platform_device *pdev)
 		priv->adc_ssi_port = pdata->adc_ssi_port;
 		priv->dac_ssi_port = pdata->dac_ssi_port;
 	} else {
-		return -ENOSYS;
+		np = of_get_child_by_name(pdev->dev.parent->of_node, "codec");
+		if (!np)
+			return -ENOSYS;
+
+		ret = of_property_read_u32(np, "adc-port", &priv->adc_ssi_port);
+		if (ret)
+			return ret;
+
+		ret = of_property_read_u32(np, "dac-port", &priv->dac_ssi_port);
+		if (ret)
+			return ret;
 	}
 
 	dev_set_drvdata(&pdev->dev, priv);
-- 
1.8.3.2

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
       [not found] ` <1398495423-2223-1-git-send-email-shc_work-JGs/UdohzUI@public.gmane.org>
@ 2014-04-28 11:17   ` Lee Jones
  2014-04-29 22:25   ` Mark Brown
  1 sibling, 0 replies; 20+ messages in thread
From: Lee Jones @ 2014-04-28 11:17 UTC (permalink / raw)
  To: Alexander Shiyan
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Mark Brown, Jaroslav Kysela, Takashi Iwai,
	devicetree-u79uwXL29TY76Z2rM5mHXA

> This patch adds devicetree support for mc13783-codec.
> 
> Signed-off-by: Alexander Shiyan <shc_work-JGs/UdohzUI@public.gmane.org>
> ---
>  Documentation/devicetree/bindings/mfd/mc13xxx.txt |  3 +++
>  drivers/mfd/mc13xxx-core.c                        | 10 +++++++---
>  sound/soc/codecs/mc13783.c                        | 14 +++++++++++++-
>  3 files changed, 23 insertions(+), 4 deletions(-)

MFD changes look sensible:
  Acked-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>

I'm happy to create a shared branch if required.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
       [not found] ` <1398495423-2223-1-git-send-email-shc_work-JGs/UdohzUI@public.gmane.org>
  2014-04-28 11:17   ` Lee Jones
@ 2014-04-29 22:25   ` Mark Brown
       [not found]     ` <20140429222522.GS15125-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
  1 sibling, 1 reply; 20+ messages in thread
From: Mark Brown @ 2014-04-29 22:25 UTC (permalink / raw)
  To: Alexander Shiyan
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Lee Jones,
	Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	devicetree-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 140 bytes --]

On Sat, Apr 26, 2014 at 10:57:03AM +0400, Alexander Shiyan wrote:
> This patch adds devicetree support for mc13783-codec.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
       [not found]     ` <20140429222522.GS15125-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
@ 2014-04-30 14:08       ` Lee Jones
  2014-04-30 14:11         ` Alexander Shiyan
  0 siblings, 1 reply; 20+ messages in thread
From: Lee Jones @ 2014-04-30 14:08 UTC (permalink / raw)
  To: Mark Brown
  Cc: Alexander Shiyan, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
	Samuel Ortiz, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	devicetree-u79uwXL29TY76Z2rM5mHXA

> > This patch adds devicetree support for mc13783-codec.
> 
> Applied, thanks.

No Mark, no!

Documentation/devicetree/bindings/mfd/mc13xxx.txt |  3 +++
drivers/mfd/mc13xxx-core.c                        | 10 +++++++---
sound/soc/codecs/mc13783.c                        | 14 +++++++++++++-
3 files changed, 23 insertions(+), 4 deletions(-)

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
  2014-04-30 14:08       ` Lee Jones
@ 2014-04-30 14:11         ` Alexander Shiyan
       [not found]           ` <1398867073.695596467-rKA3owyty39sdVUOrk1QfQ@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Alexander Shiyan @ 2014-04-30 14:11 UTC (permalink / raw)
  To: Lee Jones
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Jaroslav Kysela, Takashi Iwai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Mark Brown

Wed, 30 Apr 2014 15:08:49 +0100 от Lee Jones <lee.jones@linaro.org>:
> > > This patch adds devicetree support for mc13783-codec.
> > 
> > Applied, thanks.
> 
> No Mark, no!

What a problem, Lee?

---


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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
       [not found]           ` <1398867073.695596467-rKA3owyty39sdVUOrk1QfQ@public.gmane.org>
@ 2014-04-30 14:17             ` Lee Jones
  2014-04-30 14:20               ` Alexander Shiyan
  2014-04-30 18:06               ` Mark Brown
  0 siblings, 2 replies; 20+ messages in thread
From: Lee Jones @ 2014-04-30 14:17 UTC (permalink / raw)
  To: Alexander Shiyan
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Jaroslav Kysela, Takashi Iwai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Mark Brown

> > > > This patch adds devicetree support for mc13783-codec.
> > > 
> > > Applied, thanks.
> > 
> > No Mark, no!
> 
> What a problem, Lee?

There's no problem with the patch, don't worry.

Neither Mark, nor I can apply this patch independently, we need to
create a shared branch somewhere, or we'll risk conflicts at merge
time.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
  2014-04-30 14:17             ` Lee Jones
@ 2014-04-30 14:20               ` Alexander Shiyan
       [not found]                 ` <1398867618.574635813-rKA3owyty39sdVUOrk1QfQ@public.gmane.org>
  2014-04-30 18:06               ` Mark Brown
  1 sibling, 1 reply; 20+ messages in thread
From: Alexander Shiyan @ 2014-04-30 14:20 UTC (permalink / raw)
  To: Lee Jones
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Jaroslav Kysela, Takashi Iwai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Mark Brown

Wed, 30 Apr 2014 15:17:08 +0100 от Lee Jones <lee.jones@linaro.org>:
> > > > > This patch adds devicetree support for mc13783-codec.
> > > > 
> > > > Applied, thanks.
> > > 
> > > No Mark, no!
> > 
> > What a problem, Lee?
> 
> There's no problem with the patch, don't worry.
> 
> Neither Mark, nor I can apply this patch independently, we need to
> create a shared branch somewhere, or we'll risk conflicts at merge
> time.

I can separate this patch for ASoC and MFD if need.
But this will work only if both is applied.

---


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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
       [not found]                 ` <1398867618.574635813-rKA3owyty39sdVUOrk1QfQ@public.gmane.org>
@ 2014-04-30 14:24                   ` Lee Jones
  2014-04-30 14:28                     ` Alexander Shiyan
  0 siblings, 1 reply; 20+ messages in thread
From: Lee Jones @ 2014-04-30 14:24 UTC (permalink / raw)
  To: Alexander Shiyan
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Jaroslav Kysela, Takashi Iwai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Mark Brown

> > > > > > This patch adds devicetree support for mc13783-codec.
> > > > > 
> > > > > Applied, thanks.
> > > > 
> > > > No Mark, no!
> > > 
> > > What a problem, Lee?
> > 
> > There's no problem with the patch, don't worry.
> > 
> > Neither Mark, nor I can apply this patch independently, we need to
> > create a shared branch somewhere, or we'll risk conflicts at merge
> > time.
> 
> I can separate this patch for ASoC and MFD if need.
> But this will work only if both is applied.

Are there build dependencies, or only functional ones?

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
  2014-04-30 14:24                   ` Lee Jones
@ 2014-04-30 14:28                     ` Alexander Shiyan
       [not found]                       ` <1398868130.411182088-rKA3owyty39sdVUOrk1QfQ@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Alexander Shiyan @ 2014-04-30 14:28 UTC (permalink / raw)
  To: Lee Jones
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Jaroslav Kysela, Takashi Iwai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Mark Brown

Wed, 30 Apr 2014 15:24:56 +0100 от Lee Jones <lee.jones@linaro.org>:
> > > > > > > This patch adds devicetree support for mc13783-codec.
> > > > > > 
> > > > > > Applied, thanks.
> > > > > 
> > > > > No Mark, no!
> > > > 
> > > > What a problem, Lee?
> > > 
> > > There's no problem with the patch, don't worry.
> > > 
> > > Neither Mark, nor I can apply this patch independently, we need to
> > > create a shared branch somewhere, or we'll risk conflicts at merge
> > > time.
> > 
> > I can separate this patch for ASoC and MFD if need.
> > But this will work only if both is applied.
> 
> Are there build dependencies, or only functional ones?

Functional only.
At this time "fsl,mc13xxx-uses-codec" option for PMIC produce a kernel crash :)

---


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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
       [not found]                       ` <1398868130.411182088-rKA3owyty39sdVUOrk1QfQ@public.gmane.org>
@ 2014-04-30 14:33                         ` Lee Jones
  2014-04-30 14:40                           ` Alexander Shiyan
  0 siblings, 1 reply; 20+ messages in thread
From: Lee Jones @ 2014-04-30 14:33 UTC (permalink / raw)
  To: Alexander Shiyan
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Jaroslav Kysela, Takashi Iwai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Mark Brown

On Wed, 30 Apr 2014, Alexander Shiyan wrote:

> Wed, 30 Apr 2014 15:24:56 +0100 от Lee Jones <lee.jones@linaro.org>:
> > > > > > > > This patch adds devicetree support for mc13783-codec.
> > > > > > > 
> > > > > > > Applied, thanks.
> > > > > > 
> > > > > > No Mark, no!
> > > > > 
> > > > > What a problem, Lee?
> > > > 
> > > > There's no problem with the patch, don't worry.
> > > > 
> > > > Neither Mark, nor I can apply this patch independently, we need to
> > > > create a shared branch somewhere, or we'll risk conflicts at merge
> > > > time.
> > > 
> > > I can separate this patch for ASoC and MFD if need.
> > > But this will work only if both is applied.
> > 
> > Are there build dependencies, or only functional ones?
> 
> Functional only.
> At this time "fsl,mc13xxx-uses-codec" option for PMIC produce a kernel crash :)

If patches can be broken up notwithstanding build errors, they should
be.  It makes things sooo much easier.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
  2014-04-30 14:33                         ` Lee Jones
@ 2014-04-30 14:40                           ` Alexander Shiyan
       [not found]                             ` <1398868829.456957971-NHsxxyuixOdsdVUOrk1QfQ@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Alexander Shiyan @ 2014-04-30 14:40 UTC (permalink / raw)
  To: Lee Jones
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Jaroslav Kysela, Takashi Iwai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Mark Brown

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 1514 bytes --]

Wed, 30 Apr 2014 15:33:52 +0100 от Lee Jones <lee.jones@linaro.org>:
> On Wed, 30 Apr 2014, Alexander Shiyan wrote:
> 
> > Wed, 30 Apr 2014 15:24:56 +0100 от Lee Jones <lee.jones@linaro.org>:
> > > > > > > > > This patch adds devicetree support for mc13783-codec.
> > > > > > > > 
> > > > > > > > Applied, thanks.
> > > > > > > 
> > > > > > > No Mark, no!
> > > > > > 
> > > > > > What a problem, Lee?
> > > > > 
> > > > > There's no problem with the patch, don't worry.
> > > > > 
> > > > > Neither Mark, nor I can apply this patch independently, we need to
> > > > > create a shared branch somewhere, or we'll risk conflicts at merge
> > > > > time.
> > > > 
> > > > I can separate this patch for ASoC and MFD if need.
> > > > But this will work only if both is applied.
> > > 
> > > Are there build dependencies, or only functional ones?
> > 
> > Functional only.
> > At this time "fsl,mc13xxx-uses-codec" option for PMIC produce a kernel crash :)
> 
> If patches can be broken up notwithstanding build errors, they should
> be.  It makes things sooo much easier.

In fact that the patch for MFD is not obvious if the codec have no DT support...

If you do we see this problem (pdata == NULL and we pass this to the
driver in DT case), for me it not worst to separate this. What we do?
Should this be a two patches in one series or one for MFD and one for ASoC then?

---

N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·zøœzÚÞz)í…æèw*\x1fjg¬±¨\x1e¶‰šŽŠÝ¢j.ïÛ°\½½MŽúgjÌæa×\x02››–' ™©Þ¢¸\f¢·¦j:+v‰¨ŠwèjØm¶Ÿÿ¾\a«‘êçzZ+ƒùšŽŠÝ¢j"ú!¶i

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
       [not found]                             ` <1398868829.456957971-NHsxxyuixOdsdVUOrk1QfQ@public.gmane.org>
@ 2014-04-30 14:46                               ` Lee Jones
  2014-04-30 14:58                                 ` Alexander Shiyan
  0 siblings, 1 reply; 20+ messages in thread
From: Lee Jones @ 2014-04-30 14:46 UTC (permalink / raw)
  To: Alexander Shiyan
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Jaroslav Kysela, Takashi Iwai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Mark Brown

> > > > > > > > > > This patch adds devicetree support for mc13783-codec.
> > > > > > > > > 
> > > > > > > > > Applied, thanks.
> > > > > > > > 
> > > > > > > > No Mark, no!
> > > > > > > 
> > > > > > > What a problem, Lee?
> > > > > > 
> > > > > > There's no problem with the patch, don't worry.
> > > > > > 
> > > > > > Neither Mark, nor I can apply this patch independently, we need to
> > > > > > create a shared branch somewhere, or we'll risk conflicts at merge
> > > > > > time.
> > > > > 
> > > > > I can separate this patch for ASoC and MFD if need.
> > > > > But this will work only if both is applied.
> > > > 
> > > > Are there build dependencies, or only functional ones?
> > > 
> > > Functional only.
> > > At this time "fsl,mc13xxx-uses-codec" option for PMIC produce a kernel crash :)
> > 
> > If patches can be broken up notwithstanding build errors, they should
> > be.  It makes things sooo much easier.
> 
> In fact that the patch for MFD is not obvious if the codec have no DT support...
> 
> If you do we see this problem (pdata == NULL and we pass this to the
> driver in DT case), for me it not worst to separate this. What we do?
> Should this be a two patches in one series or one for MFD and one for ASoC then?

You can put them into a patch-set and I will take the MFD one, Mark
will take the other.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
  2014-04-30 14:46                               ` Lee Jones
@ 2014-04-30 14:58                                 ` Alexander Shiyan
  0 siblings, 0 replies; 20+ messages in thread
From: Alexander Shiyan @ 2014-04-30 14:58 UTC (permalink / raw)
  To: Lee Jones
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Jaroslav Kysela, Takashi Iwai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Mark Brown

Wed, 30 Apr 2014 15:46:50 +0100 от Lee Jones <lee.jones@linaro.org>:
> > > > > > > > > > > This patch adds devicetree support for mc13783-codec.
> > > > > > > > > > 
> > > > > > > > > > Applied, thanks.
> > > > > > > > > 
> > > > > > > > > No Mark, no!
> > > > > > > > 
> > > > > > > > What a problem, Lee?
> > > > > > > 
> > > > > > > There's no problem with the patch, don't worry.
> > > > > > > 
> > > > > > > Neither Mark, nor I can apply this patch independently, we need to
> > > > > > > create a shared branch somewhere, or we'll risk conflicts at merge
> > > > > > > time.
> > > > > > 
> > > > > > I can separate this patch for ASoC and MFD if need.
> > > > > > But this will work only if both is applied.
> > > > > 
> > > > > Are there build dependencies, or only functional ones?
> > > > 
> > > > Functional only.
> > > > At this time "fsl,mc13xxx-uses-codec" option for PMIC produce a kernel crash :)
> > > 
> > > If patches can be broken up notwithstanding build errors, they should
> > > be.  It makes things sooo much easier.
> > 
> > In fact that the patch for MFD is not obvious if the codec have no DT support...
> > 
> > If you do we see this problem (pdata == NULL and we pass this to the
> > driver in DT case), for me it not worst to separate this. What we do?
> > Should this be a two patches in one series or one for MFD and one for ASoC then?
> 
> You can put them into a patch-set and I will take the MFD one, Mark
> will take the other.

OK. Mark, please revert this patch then.
I 'll send new version tomorrow..

---


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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
  2014-04-30 14:17             ` Lee Jones
  2014-04-30 14:20               ` Alexander Shiyan
@ 2014-04-30 18:06               ` Mark Brown
       [not found]                 ` <20140430180653.GB3245-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
  1 sibling, 1 reply; 20+ messages in thread
From: Mark Brown @ 2014-04-30 18:06 UTC (permalink / raw)
  To: Lee Jones
  Cc: Alexander Shiyan, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
	Samuel Ortiz, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	devicetree-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1338 bytes --]

On Wed, Apr 30, 2014 at 03:17:08PM +0100, Lee Jones wrote:

> Neither Mark, nor I can apply this patch independently, we need to
> create a shared branch somewhere, or we'll risk conflicts at merge
> time.

You acked it without saying you didn't want me to apply it...  usually
that means someone is OK with things getting applied.  In any case, as
ever it's on a branch by itself so you can pull it in easily.  I just
tagged it.

The following changes since commit c9eaa447e77efe77b7fa4c953bd62de8297fd6c5:

  Linux 3.15-rc1 (2014-04-13 14:18:35 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git tags/mc13783-asoc

for you to fetch changes up to 780aaeff96819ca58e0cad830bfbe6eee9aef82c:

  ASoC: mc13783: Add devicetree support (2014-04-29 15:24:54 -0700)

----------------------------------------------------------------
ASoC: mc13783 DT support

Tagged since it updates the MFD as well.

----------------------------------------------------------------
Alexander Shiyan (1):
      ASoC: mc13783: Add devicetree support

 Documentation/devicetree/bindings/mfd/mc13xxx.txt |  3 +++
 drivers/mfd/mc13xxx-core.c                        | 10 +++++++---
 sound/soc/codecs/mc13783.c                        | 14 +++++++++++++-
 3 files changed, 23 insertions(+), 4 deletions(-)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
       [not found]                 ` <20140430180653.GB3245-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
@ 2014-04-30 18:12                   ` Alexander Shiyan
       [not found]                     ` <1398881556.141711961-JZ33oUlt0U9sdVUOrk1QfQ@public.gmane.org>
  2014-05-01  7:42                   ` Lee Jones
  1 sibling, 1 reply; 20+ messages in thread
From: Alexander Shiyan @ 2014-04-30 18:12 UTC (permalink / raw)
  To: Mark Brown
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Jaroslav Kysela, Takashi Iwai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Lee Jones

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 1223 bytes --]

Wed, 30 Apr 2014 11:06:53 -0700 от Mark Brown <broonie@kernel.org>:
> On Wed, Apr 30, 2014 at 03:17:08PM +0100, Lee Jones wrote:
> 
> > Neither Mark, nor I can apply this patch independently, we need to
> > create a shared branch somewhere, or we'll risk conflicts at merge
> > time.
> 
> You acked it without saying you didn't want me to apply it...  usually
> that means someone is OK with things getting applied.  In any case, as
> ever it's on a branch by itself so you can pull it in easily.  I just
> tagged it.
> 
> The following changes since commit c9eaa447e77efe77b7fa4c953bd62de8297fd6c5:
> 
>   Linux 3.15-rc1 (2014-04-13 14:18:35 -0700)
> 
> are available in the git repository at:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git tags/mc13783-asoc
> 
> for you to fetch changes up to 780aaeff96819ca58e0cad830bfbe6eee9aef82c:
> 
>   ASoC: mc13783: Add devicetree support (2014-04-29 15:24:54 -0700)
> 
> ----------------------------------------------------------------
> ASoC: mc13783 DT support

Sorry, this means that I should not create v2? 

---

N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·zøœzÚÞz)í…æèw*\x1fjg¬±¨\x1e¶‰šŽŠÝ¢j.ïÛ°\½½MŽúgjÌæa×\x02››–' ™©Þ¢¸\f¢·¦j:+v‰¨ŠwèjØm¶Ÿÿ¾\a«‘êçzZ+ƒùšŽŠÝ¢j"ú!¶i

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
       [not found]                     ` <1398881556.141711961-JZ33oUlt0U9sdVUOrk1QfQ@public.gmane.org>
@ 2014-04-30 18:23                       ` Mark Brown
  0 siblings, 0 replies; 20+ messages in thread
From: Mark Brown @ 2014-04-30 18:23 UTC (permalink / raw)
  To: Alexander Shiyan
  Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Samuel Ortiz, Liam Girdwood,
	Jaroslav Kysela, Takashi Iwai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Lee Jones

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

On Wed, Apr 30, 2014 at 10:12:36PM +0400, Alexander Shiyan wrote:
> Wed, 30 Apr 2014 11:06:53 -0700 от Mark Brown <broonie@kernel.org>:

> > ----------------------------------------------------------------
> > ASoC: mc13783 DT support

> Sorry, this means that I should not create v2? 

It's probably not going to achieve an enormous amount, no.  Let's see.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
       [not found]                 ` <20140430180653.GB3245-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
  2014-04-30 18:12                   ` Alexander Shiyan
@ 2014-05-01  7:42                   ` Lee Jones
  2014-05-01 15:06                     ` Mark Brown
  1 sibling, 1 reply; 20+ messages in thread
From: Lee Jones @ 2014-05-01  7:42 UTC (permalink / raw)
  To: Mark Brown
  Cc: Alexander Shiyan, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
	Samuel Ortiz, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	devicetree-u79uwXL29TY76Z2rM5mHXA

On Wed, 30 Apr 2014, Mark Brown wrote:

> On Wed, Apr 30, 2014 at 03:17:08PM +0100, Lee Jones wrote:
> 
> > Neither Mark, nor I can apply this patch independently, we need to
> > create a shared branch somewhere, or we'll risk conflicts at merge
> > time.
> 
> You acked it without saying you didn't want me to apply it...  usually
> that means someone is OK with things getting applied.

Actually, that's not true:

MFD changes look sensible:
  Acked-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>

I'm happy to create a shared branch if required.   <-----###

> In any case, as
> ever it's on a branch by itself so you can pull it in easily.  I just
> tagged it.

Very well, thanks.

> The following changes since commit c9eaa447e77efe77b7fa4c953bd62de8297fd6c5:
> 
>   Linux 3.15-rc1 (2014-04-13 14:18:35 -0700)
> 
> are available in the git repository at:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git tags/mc13783-asoc
> 
> for you to fetch changes up to 780aaeff96819ca58e0cad830bfbe6eee9aef82c:
> 
>   ASoC: mc13783: Add devicetree support (2014-04-29 15:24:54 -0700)
> 
> ----------------------------------------------------------------
> ASoC: mc13783 DT support
> 
> Tagged since it updates the MFD as well.
> 
> ----------------------------------------------------------------
> Alexander Shiyan (1):
>       ASoC: mc13783: Add devicetree support
> 
>  Documentation/devicetree/bindings/mfd/mc13xxx.txt |  3 +++
>  drivers/mfd/mc13xxx-core.c                        | 10 +++++++---
>  sound/soc/codecs/mc13783.c                        | 14 +++++++++++++-
>  3 files changed, 23 insertions(+), 4 deletions(-)



-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
  2014-05-01  7:42                   ` Lee Jones
@ 2014-05-01 15:06                     ` Mark Brown
       [not found]                       ` <20140501150653.GZ3245-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Mark Brown @ 2014-05-01 15:06 UTC (permalink / raw)
  To: Lee Jones
  Cc: Alexander Shiyan, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
	Samuel Ortiz, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	devicetree-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

On Thu, May 01, 2014 at 08:42:53AM +0100, Lee Jones wrote:

> > You acked it without saying you didn't want me to apply it...  usually
> > that means someone is OK with things getting applied.

> Actually, that's not true:

> MFD changes look sensible:
>   Acked-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>

> I'm happy to create a shared branch if required.   <-----###

Sure, but I didn't see an urgent need for that immediately so I just
went ahead - the ack usually means that it's OK to apply.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
       [not found]                       ` <20140501150653.GZ3245-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
@ 2014-05-02  8:09                         ` Lee Jones
  2014-05-03  1:49                           ` Mark Brown
  0 siblings, 1 reply; 20+ messages in thread
From: Lee Jones @ 2014-05-02  8:09 UTC (permalink / raw)
  To: Mark Brown
  Cc: Alexander Shiyan, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
	Samuel Ortiz, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	devicetree-u79uwXL29TY76Z2rM5mHXA

On Thu, 01 May 2014, Mark Brown wrote:

> On Thu, May 01, 2014 at 08:42:53AM +0100, Lee Jones wrote:
> 
> > > You acked it without saying you didn't want me to apply it...  usually
> > > that means someone is OK with things getting applied.
> 
> > Actually, that's not true:
> 
> > MFD changes look sensible:
> >   Acked-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> 
> > I'm happy to create a shared branch if required.   <-----###
> 
> Sure, but I didn't see an urgent need for that immediately so I just
> went ahead - the ack usually means that it's OK to apply.

Hmm... I'm inclined to disagree.  The Ack is a marker that I'm okay
with the changes, but the note after makes it pretty clear that the
preference would be for the patch to be handled via an IB.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ASoC: mc13783: Add devicetree support
  2014-05-02  8:09                         ` Lee Jones
@ 2014-05-03  1:49                           ` Mark Brown
  0 siblings, 0 replies; 20+ messages in thread
From: Mark Brown @ 2014-05-03  1:49 UTC (permalink / raw)
  To: Lee Jones
  Cc: devicetree, alsa-devel, Samuel Ortiz, Alexander Shiyan,
	Takashi Iwai, Liam Girdwood


[-- Attachment #1.1: Type: text/plain, Size: 988 bytes --]

On Fri, May 02, 2014 at 09:09:44AM +0100, Lee Jones wrote:
> On Thu, 01 May 2014, Mark Brown wrote:

> > Sure, but I didn't see an urgent need for that immediately so I just
> > went ahead - the ack usually means that it's OK to apply.

> Hmm... I'm inclined to disagree.  The Ack is a marker that I'm okay
> with the changes, but the note after makes it pretty clear that the
> preference would be for the patch to be handled via an IB.

Right, and it's sitting on a separate branch which is (as we've seen)
very easy to add a tag to if it turns out to be needed.  This is what
all the small topic branches are there for, it makes it really easy to
cross merge, and obviously applying the patch on a branch is always
going to be the first step in creating an immutable branch.  It
certainly doesn't seem worth getting worried about.

Really, if you're not happy for something to be applied you probably
don't want to be acking it or you at least want to be really explicit
about things.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2014-05-03  1:49 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-26  6:57 [PATCH] ASoC: mc13783: Add devicetree support Alexander Shiyan
     [not found] ` <1398495423-2223-1-git-send-email-shc_work-JGs/UdohzUI@public.gmane.org>
2014-04-28 11:17   ` Lee Jones
2014-04-29 22:25   ` Mark Brown
     [not found]     ` <20140429222522.GS15125-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-04-30 14:08       ` Lee Jones
2014-04-30 14:11         ` Alexander Shiyan
     [not found]           ` <1398867073.695596467-rKA3owyty39sdVUOrk1QfQ@public.gmane.org>
2014-04-30 14:17             ` Lee Jones
2014-04-30 14:20               ` Alexander Shiyan
     [not found]                 ` <1398867618.574635813-rKA3owyty39sdVUOrk1QfQ@public.gmane.org>
2014-04-30 14:24                   ` Lee Jones
2014-04-30 14:28                     ` Alexander Shiyan
     [not found]                       ` <1398868130.411182088-rKA3owyty39sdVUOrk1QfQ@public.gmane.org>
2014-04-30 14:33                         ` Lee Jones
2014-04-30 14:40                           ` Alexander Shiyan
     [not found]                             ` <1398868829.456957971-NHsxxyuixOdsdVUOrk1QfQ@public.gmane.org>
2014-04-30 14:46                               ` Lee Jones
2014-04-30 14:58                                 ` Alexander Shiyan
2014-04-30 18:06               ` Mark Brown
     [not found]                 ` <20140430180653.GB3245-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-04-30 18:12                   ` Alexander Shiyan
     [not found]                     ` <1398881556.141711961-JZ33oUlt0U9sdVUOrk1QfQ@public.gmane.org>
2014-04-30 18:23                       ` Mark Brown
2014-05-01  7:42                   ` Lee Jones
2014-05-01 15:06                     ` Mark Brown
     [not found]                       ` <20140501150653.GZ3245-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-05-02  8:09                         ` Lee Jones
2014-05-03  1:49                           ` 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.