[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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:22 +0000 (20:23 +0300)
commite4df91387d3c744c8c208047e4ba26a1027c0782
treea6f2203a65fb8b283609c1763f49d3b81a4111d6
parentbfcea0e24ddbe823974c357d3ce981c75912c5fa
[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