diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-11 22:00:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-11 22:00:15 -0400 |
commit | b5121290cad7c9e1a786952da4f6d9bfbfb87597 (patch) | |
tree | a6e2c24f8bdb86e98cb4e962183d38a304436004 /drivers | |
parent | 409ab140e2ec662e473d4968e12b7ac97f5a5f4e (diff) | |
parent | c62dd365e248222903e6e3e3a8f5d8587e7e3345 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6:
mfd: Fix for the TWL4030 PM sleep/wakeup sequence
mfd: Fix asic3 build error
mfd: Fixed gpio polarity of omap-usb gpio USB-phy reset
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/asic3.c | 2 | ||||
-rw-r--r-- | drivers/mfd/omap-usb-host.c | 8 | ||||
-rw-r--r-- | drivers/mfd/twl4030-power.c | 3 |
3 files changed, 7 insertions, 6 deletions
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c index d4a851c6b5bf..0b4d5b23bec9 100644 --- a/drivers/mfd/asic3.c +++ b/drivers/mfd/asic3.c | |||
@@ -144,7 +144,7 @@ static void asic3_irq_demux(unsigned int irq, struct irq_desc *desc) | |||
144 | int iter, i; | 144 | int iter, i; |
145 | unsigned long flags; | 145 | unsigned long flags; |
146 | 146 | ||
147 | data->chip->irq_ack(irq_data); | 147 | data->chip->irq_ack(data); |
148 | 148 | ||
149 | for (iter = 0 ; iter < MAX_ASIC_ISR_LOOPS; iter++) { | 149 | for (iter = 0 ; iter < MAX_ASIC_ISR_LOOPS; iter++) { |
150 | u32 status; | 150 | u32 status; |
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 2e165117457b..3ab9ffa00aad 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c | |||
@@ -717,14 +717,14 @@ static int usbhs_enable(struct device *dev) | |||
717 | gpio_request(pdata->ehci_data->reset_gpio_port[0], | 717 | gpio_request(pdata->ehci_data->reset_gpio_port[0], |
718 | "USB1 PHY reset"); | 718 | "USB1 PHY reset"); |
719 | gpio_direction_output | 719 | gpio_direction_output |
720 | (pdata->ehci_data->reset_gpio_port[0], 1); | 720 | (pdata->ehci_data->reset_gpio_port[0], 0); |
721 | } | 721 | } |
722 | 722 | ||
723 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1])) { | 723 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1])) { |
724 | gpio_request(pdata->ehci_data->reset_gpio_port[1], | 724 | gpio_request(pdata->ehci_data->reset_gpio_port[1], |
725 | "USB2 PHY reset"); | 725 | "USB2 PHY reset"); |
726 | gpio_direction_output | 726 | gpio_direction_output |
727 | (pdata->ehci_data->reset_gpio_port[1], 1); | 727 | (pdata->ehci_data->reset_gpio_port[1], 0); |
728 | } | 728 | } |
729 | 729 | ||
730 | /* Hold the PHY in RESET for enough time till DIR is high */ | 730 | /* Hold the PHY in RESET for enough time till DIR is high */ |
@@ -904,11 +904,11 @@ static int usbhs_enable(struct device *dev) | |||
904 | 904 | ||
905 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[0])) | 905 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[0])) |
906 | gpio_set_value | 906 | gpio_set_value |
907 | (pdata->ehci_data->reset_gpio_port[0], 0); | 907 | (pdata->ehci_data->reset_gpio_port[0], 1); |
908 | 908 | ||
909 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1])) | 909 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1])) |
910 | gpio_set_value | 910 | gpio_set_value |
911 | (pdata->ehci_data->reset_gpio_port[1], 0); | 911 | (pdata->ehci_data->reset_gpio_port[1], 1); |
912 | } | 912 | } |
913 | 913 | ||
914 | end_count: | 914 | end_count: |
diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c index 16422de0823a..2c0d4d16491a 100644 --- a/drivers/mfd/twl4030-power.c +++ b/drivers/mfd/twl4030-power.c | |||
@@ -447,12 +447,13 @@ static int __init load_twl4030_script(struct twl4030_script *tscript, | |||
447 | if (err) | 447 | if (err) |
448 | goto out; | 448 | goto out; |
449 | } | 449 | } |
450 | if (tscript->flags & TWL4030_SLEEP_SCRIPT) | 450 | if (tscript->flags & TWL4030_SLEEP_SCRIPT) { |
451 | if (order) | 451 | if (order) |
452 | pr_warning("TWL4030: Bad order of scripts (sleep "\ | 452 | pr_warning("TWL4030: Bad order of scripts (sleep "\ |
453 | "script before wakeup) Leads to boot"\ | 453 | "script before wakeup) Leads to boot"\ |
454 | "failure on some boards\n"); | 454 | "failure on some boards\n"); |
455 | err = twl4030_config_sleep_sequence(address); | 455 | err = twl4030_config_sleep_sequence(address); |
456 | } | ||
456 | out: | 457 | out: |
457 | return err; | 458 | return err; |
458 | } | 459 | } |