diff options
author | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | 2016-03-23 15:37:12 +0530 |
---|---|---|
committer | Chandana Kishori Chiluveru <cchiluve@codeaurora.org> | 2016-12-12 15:20:24 +0530 |
commit | da1cf560c2f723612a5e0eba5d9f524c71076439 (patch) | |
tree | 77c00803bc684429235d8d6e8dc57d32f5edec4f /drivers/usb/dwc3/dbm.c | |
parent | 280fe6dcf10a7af6141a6d48beeab05e32fa8e2c (diff) |
USB: dwc3-msm: Disable DBM endpoint in msm_ep_unconfig if no req queued
There is a chance that error might occur in connect_work before
endless request is queued to USB controller and bails out. In this case,
DBM endpoint will not be disabled and results in setendpoint config
command timeouts after next connect and could cause usb endpoint enable
fails. Fix this by disabling DBM endpoint corresponding to USB endpoint
in msm_ep_unconfig() if there are no requests queued to USB endpoint.
Change-Id: I5601d76c58263150a3ad5b026a8f2b10da087ba5
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Diffstat (limited to 'drivers/usb/dwc3/dbm.c')
-rw-r--r-- | drivers/usb/dwc3/dbm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/dbm.c b/drivers/usb/dwc3/dbm.c index 34a1b6259d1b..d19683319a23 100644 --- a/drivers/usb/dwc3/dbm.c +++ b/drivers/usb/dwc3/dbm.c @@ -192,7 +192,7 @@ static int find_matching_dbm_ep(struct dbm *dbm, u8 usb_ep) if (dbm->ep_num_mapping[i] == usb_ep) return i; - pr_err("%s: No DBM EP matches USB EP %d", __func__, usb_ep); + pr_debug("%s: No DBM EP matches USB EP %d", __func__, usb_ep); return -ENODEV; /* Not found */ } @@ -378,7 +378,7 @@ int dbm_ep_unconfig(struct dbm *dbm, u8 usb_ep) dbm_ep = find_matching_dbm_ep(dbm, usb_ep); if (dbm_ep < 0) { - pr_err("usb ep index %d has no corresponding dbm ep\n", usb_ep); + pr_debug("usb ep index %d has no corespondng dbm ep\n", usb_ep); return -ENODEV; } |