[RAMEN9610-14114] [9610] wlbt: fix completion when ignoring SABLE request in wlbtd
authorPurnendu Kapadia <p.kapadia@samsung.com>
Thu, 28 Mar 2019 11:36:31 +0000 (11:36 +0000)
committerhskang <hs1218.kang@samsung.com>
Wed, 3 Apr 2019 08:00:02 +0000 (17:00 +0900)
commitc50152a779f29353908b0f5c621dd24dc391171d
tree62de5f3334a12e8c3ad82e4fd7932221c457c5d8
parent75ca651afeec9cf1334d53ee06ea88863c32b1fa
[RAMEN9610-14114] [9610] wlbt: fix completion when ignoring SABLE request in wlbtd

When we get rapid requests for SABLE generation, to serialise while processing current request,
we ignore requests other than "fw_panic" in wlbtd and send a msg "ignoring" back to kernel.
We must complete in this case as well.

We must complete one completion upon message from wlbtdi, which has
waiter(s). completion_done() API does the check without modifying
the completion in anyway and returns false if there are waiters and
true otherwise

SCSC-Bug-Id: ssb-51156
Change-Id: Ieabcd8377a3040bdcfe51e4310eb55d84c693446
Signed-off-by: Purnendu Kapadia <p.kapadia@samsung.com>
drivers/misc/samsung/scsc/scsc_wlbtd.c