usb_c: Stop chunking_not_supported timer on exit
Stop chunking_not_supported timer on exit Signed-off-by: Sam Hurst <sbh1187@gmail.com>
This commit is contained in:
parent
0ed5c886c9
commit
983b693198
3 changed files with 9 additions and 1 deletions
|
@ -822,7 +822,7 @@ static const struct smf_state pe_states[] = {
|
|||
[PE_SNK_CHUNK_RECEIVED] = SMF_CREATE_STATE(
|
||||
pe_chunk_received_entry,
|
||||
pe_chunk_received_run,
|
||||
NULL,
|
||||
pe_chunk_received_exit,
|
||||
NULL),
|
||||
[PE_SUSPEND] = SMF_CREATE_STATE(
|
||||
pe_suspend_entry,
|
||||
|
|
|
@ -852,6 +852,13 @@ void pe_chunk_received_run(void *obj)
|
|||
}
|
||||
}
|
||||
|
||||
void pe_chunk_received_exit(void *obj)
|
||||
{
|
||||
struct policy_engine *pe = (struct policy_engine *)obj;
|
||||
|
||||
usbc_timer_stop(&pe->pd_t_chunking_not_supported);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief PE_SNK_Give_Sink_Cap Entry state
|
||||
*/
|
||||
|
|
|
@ -94,6 +94,7 @@ void pe_send_not_supported_run(void *obj);
|
|||
*/
|
||||
void pe_chunk_received_entry(void *obj);
|
||||
void pe_chunk_received_run(void *obj);
|
||||
void pe_chunk_received_exit(void *obj);
|
||||
|
||||
/**
|
||||
* @brief PE_SNK_Give_Sink_Cap Entry state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue