lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230515220701.ot2u747n7kx2yrfp@mercury.elektranox.org>
Date:   Tue, 16 May 2023 00:07:01 +0200
From:   Sebastian Reichel <sebastian.reichel@...labora.com>
To:     Daisuke Nojiri <dnojiri@...omium.org>
Cc:     linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] power: supply: sbs: Fix INHIBITED bit for Status reg

Hi,

On Mon, Apr 24, 2023 at 11:25:58AM -0700, Daisuke Nojiri wrote:
> CHARGE_INHIBITED bit position of the ChargerStatus register is actually
> 0 not 1. This patch corrects it.
> 
> Change-Id: I08630b264eddd09b94c8f6d299724c39218e958a
> Signed-off-by: Daisuke Nojiri <dnojiri@...omium.org>
> ---

Thanks, queued to power-supply's fixes branch with Change-Id line replaced by

Fixes: feb583e37f8a8 ("power: supply: add sbs-charger driver")

-- Sebastian

>  drivers/power/supply/sbs-charger.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/power/supply/sbs-charger.c b/drivers/power/supply/sbs-charger.c
> index 75ebcbf0a788..a14e89ac0369 100644
> --- a/drivers/power/supply/sbs-charger.c
> +++ b/drivers/power/supply/sbs-charger.c
> @@ -24,7 +24,7 @@
>  #define SBS_CHARGER_REG_STATUS			0x13
>  #define SBS_CHARGER_REG_ALARM_WARNING		0x16
>  
> -#define SBS_CHARGER_STATUS_CHARGE_INHIBITED	BIT(1)
> +#define SBS_CHARGER_STATUS_CHARGE_INHIBITED	BIT(0)
>  #define SBS_CHARGER_STATUS_RES_COLD		BIT(9)
>  #define SBS_CHARGER_STATUS_RES_HOT		BIT(10)
>  #define SBS_CHARGER_STATUS_BATTERY_PRESENT	BIT(14)
> -- 
> 2.40.0.634.g4ca3ef3211-goog
> 

Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ