i2c: testunit: don't erase registers after STOP
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 27 Jun 2024 11:14:47 +0000 (13:14 +0200)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 28 Jun 2024 18:44:34 +0000 (20:44 +0200)
commitc422b6a630240f706063e0ecbb894aa8491b1fa1
treea7705f57a608839783a68116c5f95f0ad040b61e
parent4e9a1a47c52997bc5b10d56a7a79542ae393fc99
i2c: testunit: don't erase registers after STOP

STOP fallsthrough to WRITE_REQUESTED but this became problematic when
clearing the testunit registers was added to the latter. Actually, there
is no reason to clear the testunit state after STOP. Doing it when a new
WRITE_REQUESTED arrives is enough. So, no need to fallthrough, at all.

Fixes: b39ab96aa894 ("i2c: testunit: add support for block process calls")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/i2c-slave-testunit.c