i.MX ehci platform support: Some fixes
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 4 Feb 2010 13:45:11 +0000 (14:45 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 4 Feb 2010 14:56:34 +0000 (15:56 +0100)
commit84ab80616b0eb5fac4d1970f10ea1b3cf75280e1
tree5b58e17cffeb5f9966e0efe3d47e589fecafa7eb
parentba593e5966440deec8684863e0cba9b502c4a377
i.MX ehci platform support: Some fixes

- The SIC mask is only 2bits wide, not 4
- MX31_OTG_PM_BIT and MX31_H1_PM_BIT use negative logic
- clear MX31_H1_DT_BIT and MX31_H2_DT_BIT so that they can be cleared,
  not only set.
- return -EINVAL if called with an invalid controller number

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Daniel Mack <daniel@caiaq.de>
arch/arm/plat-mxc/ehci.c