diff mbox

[v3,1/1] drivers: usb: Introduce FSL_USB2_PHY_UTMI_DUAL for usb gadget

Message ID 20180517212837.4210-2-tbrusa@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tiago Brusamarello May 17, 2018, 9:28 p.m. UTC
From: Nikhil Badola <nikhil.badola@freescale.com>

Introduce FSL_USB2_PHY_UTMI_DUAL in gadget driver for setting
phy in SOCs with utmi dual phy

Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
Tested-by: Tiago Brusamarello <tbrusa@gmail.com>
---

Changes since v2:
 * Reformatted the patch so it can be applied in the main tree

Changes since v1:
 * Removed Freescale internal information from commit message
 
 drivers/usb/gadget/udc/fsl_udc_core.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Leo Li May 17, 2018, 9:51 p.m. UTC | #1
> -----Original Message-----
> From: Tiago Brusamarello [mailto:tbrusa@gmail.com]
> Sent: Thursday, May 17, 2018 4:29 PM
> To: Leo Li <leoyang.li@nxp.com>
> Cc: linux-usb@vger.kernel.org; Nikhil Badola <nikhil.badola@freescale.com>
> Subject: [PATCH v3 1/1] drivers: usb: Introduce FSL_USB2_PHY_UTMI_DUAL
> for usb gadget
> 
> From: Nikhil Badola <nikhil.badola@freescale.com>
> 
> Introduce FSL_USB2_PHY_UTMI_DUAL in gadget driver for setting phy in
> SOCs with utmi dual phy
> 
> Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
> Tested-by: Tiago Brusamarello <tbrusa@gmail.com>

Acked-by: Li Yang <leoyang.li@nxp.com>

> ---
> 
> Changes since v2:
>  * Reformatted the patch so it can be applied in the main tree
> 
> Changes since v1:
>  * Removed Freescale internal information from commit message
> 
>  drivers/usb/gadget/udc/fsl_udc_core.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c
> b/drivers/usb/gadget/udc/fsl_udc_core.c
> index 56b517a38865..a3c092b4db20 100644
> --- a/drivers/usb/gadget/udc/fsl_udc_core.c
> +++ b/drivers/usb/gadget/udc/fsl_udc_core.c
> @@ -253,6 +253,7 @@ static int dr_controller_setup(struct fsl_udc *udc)
>  		portctrl |= PORTSCX_PTW_16BIT;
>  		/* fall through */
>  	case FSL_USB2_PHY_UTMI:
> +	case FSL_USB2_PHY_UTMI_DUAL:
>  		if (udc->pdata->have_sysif_regs) {
>  			if (udc->pdata->controller_ver) {
>  				/* controller version 1.6 or above */
> --
> 2.12.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c
index 56b517a38865..a3c092b4db20 100644
--- a/drivers/usb/gadget/udc/fsl_udc_core.c
+++ b/drivers/usb/gadget/udc/fsl_udc_core.c
@@ -253,6 +253,7 @@  static int dr_controller_setup(struct fsl_udc *udc)
 		portctrl |= PORTSCX_PTW_16BIT;
 		/* fall through */
 	case FSL_USB2_PHY_UTMI:
+	case FSL_USB2_PHY_UTMI_DUAL:
 		if (udc->pdata->have_sysif_regs) {
 			if (udc->pdata->controller_ver) {
 				/* controller version 1.6 or above */