]> git.hungrycats.org Git - linux/commitdiff
usb: chipidea: fix id change handling
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Tue, 11 Jun 2013 10:41:48 +0000 (13:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jun 2013 19:01:38 +0000 (12:01 -0700)
commit 0c3f3dc68bb6e6950e8cd7851e7778c550e8dfb4 upstream.

Re-enable chipidea irq even if there's no role changing to do. This is
a problem since b183c19f ("USB: chipidea: re-order irq handling to avoid
unhandled irqs"); when it manifests, chipidea irq gets disabled for good.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/core.c

index 57cae1f897b21b7b4797e2ea54f7cfe51042618b..246c191a7dc35b5fd66ec2ea0b647aba36e4c51a 100644 (file)
@@ -279,8 +279,9 @@ static void ci_role_work(struct work_struct *work)
 
                ci_role_stop(ci);
                ci_role_start(ci, role);
-               enable_irq(ci->irq);
        }
+
+       enable_irq(ci->irq);
 }
 
 static ssize_t show_role(struct device *dev, struct device_attribute *attr,