Re: [PATCH v4 3/6] PCI: brcmstb: Add control of slot0 device voltage regulators

From: Mark Brown
Date: Tue Apr 06 2021 - 12:35:00 EST


On Thu, Apr 01, 2021 at 05:21:43PM -0400, Jim Quinlan wrote:

> + /* Look for specific pcie regulators in the RC DT node. */
> + for_each_property_of_node(np, pp) {
> + for (i = 0; i < ns; i++)
> + if (strcmp(supplies[i], pp->name) == 0)

This is broken, the driver knows which supplies are expected, the device
can't function without these supplies so the driver should just
unconditionally request them like any other supply.

Attachment: signature.asc
Description: PGP signature