git: 1269b002038c - stable/14 - rk8xx_poweroff: enable power-cycling on support hardware
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 16 Mar 2024 15:16:12 UTC
The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=1269b002038cead5af35d3fb94a008060246e5f6 commit 1269b002038cead5af35d3fb94a008060246e5f6 Author: Andriy Gapon <avg@FreeBSD.org> AuthorDate: 2024-02-18 13:57:34 +0000 Commit: Andriy Gapon <avg@FreeBSD.org> CommitDate: 2024-03-16 15:11:50 +0000 rk8xx_poweroff: enable power-cycling on support hardware Previously, the function would return early if RB_POWERCYCLE was specified without RB_POWEROFF. Those flags are exclusive at the moment, that is, they are never set together. Søren Schmidt (sos) uses a similar but extended patch locally. (cherry picked from commit 8b408fc6f2f6dab2bfc200edee96917abf425cb2) (cherry picked from commit a044cf60bd375f894b371fc87d148bf4704c05a8) --- sys/dev/iicbus/pmic/rockchip/rk8xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/iicbus/pmic/rockchip/rk8xx.c b/sys/dev/iicbus/pmic/rockchip/rk8xx.c index 54f4b289034d..7efa0f879506 100644 --- a/sys/dev/iicbus/pmic/rockchip/rk8xx.c +++ b/sys/dev/iicbus/pmic/rockchip/rk8xx.c @@ -109,7 +109,7 @@ rk8xx_poweroff(void *arg, int howto) int error; uint8_t val; - if ((howto & RB_POWEROFF) == 0) + if ((howto & (RB_POWEROFF | RB_POWERCYCLE)) == 0) return; device_printf(sc->dev, "Powering off...\n");