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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180222204055.wvnhlkzdxujriap4@earth.universe>
Date:   Thu, 22 Feb 2018 21:40:55 +0100
From:   Sebastian Reichel <sre@...nel.org>
To:     Pierre Bourdon <delroth@...gle.com>
Cc:     Andre Heider <a.heider@...il.com>, linux-pm@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] max17042: propagate of_node to power supply device

Hi,

On Tue, Feb 20, 2018 at 04:03:18PM +0100, Pierre Bourdon wrote:
> max17042_get_status uses the core power_supply_am_i_supplied. That
> function relies on DT properties to figure out the power supply
> topology, and will error out without DT.
> 
> Fixes max17042 battery status being reported as "unknown".
> 
> Signed-off-by: Andre Heider <a.heider@...il.com>
> ---

Thanks, queued to power-supply's fixes branch.

-- Sebastian

>  drivers/power/supply/max17042_battery.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/power/supply/max17042_battery.c b/drivers/power/supply/max17042_battery.c
> index 35dde81b1c9b..1a568df383db 100644
> --- a/drivers/power/supply/max17042_battery.c
> +++ b/drivers/power/supply/max17042_battery.c
> @@ -1053,6 +1053,7 @@ static int max17042_probe(struct i2c_client *client,
>  
>  	i2c_set_clientdata(client, chip);
>  	psy_cfg.drv_data = chip;
> +	psy_cfg.of_node = dev->of_node;
>  
>  	/* When current is not measured,
>  	 * CURRENT_NOW and CURRENT_AVG properties should be invisible. */
> -- 
> 2.16.1.291.g4437f3f132-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