ipmi: Fix SSIF flag requests
authorCorey Minyard <cminyard@mvista.com>
Mon, 22 Oct 2018 20:30:57 +0000 (15:30 -0500)
committerCorey Minyard <cminyard@mvista.com>
Sun, 10 Feb 2019 01:48:41 +0000 (19:48 -0600)
commita1466ec5b671651b848df17fc9233ecbb7d35f9f
treed648d1d16ff077724d08018e66f048910b6b3b42
parent401e7e88d4ef80188ffa07095ac00456f901b8c4
ipmi: Fix SSIF flag requests

Commit 89986496de141 ("ipmi: Turn off all activity on an idle ipmi
interface") modified the IPMI code to only request events when the
driver had somethine waiting for events.  The SSIF code, however,
was using the event fetch request to also fetch the flags.

Add a timer and the proper handling for the upper layer telling
whether flags fetches are required.

Reported-by: Kamlakant Patel <Kamlakant.Patel@cavium.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Tested-by: Kamlakant Patel <kamlakant.patel@cavium.com>
drivers/char/ipmi/ipmi_ssif.c