Commit e576a7a9 authored by Yusuke Goda's avatar Yusuke Goda Committed by Greg Kroah-Hartman

usb: r8a66597-udc: Add processing when USB was removed.

When USB was removed, this patch prepares for the next insertion.
Signed-off-by: default avatarYusuke Goda <yusuke.goda.sx@renesas.com>
Acked-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 69cb1ec4
...@@ -42,6 +42,7 @@ static const char *r8a66597_ep_name[] = { ...@@ -42,6 +42,7 @@ static const char *r8a66597_ep_name[] = {
"ep8", "ep9", "ep8", "ep9",
}; };
static void init_controller(struct r8a66597 *r8a66597);
static void disable_controller(struct r8a66597 *r8a66597); static void disable_controller(struct r8a66597 *r8a66597);
static void irq_ep0_write(struct r8a66597_ep *ep, struct r8a66597_request *req); static void irq_ep0_write(struct r8a66597_ep *ep, struct r8a66597_request *req);
static void irq_packet_write(struct r8a66597_ep *ep, static void irq_packet_write(struct r8a66597_ep *ep,
...@@ -104,6 +105,8 @@ __acquires(r8a66597->lock) ...@@ -104,6 +105,8 @@ __acquires(r8a66597->lock)
spin_lock(&r8a66597->lock); spin_lock(&r8a66597->lock);
disable_controller(r8a66597); disable_controller(r8a66597);
init_controller(r8a66597);
r8a66597_bset(r8a66597, VBSE, INTENB0);
INIT_LIST_HEAD(&r8a66597->ep[0].queue); INIT_LIST_HEAD(&r8a66597->ep[0].queue);
} }
......
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