mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Merge branch 'samsung/driver' into next/drivers
Conflicts: arch/arm/mach-mxs/include/mach/common.h Pull in previous samsung conflict merges and do a trivial merge of an mxs double-add conflict. Signed-off-by: Arnd Bergmann <[email protected]>
This commit is contained in:
commit
dcf7ec5ee6
1271 changed files with 12353 additions and 12763 deletions
|
|
@ -264,7 +264,7 @@ static int __devinit dwc3_core_init(struct dwc3 *dwc)
|
|||
ret = -ENODEV;
|
||||
goto err0;
|
||||
}
|
||||
dwc->revision = reg & DWC3_GSNPSREV_MASK;
|
||||
dwc->revision = reg;
|
||||
|
||||
dwc3_core_soft_reset(dwc);
|
||||
|
||||
|
|
|
|||
|
|
@ -1748,7 +1748,7 @@ static int __init at91udc_probe(struct platform_device *pdev)
|
|||
|
||||
/* rm9200 needs manual D+ pullup; off by default */
|
||||
if (cpu_is_at91rm9200()) {
|
||||
if (udc->board.pullup_pin <= 0) {
|
||||
if (gpio_is_valid(udc->board.pullup_pin)) {
|
||||
DBG("no D+ pullup?\n");
|
||||
retval = -ENODEV;
|
||||
goto fail0;
|
||||
|
|
@ -1815,7 +1815,7 @@ static int __init at91udc_probe(struct platform_device *pdev)
|
|||
DBG("request irq %d failed\n", udc->udp_irq);
|
||||
goto fail1;
|
||||
}
|
||||
if (udc->board.vbus_pin > 0) {
|
||||
if (gpio_is_valid(udc->board.vbus_pin)) {
|
||||
retval = gpio_request(udc->board.vbus_pin, "udc_vbus");
|
||||
if (retval < 0) {
|
||||
DBG("request vbus pin failed\n");
|
||||
|
|
@ -1859,10 +1859,10 @@ static int __init at91udc_probe(struct platform_device *pdev)
|
|||
INFO("%s version %s\n", driver_name, DRIVER_VERSION);
|
||||
return 0;
|
||||
fail4:
|
||||
if (udc->board.vbus_pin > 0 && !udc->board.vbus_polled)
|
||||
if (gpio_is_valid(udc->board.vbus_pin) && !udc->board.vbus_polled)
|
||||
free_irq(udc->board.vbus_pin, udc);
|
||||
fail3:
|
||||
if (udc->board.vbus_pin > 0)
|
||||
if (gpio_is_valid(udc->board.vbus_pin))
|
||||
gpio_free(udc->board.vbus_pin);
|
||||
fail2:
|
||||
free_irq(udc->udp_irq, udc);
|
||||
|
|
@ -1897,7 +1897,7 @@ static int __exit at91udc_remove(struct platform_device *pdev)
|
|||
|
||||
device_init_wakeup(&pdev->dev, 0);
|
||||
remove_debug_file(udc);
|
||||
if (udc->board.vbus_pin > 0) {
|
||||
if (gpio_is_valid(udc->board.vbus_pin)) {
|
||||
free_irq(udc->board.vbus_pin, udc);
|
||||
gpio_free(udc->board.vbus_pin);
|
||||
}
|
||||
|
|
@ -1941,7 +1941,7 @@ static int at91udc_suspend(struct platform_device *pdev, pm_message_t mesg)
|
|||
enable_irq_wake(udc->udp_irq);
|
||||
|
||||
udc->active_suspend = wake;
|
||||
if (udc->board.vbus_pin > 0 && !udc->board.vbus_polled && wake)
|
||||
if (gpio_is_valid(udc->board.vbus_pin) && !udc->board.vbus_polled && wake)
|
||||
enable_irq_wake(udc->board.vbus_pin);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1951,7 +1951,7 @@ static int at91udc_resume(struct platform_device *pdev)
|
|||
struct at91_udc *udc = platform_get_drvdata(pdev);
|
||||
unsigned long flags;
|
||||
|
||||
if (udc->board.vbus_pin > 0 && !udc->board.vbus_polled &&
|
||||
if (gpio_is_valid(udc->board.vbus_pin) && !udc->board.vbus_polled &&
|
||||
udc->active_suspend)
|
||||
disable_irq_wake(udc->board.vbus_pin);
|
||||
|
||||
|
|
|
|||
|
|
@ -130,9 +130,6 @@ ep_matches (
|
|||
num_req_streams = ep_comp->bmAttributes & 0x1f;
|
||||
if (num_req_streams > ep->max_streams)
|
||||
return 0;
|
||||
/* Update the ep_comp descriptor if needed */
|
||||
if (num_req_streams != ep->max_streams)
|
||||
ep_comp->bmAttributes = ep->max_streams;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "isp1760-hcd.h"
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
#if defined(CONFIG_OF) && defined(CONFIG_OF_IRQ)
|
||||
#include <linux/slab.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_platform.h>
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
#include <linux/pci.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
#if defined(CONFIG_OF) && defined(CONFIG_OF_IRQ)
|
||||
struct isp1760 {
|
||||
struct usb_hcd *hcd;
|
||||
int rst_gpio;
|
||||
|
|
@ -437,7 +437,7 @@ static int __init isp1760_init(void)
|
|||
ret = platform_driver_register(&isp1760_plat_driver);
|
||||
if (!ret)
|
||||
any_ret = 0;
|
||||
#ifdef CONFIG_OF
|
||||
#if defined(CONFIG_OF) && defined(CONFIG_OF_IRQ)
|
||||
ret = platform_driver_register(&isp1760_of_driver);
|
||||
if (!ret)
|
||||
any_ret = 0;
|
||||
|
|
@ -457,7 +457,7 @@ module_init(isp1760_init);
|
|||
static void __exit isp1760_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&isp1760_plat_driver);
|
||||
#ifdef CONFIG_OF
|
||||
#if defined(CONFIG_OF) && defined(CONFIG_OF_IRQ)
|
||||
platform_driver_unregister(&isp1760_of_driver);
|
||||
#endif
|
||||
#ifdef CONFIG_PCI
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ static void ohci_at91_usb_set_power(struct at91_usbh_data *pdata, int port, int
|
|||
if (port < 0 || port >= 2)
|
||||
return;
|
||||
|
||||
if (pdata->vbus_pin[port] <= 0)
|
||||
if (!gpio_is_valid(pdata->vbus_pin[port]))
|
||||
return;
|
||||
|
||||
gpio_set_value(pdata->vbus_pin[port], !pdata->vbus_pin_inverted ^ enable);
|
||||
|
|
@ -234,7 +234,7 @@ static int ohci_at91_usb_get_power(struct at91_usbh_data *pdata, int port)
|
|||
if (port < 0 || port >= 2)
|
||||
return -EINVAL;
|
||||
|
||||
if (pdata->vbus_pin[port] <= 0)
|
||||
if (!gpio_is_valid(pdata->vbus_pin[port]))
|
||||
return -EINVAL;
|
||||
|
||||
return gpio_get_value(pdata->vbus_pin[port]) ^ !pdata->vbus_pin_inverted;
|
||||
|
|
@ -465,7 +465,7 @@ static int ohci_hcd_at91_drv_probe(struct platform_device *pdev)
|
|||
|
||||
if (pdata) {
|
||||
for (i = 0; i < ARRAY_SIZE(pdata->vbus_pin); i++) {
|
||||
if (pdata->vbus_pin[i] <= 0)
|
||||
if (!gpio_is_valid(pdata->vbus_pin[i]))
|
||||
continue;
|
||||
gpio_request(pdata->vbus_pin[i], "ohci_vbus");
|
||||
ohci_at91_usb_set_power(pdata, i, 1);
|
||||
|
|
@ -474,7 +474,7 @@ static int ohci_hcd_at91_drv_probe(struct platform_device *pdev)
|
|||
for (i = 0; i < ARRAY_SIZE(pdata->overcurrent_pin); i++) {
|
||||
int ret;
|
||||
|
||||
if (pdata->overcurrent_pin[i] <= 0)
|
||||
if (!gpio_is_valid(pdata->overcurrent_pin[i]))
|
||||
continue;
|
||||
gpio_request(pdata->overcurrent_pin[i], "ohci_overcurrent");
|
||||
|
||||
|
|
@ -499,14 +499,14 @@ static int ohci_hcd_at91_drv_remove(struct platform_device *pdev)
|
|||
|
||||
if (pdata) {
|
||||
for (i = 0; i < ARRAY_SIZE(pdata->vbus_pin); i++) {
|
||||
if (pdata->vbus_pin[i] <= 0)
|
||||
if (!gpio_is_valid(pdata->vbus_pin[i]))
|
||||
continue;
|
||||
ohci_at91_usb_set_power(pdata, i, 0);
|
||||
gpio_free(pdata->vbus_pin[i]);
|
||||
}
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(pdata->overcurrent_pin); i++) {
|
||||
if (pdata->overcurrent_pin[i] <= 0)
|
||||
if (!gpio_is_valid(pdata->overcurrent_pin[i]))
|
||||
continue;
|
||||
free_irq(gpio_to_irq(pdata->overcurrent_pin[i]), pdev);
|
||||
gpio_free(pdata->overcurrent_pin[i]);
|
||||
|
|
|
|||
|
|
@ -774,6 +774,10 @@ static void musb_ep_program(struct musb *musb, u8 epnum,
|
|||
if (musb->double_buffer_not_ok)
|
||||
musb_writew(epio, MUSB_TXMAXP,
|
||||
hw_ep->max_packet_sz_tx);
|
||||
else if (can_bulk_split(musb, qh->type))
|
||||
musb_writew(epio, MUSB_TXMAXP, packet_sz
|
||||
| ((hw_ep->max_packet_sz_tx /
|
||||
packet_sz) - 1) << 11);
|
||||
else
|
||||
musb_writew(epio, MUSB_TXMAXP,
|
||||
qh->maxpacket |
|
||||
|
|
|
|||
Loading…
Reference in a new issue