summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorInha Song <ideal.song@samsung.com>2015-05-22 18:14:26 +0200
committerLukasz Majewski <l.majewski@samsung.com>2015-06-08 15:26:00 +0200
commit075020abbf00bb4c3640524d8986b751a3a51c4a (patch)
tree44fd43063287e1e57c3b25391ec6859e308fa2c9 /drivers
parentcac178781ded415b005a9f0e198d14b53d8268cd (diff)
usb: f_mass_storage: sleep_thread: decrease the interval for check ctrlc()
This change decreases the interval of calls to: - display busy indicator - check ctrlc() - check cable connection By this change, breaking the UMS command is more easy on Odroid XU3. Signed-off-by: Inha Song <ideal.song@samsung.com> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/f_mass_storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c
index d1bc5efa9b..abe9391d3d 100644
--- a/drivers/usb/gadget/f_mass_storage.c
+++ b/drivers/usb/gadget/f_mass_storage.c
@@ -671,7 +671,7 @@ static int sleep_thread(struct fsg_common *common)
if (common->thread_wakeup_needed)
break;
- if (++i == 50000) {
+ if (++i == 20000) {
busy_indicator();
i = 0;
k++;