All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hebbar Gururaja <gururaja.hebbar@ti.com>
To: <broonie@opensource.wolfsonmicro.com>,
	<alsa-devel@alsa-project.org>,
	<davinci-linux-open-source@linux.davincidsp.com>,
	<linux-arm-kernel@lists.infradead.org>
Cc: <tony@atomide.com>, <lrg@ti.com>, <perex@perex.cz>,
	<nsekhar@ti.com>, <gururaja.hebbar@ti.com>,
	<linux-kernel@vger.kernel.org>,
	<devicetree-discuss@lists.ozlabs.org>,
	<linux-doc@vger.kernel.org>, <rob@landley.net>
Subject: [PATCH V2 1/2] ASoC: davinci-mcasp: Add pinctrl support
Date: Fri, 4 Jan 2013 15:24:36 +0530	[thread overview]
Message-ID: <1357293277-25543-2-git-send-email-gururaja.hebbar@ti.com> (raw)
In-Reply-To: <1357293277-25543-1-git-send-email-gururaja.hebbar@ti.com>

From: "Hebbar, Gururaja" <gururaja.hebbar@ti.com>

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
---
Changes in V2
	- no change

:100644 100644 55e2bf6... 83d96eb... M	sound/soc/davinci/davinci-mcasp.c
 sound/soc/davinci/davinci-mcasp.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c
index 55e2bf6..83d96eb 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -25,6 +25,7 @@
 #include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/of_device.h>
+#include <linux/pinctrl/consumer.h>
 
 #include <sound/core.h>
 #include <sound/pcm.h>
@@ -1080,6 +1081,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
 	struct resource *mem, *ioarea, *res;
 	struct snd_platform_data *pdata;
 	struct davinci_audio_dev *dev;
+	struct pinctrl *pinctrl;
 	int ret;
 
 	if (!pdev->dev.platform_data && !pdev->dev.of_node) {
@@ -1111,6 +1113,11 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
 		return -EBUSY;
 	}
 
+	pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
+	if (IS_ERR(pinctrl))
+		dev_warn(&pdev->dev,
+				"pins are not configured from the driver\n");
+
 	pm_runtime_enable(&pdev->dev);
 
 	ret = pm_runtime_get_sync(&pdev->dev);
-- 
1.7.9.5


WARNING: multiple messages have this Message-ID (diff)
From: Hebbar Gururaja <gururaja.hebbar@ti.com>
To: broonie@opensource.wolfsonmicro.com, alsa-devel@alsa-project.org,
	davinci-linux-open-source@linux.davincidsp.com,
	linux-arm-kernel@lists.infradead.org
Cc: tony@atomide.com, lrg@ti.com, perex@perex.cz, nsekhar@ti.com,
	gururaja.hebbar@ti.com, linux-kernel@vger.kernel.org,
	devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org,
	rob@landley.net
Subject: [PATCH V2 1/2] ASoC: davinci-mcasp: Add pinctrl support
Date: Fri, 4 Jan 2013 15:24:36 +0530	[thread overview]
Message-ID: <1357293277-25543-2-git-send-email-gururaja.hebbar@ti.com> (raw)
In-Reply-To: <1357293277-25543-1-git-send-email-gururaja.hebbar@ti.com>

From: "Hebbar, Gururaja" <gururaja.hebbar@ti.com>

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
---
Changes in V2
	- no change

:100644 100644 55e2bf6... 83d96eb... M	sound/soc/davinci/davinci-mcasp.c
 sound/soc/davinci/davinci-mcasp.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c
index 55e2bf6..83d96eb 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -25,6 +25,7 @@
 #include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/of_device.h>
+#include <linux/pinctrl/consumer.h>
 
 #include <sound/core.h>
 #include <sound/pcm.h>
@@ -1080,6 +1081,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
 	struct resource *mem, *ioarea, *res;
 	struct snd_platform_data *pdata;
 	struct davinci_audio_dev *dev;
+	struct pinctrl *pinctrl;
 	int ret;
 
 	if (!pdev->dev.platform_data && !pdev->dev.of_node) {
@@ -1111,6 +1113,11 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
 		return -EBUSY;
 	}
 
+	pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
+	if (IS_ERR(pinctrl))
+		dev_warn(&pdev->dev,
+				"pins are not configured from the driver\n");
+
 	pm_runtime_enable(&pdev->dev);
 
 	ret = pm_runtime_get_sync(&pdev->dev);
-- 
1.7.9.5


WARNING: multiple messages have this Message-ID (diff)
From: gururaja.hebbar@ti.com (Hebbar Gururaja)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2 1/2] ASoC: davinci-mcasp: Add pinctrl support
Date: Fri, 4 Jan 2013 15:24:36 +0530	[thread overview]
Message-ID: <1357293277-25543-2-git-send-email-gururaja.hebbar@ti.com> (raw)
In-Reply-To: <1357293277-25543-1-git-send-email-gururaja.hebbar@ti.com>

From: "Hebbar, Gururaja" <gururaja.hebbar@ti.com>

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
---
Changes in V2
	- no change

:100644 100644 55e2bf6... 83d96eb... M	sound/soc/davinci/davinci-mcasp.c
 sound/soc/davinci/davinci-mcasp.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c
index 55e2bf6..83d96eb 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -25,6 +25,7 @@
 #include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/of_device.h>
+#include <linux/pinctrl/consumer.h>
 
 #include <sound/core.h>
 #include <sound/pcm.h>
@@ -1080,6 +1081,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
 	struct resource *mem, *ioarea, *res;
 	struct snd_platform_data *pdata;
 	struct davinci_audio_dev *dev;
+	struct pinctrl *pinctrl;
 	int ret;
 
 	if (!pdev->dev.platform_data && !pdev->dev.of_node) {
@@ -1111,6 +1113,11 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
 		return -EBUSY;
 	}
 
+	pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
+	if (IS_ERR(pinctrl))
+		dev_warn(&pdev->dev,
+				"pins are not configured from the driver\n");
+
 	pm_runtime_enable(&pdev->dev);
 
 	ret = pm_runtime_get_sync(&pdev->dev);
-- 
1.7.9.5

  reply	other threads:[~2013-01-04  9:54 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-04  9:54 [PATCH V2 0/2] ARM/ASoC: Davinci: Device Tree Update Hebbar Gururaja
2013-01-04  9:54 ` Hebbar Gururaja
2013-01-04  9:54 ` Hebbar Gururaja
2013-01-04  9:54 ` Hebbar Gururaja [this message]
2013-01-04  9:54   ` [PATCH V2 1/2] ASoC: davinci-mcasp: Add pinctrl support Hebbar Gururaja
2013-01-04  9:54   ` Hebbar Gururaja
2013-01-04 11:38   ` Mark Brown
2013-01-04 11:38     ` Mark Brown
2013-01-04 11:38     ` Mark Brown
2013-01-04  9:54 ` [PATCH V2 2/2] ASoC: Davinci: machine: Add device tree binding Hebbar Gururaja
2013-01-04  9:54   ` Hebbar Gururaja
2013-01-04  9:54   ` Hebbar Gururaja
2013-01-04 12:26   ` Mark Brown
2013-01-04 12:26     ` Mark Brown
2013-01-07  9:20     ` [alsa-devel] " Hebbar, Gururaja
2013-01-07  9:20       ` Hebbar, Gururaja
2013-01-07  9:20       ` Hebbar, Gururaja
2013-01-07 14:27       ` Mark Brown
2013-01-07 14:27         ` Mark Brown
2013-01-07 14:27         ` Mark Brown
2013-01-23 12:39     ` Hebbar, Gururaja
2013-01-23 12:39       ` Hebbar, Gururaja
2013-01-23 12:39       ` Hebbar, Gururaja
2013-01-23 15:48       ` Mark Brown
2013-01-23 15:48         ` Mark Brown
2013-01-23 15:48         ` Mark Brown
2013-01-24  9:33         ` [alsa-devel] " Hebbar, Gururaja
2013-01-24  9:33           ` Hebbar, Gururaja
2013-01-24  9:33           ` Hebbar, Gururaja
2013-01-24 10:02           ` Mark Brown
2013-01-24 10:02             ` Mark Brown
2013-01-24 10:02             ` Mark Brown
2013-01-24 10:06             ` Hebbar, Gururaja
2013-01-24 10:06               ` Hebbar, Gururaja
2013-01-24 10:06               ` Hebbar, Gururaja
2013-01-24 10:13               ` Mark Brown
2013-01-24 10:13                 ` Mark Brown
2013-01-24 10:13                 ` Mark Brown
2013-01-24 10:24                 ` [alsa-devel] " Hebbar, Gururaja
2013-01-24 10:24                   ` Hebbar, Gururaja
2013-01-24 10:24                   ` Hebbar, Gururaja

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1357293277-25543-2-git-send-email-gururaja.hebbar@ti.com \
    --to=gururaja.hebbar@ti.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=davinci-linux-open-source@linux.davincidsp.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lrg@ti.com \
    --cc=nsekhar@ti.com \
    --cc=perex@perex.cz \
    --cc=rob@landley.net \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.