Commit 0bf32b80 authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by Greg Kroah-Hartman

usb: r8a66597-hcd: fix interrupt trigger

fix the problem that did not set IRQF_TRIGGER_ flag.
Signed-off-by: default avatarYoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 742120c6
...@@ -2244,6 +2244,7 @@ static int __init r8a66597_probe(struct platform_device *pdev) ...@@ -2244,6 +2244,7 @@ static int __init r8a66597_probe(struct platform_device *pdev)
struct r8a66597 *r8a66597; struct r8a66597 *r8a66597;
int ret = 0; int ret = 0;
int i; int i;
unsigned long irq_trigger;
if (pdev->dev.dma_mask) { if (pdev->dev.dma_mask) {
ret = -EINVAL; ret = -EINVAL;
...@@ -2302,7 +2303,11 @@ static int __init r8a66597_probe(struct platform_device *pdev) ...@@ -2302,7 +2303,11 @@ static int __init r8a66597_probe(struct platform_device *pdev)
INIT_LIST_HEAD(&r8a66597->child_device); INIT_LIST_HEAD(&r8a66597->child_device);
hcd->rsrc_start = res->start; 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) { if (ret != 0) {
err("Failed to add hcd"); err("Failed to add hcd");
goto clean_up; goto clean_up;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment