diff options
author | Alejandro Gonzalez <alex.gonzalez@digi.com> | 2010-05-26 13:32:19 +0200 |
---|---|---|
committer | Alejandro Gonzalez <alex.gonzalez@digi.com> | 2010-05-26 13:32:19 +0200 |
commit | 566834514389a8939cbbc3c37961555da33e8be1 (patch) | |
tree | ae830108e2c702faa4dd0ef1cf5d857587faa319 /drivers | |
parent | e749e37adf1735c5a0b3bc5262cb542995ce42e9 (diff) |
ccwmx51: Compare with FSL official L2.6.31_10.04.01 source tree
Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/busses/mxc_i2c.c | 2 | ||||
-rw-r--r-- | drivers/mxc/pmic/mc13892/Kconfig | 8 | ||||
-rw-r--r-- | drivers/spi/Kconfig | 28 | ||||
-rw-r--r-- | drivers/usb/core/hub.c | 20 |
4 files changed, 33 insertions, 25 deletions
diff --git a/drivers/i2c/busses/mxc_i2c.c b/drivers/i2c/busses/mxc_i2c.c index c994c56da665..2ecec62aeabe 100644 --- a/drivers/i2c/busses/mxc_i2c.c +++ b/drivers/i2c/busses/mxc_i2c.c @@ -261,7 +261,7 @@ static int mxc_i2c_repstart(mxc_i2c_device *dev, struct i2c_msg *msg) } if (retry <= 0) { dev_err(&dev->adap.dev, "Could not grab Bus ownership\n"); - return -1; + return -EBUSY; } writew(addr_trans, dev->membase + MXC_I2DR); return 0; diff --git a/drivers/mxc/pmic/mc13892/Kconfig b/drivers/mxc/pmic/mc13892/Kconfig index 92f6dc8bdec5..2380d31fac15 100644 --- a/drivers/mxc/pmic/mc13892/Kconfig +++ b/drivers/mxc/pmic/mc13892/Kconfig @@ -11,6 +11,14 @@ config MXC_MC13892_ADC It controls also the touch screen interface. If you want MC13892 ADC support, you should say Y here +config MXC_MC13892_RTC + tristate "MC13892 Real Time Clock (RTC) support" + depends on MXC_PMIC_MC13892 + ---help--- + This is the MC13892 RTC module driver. This module provides kernel API + for RTC part of MC13892. + If you want MC13892 RTC support, you should say Y here + config MXC_MC13892_LIGHT tristate "MC13892 Light and Backlight support" depends on MXC_PMIC_MC13892 diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index f398412a9430..e16915107c6b 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -240,20 +240,20 @@ config SPI_MXC_TEST_LOOPBACK select SPI_SPIDEV default n -#config SPI_MXC_SELECT1 -# bool "CSPI1" -# depends on SPI_MXC -# default y - -#config SPI_MXC_SELECT2 -# bool "CSPI2" -# depends on SPI_MXC && (!ARCH_MXC91221) -# default n - -#config SPI_MXC_SELECT3 -# bool "CSPI3" -# depends on SPI_MXC && (ARCH_MX3 || ARCH_MX27 || ARCH_MX25 || ARCH_MX37 || ARCH_MX51) -# default n +config SPI_MXC_SELECT1 + bool "CSPI1" + depends on SPI_MXC + default y + +config SPI_MXC_SELECT2 + bool "CSPI2" + depends on SPI_MXC && (!ARCH_MXC91221) + default n + +config SPI_MXC_SELECT3 + bool "CSPI3" + depends on SPI_MXC && (ARCH_MX3 || ARCH_MX27 || ARCH_MX25 || ARCH_MX37 || ARCH_MX51) + default n config SPI_STMP3XXX tristate "Freescale STMP37xx/378x SPI/SSP controller" diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 6a84c8b31125..d47201c75915 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -603,7 +603,7 @@ static int hub_hub_status(struct usb_hub *hub, "%s failed (err = %d)\n", __func__, ret); else { *status = le16_to_cpu(hub->status->hub.wHubStatus); - *change = le16_to_cpu(hub->status->hub.wHubChange); + *change = le16_to_cpu(hub->status->hub.wHubChange); ret = 0; } mutex_unlock(&hub->status_mutex); @@ -2379,7 +2379,7 @@ static inline int remote_wakeup(struct usb_device *udev) * Between connect detection and reset signaling there must be a delay * of 100ms at least for debounce and power-settling. The corresponding * timer shall restart whenever the downstream port detects a disconnect. - * + * * Apparently there are some bluetooth and irda-dongles and a number of * low-speed devices for which this debounce period may last over a second. * Not covered by the spec - but easy to deal with. @@ -2564,7 +2564,7 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1, default: goto fail; } - + type = ""; switch (udev->speed) { case USB_SPEED_LOW: speed = "low"; break; @@ -2594,7 +2594,7 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1, udev->tt = &hub->tt; udev->ttport = port1; } - + /* Why interleave GET_DESCRIPTOR and SET_ADDRESS this way? * Because device hardware and firmware is sometimes buggy in * this area, and this is how Linux has done it for ages. @@ -2766,7 +2766,7 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1, udev->ep0.desc.wMaxPacketSize = cpu_to_le16(i); usb_ep0_reinit(udev); } - + retval = usb_get_device_descriptor(udev, USB_DT_DEVICE_SIZE); if (retval < (signed)sizeof(udev->descriptor)) { dev_err(&udev->dev, "device descriptor read/all, error %d\n", @@ -3082,7 +3082,7 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1, goto loop_disable; } } - + /* check for devices running slower than they could */ if (le16_to_cpu(udev->descriptor.bcdUSB) >= 0x0200 && udev->speed == USB_SPEED_FULL @@ -3139,7 +3139,7 @@ loop: !(hcd->driver->port_handed_over)(hcd, port1)) dev_err(hub_dev, "unable to enumerate USB device on port %d\n", port1); - + done: hub_port_disable(hub, port1, 1); if (hcd->driver->relinquish_port && !hub->hdev->parent) @@ -3300,7 +3300,7 @@ static void hub_events(void) "resume on port %d, status %d\n", i, ret); } - + if (portchange & USB_PORT_STAT_C_OVERCURRENT) { dev_err (hub_dev, "over-current change on port %d\n", @@ -3574,7 +3574,7 @@ static int usb_reset_and_verify_device(struct usb_device *udev) if (ret < 0) goto re_enumerate; - + /* Device might have changed firmware (DFU or similar) */ if (descriptors_changed(udev, &descriptor)) { dev_info(&udev->dev, "device firmware changed\n"); @@ -3628,7 +3628,7 @@ static int usb_reset_and_verify_device(struct usb_device *udev) done: return 0; - + re_enumerate: hub_port_logical_disconnect(parent_hub, port1); return -ENODEV; |