maru: power_supply: add operation lock 10/264410/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211028.225311 accepted/tizen/unified/20210923.012133 submit/tizen/20210917.074043 submit/tizen_6.5/20211028.164101 tizen_6.5.m2_release
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 17 Sep 2021 04:58:58 +0000 (13:58 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 17 Sep 2021 06:37:51 +0000 (15:37 +0900)
commit89ea13b5ecb6424184184260def2ad0a70f551cf
tree4c5dd79e9c343ee886daca1666c7126bfa105f20
parent0056c18c0b4e742a210725901faf07d005a3de61
maru: power_supply: add operation lock

maru power_supply has get and set operations to qemu with virtio
queue and they can be called multiple times, but only one flag is
used to check virtio queue req & res state. This causes virtio queue
req & res wait mechanism cannot wake. Add operation lock to resolve
this.

Change-Id: Ia9c4549160df8ac86cceb7c478f7f2767c42bcf5
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/maru/maru_power_supply.c