* [PATCH 02/13] i2c: i2c-imx: Let device core handle pinctrl
[not found] ` <1367863561-11534-1-git-send-email-fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
@ 2013-05-06 18:05 ` Fabio Estevam
2013-05-06 18:05 ` [PATCH 03/13] i2c: i2c-mxs: " Fabio Estevam
1 sibling, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2013-05-06 18:05 UTC (permalink / raw)
To: shawn.guo-QSEj5FYQhm4dnm+yROfE0A
Cc: kernel-bIcnvbaLZ9MEGnE8C9+IrQ, festevam-Re5JQEeQqe8AvxtiuMwx3w,
Fabio Estevam, Wolfram Sang, linux-i2c-u79uwXL29TY76Z2rM5mHXA
Since commit ab78029 (drivers/pinctrl: grab default handles from device core),
we can rely on device core for handling pinctrl.
So remove devm_pinctrl_get_select_default() from the driver.
Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
Cc: <linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Signed-off-by: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
---
drivers/i2c/busses/i2c-imx.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index 82f20c6..8c7526c 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -51,7 +51,6 @@
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_i2c.h>
-#include <linux/pinctrl/consumer.h>
#include <linux/platform_data/i2c-imx.h>
/** Defines ********************************************************************
@@ -493,7 +492,6 @@ static int __init i2c_imx_probe(struct platform_device *pdev)
struct imx_i2c_struct *i2c_imx;
struct resource *res;
struct imxi2c_platform_data *pdata = pdev->dev.platform_data;
- struct pinctrl *pinctrl;
void __iomem *base;
int irq, ret;
u32 bitrate;
@@ -535,12 +533,6 @@ static int __init i2c_imx_probe(struct platform_device *pdev)
i2c_imx->adapter.dev.of_node = pdev->dev.of_node;
i2c_imx->base = base;
- pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
- if (IS_ERR(pinctrl)) {
- dev_err(&pdev->dev, "can't get/select pinctrl\n");
- return PTR_ERR(pinctrl);
- }
-
/* Get I2C clock */
i2c_imx->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(i2c_imx->clk)) {
--
1.7.9.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 03/13] i2c: i2c-mxs: Let device core handle pinctrl
[not found] ` <1367863561-11534-1-git-send-email-fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2013-05-06 18:05 ` [PATCH 02/13] i2c: i2c-imx: Let device core handle pinctrl Fabio Estevam
@ 2013-05-06 18:05 ` Fabio Estevam
[not found] ` <1367863561-11534-3-git-send-email-fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
1 sibling, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2013-05-06 18:05 UTC (permalink / raw)
To: shawn.guo-QSEj5FYQhm4dnm+yROfE0A
Cc: kernel-bIcnvbaLZ9MEGnE8C9+IrQ, festevam-Re5JQEeQqe8AvxtiuMwx3w,
Fabio Estevam, Wolfram Sang, linux-i2c-u79uwXL29TY76Z2rM5mHXA
Since commit ab78029 (drivers/pinctrl: grab default handles from device core),
we can rely on device core for handling pinctrl.
So remove devm_pinctrl_get_select_default() from the driver.
Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
Cc: <linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Signed-off-by: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
---
drivers/i2c/busses/i2c-mxs.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c
index 120f246..7f3dced 100644
--- a/drivers/i2c/busses/i2c-mxs.c
+++ b/drivers/i2c/busses/i2c-mxs.c
@@ -24,7 +24,6 @@
#include <linux/platform_device.h>
#include <linux/jiffies.h>
#include <linux/io.h>
-#include <linux/pinctrl/consumer.h>
#include <linux/stmp_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -604,16 +603,11 @@ static int mxs_i2c_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct mxs_i2c_dev *i2c;
struct i2c_adapter *adap;
- struct pinctrl *pinctrl;
struct resource *res;
resource_size_t res_size;
int err, irq, dmairq;
dma_cap_mask_t mask;
- pinctrl = devm_pinctrl_get_select_default(dev);
- if (IS_ERR(pinctrl))
- return PTR_ERR(pinctrl);
-
i2c = devm_kzalloc(dev, sizeof(struct mxs_i2c_dev), GFP_KERNEL);
if (!i2c)
return -ENOMEM;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 03/13] i2c: i2c-mxs: Let device core handle pinctrl
[not found] ` <1367863561-11534-3-git-send-email-fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
@ 2013-05-26 20:58 ` Fabio Estevam
[not found] ` <CAOMZO5Bju3v4gXayzZ6vMjr9WrSqcYWN+6fnyKMc3AaoYt44Gg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2013-05-26 20:58 UTC (permalink / raw)
To: Fabio Estevam
Cc: shawn.guo-QSEj5FYQhm4dnm+yROfE0A, kernel-bIcnvbaLZ9MEGnE8C9+IrQ,
Wolfram Sang, linux-i2c-u79uwXL29TY76Z2rM5mHXA
Hi Wolfram,
On Mon, May 6, 2013 at 3:05 PM, Fabio Estevam
<fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org> wrote:
> Since commit ab78029 (drivers/pinctrl: grab default handles from device core),
> we can rely on device core for handling pinctrl.
>
> So remove devm_pinctrl_get_select_default() from the driver.
>
> Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
> Cc: <linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
> Signed-off-by: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Any comments on this one?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 03/13] i2c: i2c-mxs: Let device core handle pinctrl
[not found] ` <CAOMZO5Bju3v4gXayzZ6vMjr9WrSqcYWN+6fnyKMc3AaoYt44Gg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-06-08 7:15 ` Wolfram Sang
2013-06-08 7:49 ` Fabio Estevam
0 siblings, 1 reply; 6+ messages in thread
From: Wolfram Sang @ 2013-06-08 7:15 UTC (permalink / raw)
To: Fabio Estevam
Cc: Fabio Estevam, shawn.guo-QSEj5FYQhm4dnm+yROfE0A,
kernel-bIcnvbaLZ9MEGnE8C9+IrQ, linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]
On Sun, May 26, 2013 at 05:58:31PM -0300, Fabio Estevam wrote:
> Hi Wolfram,
>
> On Mon, May 6, 2013 at 3:05 PM, Fabio Estevam
> <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org> wrote:
> > Since commit ab78029 (drivers/pinctrl: grab default handles from device core),
> > we can rely on device core for handling pinctrl.
> >
> > So remove devm_pinctrl_get_select_default() from the driver.
> >
> > Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
> > Cc: <linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
> > Signed-off-by: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
>
> Any comments on this one?
Yes, with series like this, you really need a cover-letter and CC it to
all people involved. And mention there if you want these patches go via
a specific tree or each patch via the corresponding subsystem tree. And
mention if the patches are depending on each other. Otherwise I don't
really know what to do with these patches.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 03/13] i2c: i2c-mxs: Let device core handle pinctrl
2013-06-08 7:15 ` Wolfram Sang
@ 2013-06-08 7:49 ` Fabio Estevam
[not found] ` <CAOMZO5DQW7fB3Xi8mvymWhVZYcjuwTHKPyfDsWZCfw79AdUT7g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2013-06-08 7:49 UTC (permalink / raw)
To: Wolfram Sang
Cc: Fabio Estevam, shawn.guo-QSEj5FYQhm4dnm+yROfE0A,
kernel-bIcnvbaLZ9MEGnE8C9+IrQ, linux-i2c-u79uwXL29TY76Z2rM5mHXA
On Sat, Jun 8, 2013 at 4:15 AM, Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> wrote:
> Yes, with series like this, you really need a cover-letter and CC it to
> all people involved. And mention there if you want these patches go via
> a specific tree or each patch via the corresponding subsystem tree. And
> mention if the patches are depending on each other. Otherwise I don't
> really know what to do with these patches.
Ok, understood, Wolfram.
Please apply in your tree, if it looks good for you.
Thanks,
Fabio Estevam
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 03/13] i2c: i2c-mxs: Let device core handle pinctrl
[not found] ` <CAOMZO5DQW7fB3Xi8mvymWhVZYcjuwTHKPyfDsWZCfw79AdUT7g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-06-10 13:51 ` Wolfram Sang
0 siblings, 0 replies; 6+ messages in thread
From: Wolfram Sang @ 2013-06-10 13:51 UTC (permalink / raw)
To: Fabio Estevam
Cc: Fabio Estevam, shawn.guo-QSEj5FYQhm4dnm+yROfE0A,
kernel-bIcnvbaLZ9MEGnE8C9+IrQ, linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 87 bytes --]
> Please apply in your tree, if it looks good for you.
Applied to for-next, thanks!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-06-10 13:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1367863561-11534-1-git-send-email-fabio.estevam@freescale.com>
[not found] ` <1367863561-11534-1-git-send-email-fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2013-05-06 18:05 ` [PATCH 02/13] i2c: i2c-imx: Let device core handle pinctrl Fabio Estevam
2013-05-06 18:05 ` [PATCH 03/13] i2c: i2c-mxs: " Fabio Estevam
[not found] ` <1367863561-11534-3-git-send-email-fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2013-05-26 20:58 ` Fabio Estevam
[not found] ` <CAOMZO5Bju3v4gXayzZ6vMjr9WrSqcYWN+6fnyKMc3AaoYt44Gg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-08 7:15 ` Wolfram Sang
2013-06-08 7:49 ` Fabio Estevam
[not found] ` <CAOMZO5DQW7fB3Xi8mvymWhVZYcjuwTHKPyfDsWZCfw79AdUT7g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-10 13:51 ` Wolfram Sang
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).