Re: [PATCH v11 0/4] add some power supply properties about wireless/wired charging
From: 吧!王婷
Date: Wed Aug 04 2021 - 22:29:36 EST
Hi Greg,
A demo of “The usage of quick charge type property” is uploaded in
PATCH v11 1/4 drivers/power/supply/qcom_smbb.c.
The usage of the other three properties is about wireless charging.The
code of our driver can refer to the link below.
POWER_SUPPLY_PROP_QUICK_CHARGE_TYPE:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/umi-q-oss/drivers/power/supply/qcom/qpnp-smb5.c#L1434
POWER_SUPPLY_PROP_REVERSE_CHG_MODE:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/umi-q-oss/drivers/power/supply/qcom/qpnp-smb5.c#L2572
POWER_SUPPLY_PROP_TX_ADAPTER:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/umi-q-oss/drivers/power/supply/qcom/qpnp-smb5.c#L2633
POWER_SUPPLY_PROP_SIGNAL_STRENGTH:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/umi-q-oss/drivers/power/supply/qcom/qpnp-smb5.c#L2609
Thanks,
Wangting
Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> 于2021年8月4日周三 下午8:04写道:
>
> On Wed, Aug 04, 2021 at 07:01:57PM +0800, Ting Wang wrote:
> > From: wangting11 <wangting11@xxxxxxxxxx>
> >
> > This patchset aims to provide power supply properties about wireless/wired charging.
> > "quick_charge_type" reports different types of quick charge based on the charging power;
> > "tx_adapter" shows" the type of wireless charging adapter;
> > "signal_strength" shows the coupling level between TX and RX;
> > "reverse_chg_mode" provides the interface of enabling/disabling wireless reverse charging.
> >
> > Changes in V11
> > - Fix build error on linus/master
> > - Fix build error on power-supply/for-next
> > - Fix conflict
>
> Where are the users of these new properties? Shouldn't drivers be
> submitted with them as well, otherwise why would these be added?
>
> thanks,
>
> greg k-h