Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9947eb5b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mhi: core: Using usleep_range instead of msleep for sleep"

parents d89aeff9 ab456436
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -45,7 +45,7 @@
#define MHI_PCIE_DEVICE_ID_ZIRC 0x0301
#define MHI_PCIE_DEVICE_ID_9x55 0x0302

#define MHI_M2_DEBOUNCE_TMR_MS 10
#define MHI_M2_DEBOUNCE_TMR_US 10000

#define MHI_EV_DB_INTERVAL 1

+1 −1
Original line number Diff line number Diff line
@@ -430,7 +430,7 @@ void process_m1_transition(struct work_struct *work)
	mhi_set_m_state(mhi_dev_ctxt, MHI_STATE_M2);
	write_unlock_irq(&mhi_dev_ctxt->pm_xfer_lock);

	msleep(MHI_M2_DEBOUNCE_TMR_MS);
	usleep_range(MHI_M2_DEBOUNCE_TMR_US, MHI_M2_DEBOUNCE_TMR_US + 50);
	write_lock_irq(&mhi_dev_ctxt->pm_xfer_lock);

	/* During DEBOUNCE Time We could be receiving M0 Event */