projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
742120c
)
usb: r8a66597-hcd: fix interrupt trigger
author
Yoshihiro Shimoda
<
[email protected]
>
Fri, 27 Jun 2008 10:09:55 +0000
(19:09 +0900)
committer
Greg Kroah-Hartman
<
[email protected]
>
Mon, 21 Jul 2008 22:16:34 +0000
(15:16 -0700)
fix the problem that did not set IRQF_TRIGGER_ flag.
Signed-off-by: Yoshihiro Shimoda <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/host/r8a66597-hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/r8a66597-hcd.c
b/drivers/usb/host/r8a66597-hcd.c
index a93d80b569744cc2e32edc009f6fb42792960b87..4db0107f31786b3bc308bef3f8da473994ea0484 100644
(file)
--- a/
drivers/usb/host/r8a66597-hcd.c
+++ b/
drivers/usb/host/r8a66597-hcd.c
@@
-2244,6
+2244,7
@@
static int __init r8a66597_probe(struct platform_device *pdev)
struct r8a66597 *r8a66597;
int ret = 0;
int i;
+ unsigned long irq_trigger;
if (pdev->dev.dma_mask) {
ret = -EINVAL;
@@
-2302,7
+2303,11
@@
static int __init r8a66597_probe(struct platform_device *pdev)
INIT_LIST_HEAD(&r8a66597->child_device);
hcd->rsrc_start = res->start;
- ret = usb_add_hcd(hcd, irq, IRQF_DISABLED);
+ if (irq_sense == INTL)
+ irq_trigger = IRQF_TRIGGER_LOW;
+ else
+ irq_trigger = IRQF_TRIGGER_FALLING;
+ ret = usb_add_hcd(hcd, irq, IRQF_DISABLED | irq_trigger);
if (ret != 0) {
err("Failed to add hcd");
goto clean_up;