[PATCH] rtc: pm8xxx: Read ALARM_EN and update to alarm enabled status

2020-12-24 Thread Guixiong Wei
ALARM_EN status is retained in PMIC register after device shutdown if poweron_alarm is enabled. Read it to make sure the driver has consistent value with the register status. Signed-off-by: Guixiong Wei --- drivers/rtc/rtc-pm8xxx.c | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH v2] arm: mm: use __pfn_to_section() to get mem_section

2020-04-30 Thread Guixiong Wei
__pfn_to_section() helper which already wraps around __nr_to_section(pfn_to_section_nr(pfn)), should be used directly instead. Signed-off-by: Guixiong Wei --- v1 -> v2 - reword the commit message. --- arch/arm64/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH] arm: mm: use __pfn_to_section() to get mem_section

2020-04-29 Thread Guixiong Wei
Use __pfn_to_section() to get mem_section, instead of open-coding it. No semantic changes. Signed-off-by: Guixiong Wei --- arch/arm64/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index e42727e3568e..d2df416b840e 100644