]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i3c: mipi-i3c-hci: use parity8 helper instead of open coding it
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 7 Jan 2025 09:02:02 +0000 (10:02 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 12 Jan 2025 22:55:50 +0000 (23:55 +0100)
commite55905a3f33c5a87166ec5a1b1cb5cb0abc273ee
treeb69ffe0aa638ec48bf00261d0eaac32c61ed2f86
parente89cc14e96a99c93516c97dd10211313d3a7c4ff
i3c: mipi-i3c-hci: use parity8 helper instead of open coding it

The kernel has now a generic helper for getting parity with easier to
understand semantics. Make use of it. Here, it also fixes a bug because
the correct algorithm is using XOR ('^=') instead of ADD ('+=').

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Link: https://lore.kernel.org/r/20250107090204.6593-5-wsa+renesas@sang-engineering.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/mipi-i3c-hci/dat_v1.c