HID: amd_sfh: Add command response to check command status
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Mon, 2 Aug 2021 14:03:38 +0000 (19:33 +0530)
committerJiri Kosina <jkosina@suse.cz>
Fri, 20 Aug 2021 12:48:48 +0000 (14:48 +0200)
commit173709f50e98df4c49c2776834605a2f7ed3e681
tree35f592444d0dd61cbf9b5239102c84e8604d8b0b
parent3978f54817559b28535c58a00d3d31bbd5d0b65a
HID: amd_sfh: Add command response to check command status

Sometimes sensor enable/disable may take time, without checking the
actual status bits from MP2 FW can lead the amd-sfh to misbehave.

Hence add a status check of enable/disable command
by waiting on the command response before sending the next
command to FW.

Reviewed-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/amd-sfh-hid/amd_sfh_client.c
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
drivers/hid/amd-sfh-hid/amd_sfh_pcie.h