diff mbox

[v2,2/2] usb: chipidea: usbmisc: Add support for i.MX51 CPU

Message ID 1385480210-9349-2-git-send-email-shc_work@mail.ru (mailing list archive)
State New, archived
Headers show

Commit Message

Alexander Shiyan Nov. 26, 2013, 3:36 p.m. UTC
This adds i.MX51 as the next user of the usbmisc driver.
Functionality is similar to i.MX53, so at this stage simply
reuse existing i.MX53 calls.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/usb/chipidea/usbmisc_imx.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Shawn Guo Nov. 28, 2013, 2:28 a.m. UTC | #1
On Tue, Nov 26, 2013 at 07:36:50PM +0400, Alexander Shiyan wrote:
> This adds i.MX51 as the next user of the usbmisc driver.
> Functionality is similar to i.MX53, so at this stage simply
> reuse existing i.MX53 calls.
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  drivers/usb/chipidea/usbmisc_imx.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
> index 4381c5a6..cd061ab 100644
> --- a/drivers/usb/chipidea/usbmisc_imx.c
> +++ b/drivers/usb/chipidea/usbmisc_imx.c
> @@ -204,6 +204,10 @@ static const struct of_device_id usbmisc_imx_dt_ids[] = {
>  		.data = &imx27_usbmisc_ops,
>  	},
>  	{
> +		.compatible = "fsl,imx51-usbmisc",
> +		.data = &imx53_usbmisc_ops,

If it simply uses imx53 ops, why do we need to introduce a new
compatible?

Shawn

> +	},
> +	{
>  		.compatible = "fsl,imx53-usbmisc",
>  		.data = &imx53_usbmisc_ops,
>  	},
> -- 
> 1.8.3.2
>
Alexander Shiyan Nov. 28, 2013, 6:45 a.m. UTC | #2
Hello.

> On Tue, Nov 26, 2013 at 07:36:50PM +0400, Alexander Shiyan wrote:
> > This adds i.MX51 as the next user of the usbmisc driver.
> > Functionality is similar to i.MX53, so at this stage simply
> > reuse existing i.MX53 calls.
> > 
> > Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> > ---
> >  drivers/usb/chipidea/usbmisc_imx.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
> > index 4381c5a6..cd061ab 100644
> > --- a/drivers/usb/chipidea/usbmisc_imx.c
> > +++ b/drivers/usb/chipidea/usbmisc_imx.c
> > @@ -204,6 +204,10 @@ static const struct of_device_id usbmisc_imx_dt_ids[] = {
> >  		.data = &imx27_usbmisc_ops,
> >  	},
> >  	{
> > +		.compatible = "fsl,imx51-usbmisc",
> > +		.data = &imx53_usbmisc_ops,
> 
> If it simply uses imx53 ops, why do we need to introduce a new
> compatible?

This has been discussed here:
http://www.spinics.net/lists/linux-usb/msg97502.html

Additionally, "fsl,imx51-usbmisc" string already present in imx51.dtsi.
Thanks.

---
Peter Chen Nov. 29, 2013, 8:51 a.m. UTC | #3
> This adds i.MX51 as the next user of the usbmisc driver.
> Functionality is similar to i.MX53, so at this stage simply
> reuse existing i.MX53 calls.
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  drivers/usb/chipidea/usbmisc_imx.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/usb/chipidea/usbmisc_imx.c
> b/drivers/usb/chipidea/usbmisc_imx.c
> index 4381c5a6..cd061ab 100644
> --- a/drivers/usb/chipidea/usbmisc_imx.c
> +++ b/drivers/usb/chipidea/usbmisc_imx.c
> @@ -204,6 +204,10 @@ static const struct of_device_id usbmisc_imx_dt_ids[]
> = {
>  		.data = &imx27_usbmisc_ops,
>  	},
>  	{
> +		.compatible = "fsl,imx51-usbmisc",
> +		.data = &imx53_usbmisc_ops,
> +	},
> +	{
>  		.compatible = "fsl,imx53-usbmisc",
>  		.data = &imx53_usbmisc_ops,
>  	},
> --

Acked-by: Peter Chen <peter.chen@freescale.com>

Peter
Peter Chen Dec. 4, 2013, 1:59 p.m. UTC | #4
On Tue, Nov 26, 2013 at 07:36:50PM +0400, Alexander Shiyan wrote:
> This adds i.MX51 as the next user of the usbmisc driver.
> Functionality is similar to i.MX53, so at this stage simply
> reuse existing i.MX53 calls.
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  drivers/usb/chipidea/usbmisc_imx.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
> index 4381c5a6..cd061ab 100644
> --- a/drivers/usb/chipidea/usbmisc_imx.c
> +++ b/drivers/usb/chipidea/usbmisc_imx.c
> @@ -204,6 +204,10 @@ static const struct of_device_id usbmisc_imx_dt_ids[] = {
>  		.data = &imx27_usbmisc_ops,
>  	},
>  	{
> +		.compatible = "fsl,imx51-usbmisc",
> +		.data = &imx53_usbmisc_ops,
> +	},
> +	{
>  		.compatible = "fsl,imx53-usbmisc",
>  		.data = &imx53_usbmisc_ops,
>  	},
> -- 
> 1.8.3.2
> 
> 

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
index 4381c5a6..cd061ab 100644
--- a/drivers/usb/chipidea/usbmisc_imx.c
+++ b/drivers/usb/chipidea/usbmisc_imx.c
@@ -204,6 +204,10 @@  static const struct of_device_id usbmisc_imx_dt_ids[] = {
 		.data = &imx27_usbmisc_ops,
 	},
 	{
+		.compatible = "fsl,imx51-usbmisc",
+		.data = &imx53_usbmisc_ops,
+	},
+	{
 		.compatible = "fsl,imx53-usbmisc",
 		.data = &imx53_usbmisc_ops,
 	},