Re: [PATCH 5/7] regulator: sy7636a: report the temperature

From: Andreas Kemnade

Date: Mon Oct 26 2026 - 04:42:23 EST


On Mon, 26 Oct 2026 00:39:16 +0000
Pablo Mazzini <pmazzini@xxxxxxxxx> wrote:

> The separate hwmon cell enables VCOM at probe. Report the temperature
> from here, as the TPS65185 and FP9931 drivers do, and under the chip
> name as they do: read it while the rails are on and return -ENODATA
> otherwise. Boards that need the rails on mark VCOM always-on. Drop the
> hwmon driver.

This might deserve a Fixes: tag as it fixes a race condition in probe.
But then it depends on the 4/7 patch, so it would be quite massive.

[...]
> -
> -static int sy7636a_sensor_probe(struct platform_device *pdev)
> -{
> - struct regmap *regmap = dev_get_regmap(pdev->dev.parent, NULL);
> - struct device *hwmon_dev;
> - int err;
> -
> - if (!regmap)
> - return -EPROBE_DEFER;
> -
> - err = devm_regulator_get_enable(&pdev->dev, "vcom");
> - if (err)
> - return err;
> -
and has depended on the regulator being registered first, otherwise
a dummy regulator would be provided.

Regards,
Andreas