[PW_SID:1094378] [v1] rtc: mpfs: fix counter upload completion condition#1927
[PW_SID:1094378] [v1] rtc: mpfs: fix counter upload completion condition#1927linux-riscv-bot wants to merge 1 commit into
Conversation
The condition that needs to be checked for upload completion is the UPLOAD bit in the completion register going low. The original iterations of this driver used a do-while and this was converted to a read_poll_timeout() during upstreaming without the condition being inverted as it should have been. I suspect that this went unnoticed until now because a) the first read was done when the bit was still set, immediately completing the read_poll_timeout() and b) because the RTC doesn't hold time when power is removed from the SoC reducing its utility (I for one keep it disabled). If my first suspicion was true when the driver was upstreamed, it's not true any longer though, hence the detection of the problem. Fixes: 0b31d70 ("rtc: Add driver for Microchip PolarFire SoC") CC: stable@vger.kernel.org Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
|
Patch 1: "[v1] rtc: mpfs: fix counter upload completion condition" |
PR for series 1094378 applied to workflow__riscv__fixes
Name: [v1] rtc: mpfs: fix counter upload completion condition
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1094378
Version: 1