Skip to content

regmap: Add KUnit tests for read/write checking

Mark Brown lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20230613-regmap-kunit-read-write-024393cdbef0

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3regmap: Add test that writes to write only registers are preventeddrivers/base/regmap/regmap-kunit.c+41 -00 replies
2/3regmap: Add a test case for write only registersdrivers/base/regmap/regmap-kunit.c+32 -00 replies
3/3regmap: Add test to make sure we don't sync to read only registersdrivers/base/regmap/regmap-kunit.c+42 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] regmap: Add KUnit tests for read/write checking

Since Takashi found an issue with maple tree syncing registers it shouldn't do add some test cases that catch that case and some more potential issues, ideally we'd run through the combination of readability with all possible I/O calls but that's lifting for another day. We did find one issue with missing readability checks which will be fixed separately.

---
Mark Brown (3):
regmap: Add test that writes to write only registers are prevented
regmap: Add a test case for write only registers
regmap: Add test to make sure we don't sync to read only registers

 drivers/base/regmap/regmap-kunit.c | 115 +++++++++++++++++++++++++++++++++++++
 1 file changed, 115 insertions(+)

---
base-commit: ecfb8ce26d02ec136b4e1ae8c5a77d22d335057b
change-id: 20230613-regmap-kunit-read-write-024393cdbef0

Best regards,

Signature · 1 line
Mark Brown <[email protected]>