[PATCH v4 3/6] PCI: brcmstb: Add control of slot0 device voltage regulators
Mark Brown
broonie at kernel.org
Tue Apr 6 17:34:39 BST 2021
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210406/f7fda5c0/attachment.sig>
More information about the linux-arm-kernel
mailing list