Re: [PATCH] drivers: usb: fsl: Check IP version 2.4 for mph USB controller
On Thu, Aug 21, 2014 at 12:43:30PM +0530, Nikhil Badola wrote: > Check 2.4 IP version for multi port host USB controller and > return FSL_USB_VER_2_4 macro > > Signed-off-by: Nikhil Badola > --- > drivers/usb/host/fsl-mph-dr-of.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/usb/host/fsl-mph-dr-of.c > b/drivers/usb/host/fsl-mph-dr-of.c > index 9162d1b..e0315de 100644 > --- a/drivers/usb/host/fsl-mph-dr-of.c > +++ b/drivers/usb/host/fsl-mph-dr-of.c > @@ -126,6 +126,7 @@ static int usb_get_ver_info(struct device_node *np) > /* >* returns 1 for usb controller version 1.6 >* returns 2 for usb controller version 2.2 > + * returns 3 for usb controller version 2.4 >* returns 0 otherwise >*/ > if (of_device_is_compatible(np, "fsl-usb2-dr")) { > @@ -150,6 +151,8 @@ static int usb_get_ver_info(struct device_node *np) > ver = FSL_USB_VER_1_6; > else if (of_device_is_compatible(np, "fsl-usb2-mph-v2.2")) > ver = FSL_USB_VER_2_2; > + else if (of_device_is_compatible(np, "fsl-usb2-mph-v2.4")) > + ver = FSL_USB_VER_2_4; Why do we care? -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] drivers: usb: fsl: Check IP version 2.4 for mph USB controller
Check 2.4 IP version for multi port host USB controller and return FSL_USB_VER_2_4 macro Signed-off-by: Nikhil Badola --- drivers/usb/host/fsl-mph-dr-of.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/fsl-mph-dr-of.c b/drivers/usb/host/fsl-mph-dr-of.c index 9162d1b..e0315de 100644 --- a/drivers/usb/host/fsl-mph-dr-of.c +++ b/drivers/usb/host/fsl-mph-dr-of.c @@ -126,6 +126,7 @@ static int usb_get_ver_info(struct device_node *np) /* * returns 1 for usb controller version 1.6 * returns 2 for usb controller version 2.2 +* returns 3 for usb controller version 2.4 * returns 0 otherwise */ if (of_device_is_compatible(np, "fsl-usb2-dr")) { @@ -150,6 +151,8 @@ static int usb_get_ver_info(struct device_node *np) ver = FSL_USB_VER_1_6; else if (of_device_is_compatible(np, "fsl-usb2-mph-v2.2")) ver = FSL_USB_VER_2_2; + else if (of_device_is_compatible(np, "fsl-usb2-mph-v2.4")) + ver = FSL_USB_VER_2_4; else /* for previous controller versions */ ver = FSL_USB_VER_OLD; } -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html