Re: [PATCH v1 3/3] mfd: cros_ec: load cros_ec_pwrmon on supported ECs
From: Lee Jones
Date: Wed Nov 18 2026 - 14:48:46 EST
On Fri, 06 Nov 2026, Daniel Balint wrote:
> Load cros_ec_pwrmon driver when the ChromeOS EC advertises
> EC_FEATURE_PWRMON.
>
> Signed-off-by: Daniel Balint <dbalint@xxxxxxxxxx>
> ---
> drivers/mfd/cros_ec_dev.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
I can pull this in when Jonathan is happy.
> diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c
> index 529a23b804f7..9cf85636b7f9 100644
> --- a/drivers/mfd/cros_ec_dev.c
> +++ b/drivers/mfd/cros_ec_dev.c
> @@ -115,6 +115,10 @@ static const struct mfd_cell cros_ec_charge_control_cells[] = {
> { .name = "cros-charge-control", },
> };
>
> +static const struct mfd_cell cros_ec_pwrmon_cells[] = {
> + { .name = "cros-ec-pwrmon", },
> +};
> +
> static const struct cros_feature_to_cells cros_subdevices[] = {
> {
> .id = EC_FEATURE_CEC,
> @@ -151,6 +155,11 @@ static const struct cros_feature_to_cells cros_subdevices[] = {
> .mfd_cells = cros_ec_charge_control_cells,
> .num_cells = ARRAY_SIZE(cros_ec_charge_control_cells),
> },
> + {
> + .id = EC_FEATURE_PWRMON,
> + .mfd_cells = cros_ec_pwrmon_cells,
> + .num_cells = ARRAY_SIZE(cros_ec_pwrmon_cells),
> + },
> };
>
> static const struct mfd_cell cros_ec_platform_cells[] = {
> --
> 2.56.0.455.g6c5a503b38-goog
>
--
Lee Jones