]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtc: pcf2127: fix SPI command byte for PCF2131
authorElena Popa <elena.popa@nxp.com>
Fri, 30 May 2025 10:40:00 +0000 (13:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 14:03:03 +0000 (16:03 +0200)
commit5cdd1f73401d689159aa1886b1d7a725dae2dcce
tree4def6b64c3f8c431309183b6a45a405f860ac3a2
parent1cb814dbb03d78a907ba4cd19b01d33a92c89b11
rtc: pcf2127: fix SPI command byte for PCF2131

commit fa78e9b606a472495ef5b6b3d8b45c37f7727f9d upstream.

PCF2131 was not responding to read/write operations using SPI. PCF2131
has a different command byte definition, compared to PCF2127/29. Added
the new command byte definition when PCF2131 is detected.

Fixes: afc505bf9039 ("rtc: pcf2127: add support for PCF2131 RTC")
Cc: stable@vger.kernel.org
Signed-off-by: Elena Popa <elena.popa@nxp.com>
Acked-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20250530104001.957977-1-elena.popa@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rtc/rtc-pcf2127.c