Re: [PATCH v2] power: supply: Add enable the primary charger interface

From: Baolin Wang
Date: Thu May 12 2022 - 22:15:17 EST


Hi,

On Thu, May 12, 2022 at 11:22 AM 陈永志 <chenyongzhi811@xxxxxxxxx> wrote:
>
> Baolin Wang <baolin.wang7@xxxxxxxxx> 于2022年5月3日周二 12:53写道:
> >
> > On Thu, Apr 28, 2022 at 8:56 PM Cixi Geng <gengcixi@xxxxxxxxx> wrote:
> > >
> > > From: Chen Yongzhi <Yongzhi.Chen@xxxxxxxxxx>
> > >
> > > In the case of charging multiple charging ICs,the primary
> > > charging IC often needs to be turned off in the fast
> > > charging stage, and only using the charger pump to charge,
> > > need to add a new power_supply_property attribute.
> >
> > I'm still confused why introducing a new
> > POWER_SUPPLY_PROP_CHARGE_ENABLED property to control the charging, but
> > you already controlled the charging by POWER_SUPPLY_PROP_STATUS?
> >
> Our purpose is to achieve two different stop charging states:
> POWER_SUPPLY_PROP_STATUS: The software status stops charging, and the
> hardware also stops charging;
> POWER_SUPPLY_PROP_CHARGE_ENABLED: The hardware is stopped charging,
> the software is still charging;

Please separate it into two patches, one patch adds charging control
with POWER_SUPPLY_PROP_STATUS attribute, and describe the use case in
detail.

The second patch introduces the new POWER_SUPPLY_PROP_CHARGE_ENABLED
attribute with explicit description why you want a new attribute.
Cause I'm still confused about what you want, and your commit message
is useless. If the hardware stopped charging, why does the software
still need to charge?

> Our don't want to change the charge_status switch due to the
> switching of charging and discharging of the charging IC in the
> charging scenario of multiple charging ICs, and let the upper layer
> perceive this switching
> > >

snip.

--
Baolin Wang