jerome Neanne <jneanne@xxxxxxxxxxxx> 於 2022年9月12日 週一 下午5:49寫道:
Hi Axel,Setting .bypass_val_on=1 won't set TPS65219_LDOS_BYP_CONFIG_MASK bit.
On 28/08/2022 14:01, Axel Lin wrote:
The .bypass_val_on setting does not match the .bypass_mask setting, so theI think this will result in exact same behavior. val would be assigned
.bypass_mask bit will never get set. Fix it by removing .bypass_val_on
setting, the regulator_set_bypass_regmap and regulator_get_bypass_regmap
helpers will use rdev->desc->bypass_mask as val_on if the val_on is 0.
to 1 when enable is set and 0 otherwise. Anyway you are right this line
is useless.
The TPS65219_LDOS_BYP_CONFIG_MASK is BIT(6), so you need to set BIT(6)
instead of 1 for .bypass_val_on.
Remove .bypass_val_on setting then it will use .bypass_mask as
.bypass_val_on setting.