mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] usb: mx25: fix bit position of "Host power mask"
@ 2015-11-06 10:32 Uwe Kleine-König
  2015-11-09  6:33 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2015-11-06 10:32 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

The bit MX25_H1_PM_BIT value is handled for port 1 as MX25_OTG_PM_BIT is
for port 0. The latter is called "OPM: OTG power mask" in the i.MX25
reference manual. Its description matches the description of "HPM: Host
power mask" for the host port which is bit 16, not 8.

The Linux kernel (as of 4.3) also has

	#define MX25_H1_PM_BIT                  BIT(16)

.

Fixes: a4076ddf6577 ("USB i.MX: Add chipidea driver support")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/usb/imx/imx-usb-misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/imx/imx-usb-misc.c b/drivers/usb/imx/imx-usb-misc.c
index be95b89aff24..af1a32110c9a 100644
--- a/drivers/usb/imx/imx-usb-misc.c
+++ b/drivers/usb/imx/imx-usb-misc.c
@@ -31,7 +31,7 @@
 #define MX25_H1_SIC_SHIFT	21
 #define MX25_H1_SIC_MASK	(0x3 << MX25_H1_SIC_SHIFT)
 #define MX25_H1_PP_BIT		(1 << 18)
-#define MX25_H1_PM_BIT		(1 << 8)
+#define MX25_H1_PM_BIT		(1 << 16)
 #define MX25_H1_IPPUE_UP_BIT	(1 << 7)
 #define MX25_H1_IPPUE_DOWN_BIT	(1 << 6)
 #define MX25_H1_TLL_BIT		(1 << 5)
-- 
2.6.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] usb: mx25: fix bit position of "Host power mask"
  2015-11-06 10:32 [PATCH] usb: mx25: fix bit position of "Host power mask" Uwe Kleine-König
@ 2015-11-09  6:33 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-11-09  6:33 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox

On Fri, Nov 06, 2015 at 11:32:48AM +0100, Uwe Kleine-König wrote:
> The bit MX25_H1_PM_BIT value is handled for port 1 as MX25_OTG_PM_BIT is
> for port 0. The latter is called "OPM: OTG power mask" in the i.MX25
> reference manual. Its description matches the description of "HPM: Host
> power mask" for the host port which is bit 16, not 8.
> 
> The Linux kernel (as of 4.3) also has
> 
> 	#define MX25_H1_PM_BIT                  BIT(16)
> 
> .
> 
> Fixes: a4076ddf6577 ("USB i.MX: Add chipidea driver support")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-09  6:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-06 10:32 [PATCH] usb: mx25: fix bit position of "Host power mask" Uwe Kleine-König
2015-11-09  6:33 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox