mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ipmi: hold ATTN until upper layer ready
Hold handling of ATTN until the upper layer has reported that it is ready. Signed-off-by: Corey Minyard <[email protected]> Cc: Patrick Schoeller <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
02fdb36ae7
commit
4ea1842543
1 changed files with 5 additions and 2 deletions
|
|
@ -723,8 +723,11 @@ static enum si_sm_result smi_event_handler(struct smi_info *smi_info,
|
|||
si_sm_result = smi_info->handlers->event(smi_info->si_sm, 0);
|
||||
}
|
||||
|
||||
/* We prefer handling attn over new messages. */
|
||||
if (si_sm_result == SI_SM_ATTN)
|
||||
/*
|
||||
* We prefer handling attn over new messages. But don't do
|
||||
* this if there is not yet an upper layer to handle anything.
|
||||
*/
|
||||
if (likely(smi_info->intf) && si_sm_result == SI_SM_ATTN)
|
||||
{
|
||||
unsigned char msg[2];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue