msm: ipa: changing to sleep in the range during sdci reset
Changing the sleep range to 1010 - 1050 microsecond if xdci reset is called after xdci stop. Change-Id: Ic4aa4c98f61b45cd222b9021e46cc6c00857762c Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Dieser Commit ist enthalten in:
@@ -18,7 +18,8 @@
|
||||
#define IPA_HOLB_TMR_EN 0x1
|
||||
#define IPA_HOLB_TMR_DIS 0x0
|
||||
#define IPA_POLL_AGGR_STATE_RETRIES_NUM 3
|
||||
#define IPA_POLL_AGGR_STATE_SLEEP_MSEC 1
|
||||
#define IPA_POLL_AGGR_STATE_SLEEP_USEC_MIN 1010
|
||||
#define IPA_POLL_AGGR_STATE_SLEEP_USEC_MAX 1050
|
||||
|
||||
#define IPA_PKT_FLUSH_TO_US 100
|
||||
|
||||
@@ -187,9 +188,10 @@ int ipa3_reset_gsi_channel(u32 clnt_hdl)
|
||||
|
||||
/*
|
||||
* Reset channel
|
||||
* If the reset called after stop, need to wait 1ms
|
||||
* If the reset called after stop, need to wait for about 1010us to 1050us
|
||||
*/
|
||||
msleep(IPA_POLL_AGGR_STATE_SLEEP_MSEC);
|
||||
usleep_range(IPA_POLL_AGGR_STATE_SLEEP_USEC_MIN,
|
||||
IPA_POLL_AGGR_STATE_SLEEP_USEC_MAX);
|
||||
gsi_res = gsi_reset_channel(ep->gsi_chan_hdl);
|
||||
if (gsi_res != GSI_STATUS_SUCCESS) {
|
||||
IPAERR("Error resetting channel: %d\n", gsi_res);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren