OSDN Git Service

usb: musb: add a work_struct to recover from babble errors
authorDaniel Mack <zonque@gmail.com>
Wed, 2 Apr 2014 11:58:28 +0000 (13:58 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 21 Apr 2014 19:07:28 +0000 (14:07 -0500)
commitca88fc2ef0d790a1da37804219102336f7622b97
tree6fba0f43345cda2e2a4463ec6cc3f3a38c8e8125
parent1e42d20c88f2f56c0d81363d7b0f1d3762037f53
usb: musb: add a work_struct to recover from babble errors

Handle BABBLE interrupt error conditions from a work struct handler.
This indirection is necessary as we can't be certain that the phy
functions don't sleep.

Platform layer implementation may pass a babble error down to the core
in order to handle it.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h