From nobody Sun Feb 18 14:08:58 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Td6wV5tvRz59mCM; Sun, 18 Feb 2024 14:08:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Td6wV5Gx2z4t5H; Sun, 18 Feb 2024 14:08:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708265338; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zwgxky6FdhQRdkyMPJvyCQq6bpPbZPvgQeOOsT6nXOc=; b=Lsm7wBhW+bLTmQRhk/0d9KJ3KhUmqmSOhDfOJk4mZhiG0k4Era0TRHdkUklWb4LPwP+Vai 8cQKUkY8L2o82a6kpO5GPBrJ+YklFOzuEsWZrSASsTzX7gyshX8PdMy/7SMlWLbshocjlU ZzEzrx201pLejQ1Z6kmZVkIQTZ6nbdp8iMItVJPApR+8Ut/F2esdvujuzPQ/Nb+3MGn9yL x4tx3YjRfK6mjDoYbH97NOrwRlp9R687t3uk/xTatybEbClfjtqxNjgsV4K0pTygXYlLvY a17CdmxU7Gz78fVe5IzG+yUugJp1FK+Hf5NM7SPcpxTr/YweN/sSp/QvgSua1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708265338; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zwgxky6FdhQRdkyMPJvyCQq6bpPbZPvgQeOOsT6nXOc=; b=T2h1CjRgzZp2SS5pS53LRPnE08c9iRDCQC2HfdVAwczt4Ore+ygwXevDdR1IBHtJgRaeLf ETAg1kbJhw2dg5icaCZw/tUn7iwWRNrQIevG/9vuimjsPseayuzsUwlIYUoNmYTQ8Hh0Bo tPq4/CtjNChYlEuW9qN1hGB1/rteF+aQGcbpqk6NleabeRRPvaZCmgiQAIVOTrToDGtCjU QbpXqYlW7cQEjTvqZ4FjLS5PfzSsaSFS2exG1a9+cfsxImQAjw41E7GevVcOApqp4ilrM0 6Jvn6q0kHJ1CNAGYHktYWUsz2u4G4gbX4rd1d83CNtXrJSFmhXCxs7vbqBYFnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708265338; a=rsa-sha256; cv=none; b=A5/QJRbSEBwUGLkRthSmfa7um+aqPXDthfEA0szrxrmNbvjFZq8MdKz+VMWhyivtkBs/AR 94qAE3ur/1jEpuILzalqfS/xQKkPr0N1QXwPRC5frbd6NA3Oz/fsdujTKc0mlenxupIjgW mj1V9C4iGIQeRQm7aNurIIH4PDs3SgXDdLPoA4MSu9qtkjyTgpnepHV1zmsyqbo3aJeY/D DGjICImokcigucfWMzAZqogjkYB7fM4wgarGVaUCwNiSG5Sq0AsdUx+6+fD735pxlFddU5 4rSuF3k/KGE3pSL47S3RvusGKD8W5eBAJAn7HFy421rw3D2W85Hpbjo2UsxWGA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Td6wV45fLztVd; Sun, 18 Feb 2024 14:08:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41IE8wW0090425; Sun, 18 Feb 2024 14:08:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41IE8wSo090422; Sun, 18 Feb 2024 14:08:58 GMT (envelope-from git) Date: Sun, 18 Feb 2024 14:08:58 GMT Message-Id: <202402181408.41IE8wSo090422@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andriy Gapon Subject: git: 8b408fc6f2f6 - main - rk8xx_poweroff: enable power-cycling on support hardware List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8b408fc6f2f6dab2bfc200edee96917abf425cb2 Auto-Submitted: auto-generated The branch main has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=8b408fc6f2f6dab2bfc200edee96917abf425cb2 commit 8b408fc6f2f6dab2bfc200edee96917abf425cb2 Author: Andriy Gapon AuthorDate: 2024-02-18 13:57:34 +0000 Commit: Andriy Gapon CommitDate: 2024-02-18 14:04:29 +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. MFC after: 2 weeks --- 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 9e29c62f95bd..6cbfd19ff443 100644 --- a/sys/dev/iicbus/pmic/rockchip/rk8xx.c +++ b/sys/dev/iicbus/pmic/rockchip/rk8xx.c @@ -108,7 +108,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");