mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 10:13:57 +08:00
Power Supply Fixes for 5.18 cycle
Regression fix for the 5.18 cycle: * Fix a regression with battery data failing to load from DT -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmJWoKMACgkQ2O7X88g7 +ppmlBAAjfWLNNjsx6oMp71CCVm0KyubJZSYO9dGgCCutQhASUMAmfAnAg6V3rr1 fABm0UYfT3uMwkWw3vth8o6GMAYAiu4nZ1s/dLzObDzZVz4HHl/rEBYE5iEUZ47B CXPYL/kRXoJZ0jAn7aNHvA6Bb/qEKRPCcrooae73927fT35Pk1dYqJ9rxpWRDR8b f46Am26xuSlC6mzaJUVQwVvg3pwjJT5lCdBIbQ6FSqvVLDpSg/vdJtXlJHtya1ec l6j6I9+JB4YtBLOtmaGxLLt9cpow6SRI8yTzpm5qF5wIIuFpzbx5c/sdTwVeMJ+Y OM5LHwOyusYzQN90nse6xMzUpTNZ7Rq1wYQXH4QtvD2Xm9LrMN4arAw7s25PScQE DBF8qVnxVA7EseHN8H4NNrgWGEcg+eByEa9m20uUN0H5mkKa5Qrn/Yk8/qOcZ/ge oCPkvOnX6wALbmtcoaSgS7GQLcIW2GwN6HA3scQNV/8oDica+gX0hMk2ZThwMBGi ygPjcc2qUnTD3QliXi8Rh85iTfnVHnntsMjkQRdCrxcCY1jV0zIAMp1f7I22ToQG qD/CUvsmZc0x/dx8O8U3LgZRW3lyXG/VCgM0Axbh41HKpEVi3ayMmTkiPR0+dMpe CRh75/1iEdwt0p0m/LIkCPC1VwK1loPmTlyS/ycAabP3W/SDHjI= =S4f6 -----END PGP SIGNATURE----- Merge tag 'for-v5.18-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply Pull power supply fixes from Sebastian Reichel: - Fix a regression with battery data failing to load from DT * tag 'for-v5.18-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: power: supply: Reset err after not finding static battery power: supply: samsung-sdi-battery: Add missing charge restart voltages
This commit is contained in:
commit
9a921a6ff7
@ -604,6 +604,12 @@ int power_supply_get_battery_info(struct power_supply *psy,
|
||||
err = samsung_sdi_battery_get_info(&psy->dev, value, &info);
|
||||
if (!err)
|
||||
goto out_ret_pointer;
|
||||
else if (err == -ENODEV)
|
||||
/*
|
||||
* Device does not have a static battery.
|
||||
* Proceed to look for a simple battery.
|
||||
*/
|
||||
err = 0;
|
||||
|
||||
if (strcmp("simple-battery", value)) {
|
||||
err = -ENODEV;
|
||||
|
@ -824,6 +824,7 @@ static struct samsung_sdi_battery samsung_sdi_batteries[] = {
|
||||
.constant_charge_current_max_ua = 900000,
|
||||
.constant_charge_voltage_max_uv = 4200000,
|
||||
.charge_term_current_ua = 200000,
|
||||
.charge_restart_voltage_uv = 4170000,
|
||||
.maintenance_charge = samsung_maint_charge_table,
|
||||
.maintenance_charge_size = ARRAY_SIZE(samsung_maint_charge_table),
|
||||
.alert_low_temp_charge_current_ua = 300000,
|
||||
@ -867,6 +868,7 @@ static struct samsung_sdi_battery samsung_sdi_batteries[] = {
|
||||
.constant_charge_current_max_ua = 1500000,
|
||||
.constant_charge_voltage_max_uv = 4350000,
|
||||
.charge_term_current_ua = 120000,
|
||||
.charge_restart_voltage_uv = 4300000,
|
||||
.maintenance_charge = samsung_maint_charge_table,
|
||||
.maintenance_charge_size = ARRAY_SIZE(samsung_maint_charge_table),
|
||||
.alert_low_temp_charge_current_ua = 300000,
|
||||
|
Loading…
Reference in New Issue
Block a user