[PATCH v1 2/6] PCI: brcmstb: Add control of EP voltage regulator(s)
Mark Brown
broonie at kernel.org
Thu Nov 26 06:49:12 EST 2020
On Wed, Nov 25, 2020 at 02:24:19PM -0500, Jim Quinlan wrote:
> + for (i = 0; i < PCIE_REGULATORS_MAX; i++) {
> + ep_reg = devm_regulator_get_optional(dev, ep_regulator_names[i]);
> + if (IS_ERR(ep_reg)) {
Does PCI allow supplies to be physically absent? If not then the driver
shouldn't be using regulator_get_optional() and much of the code here
can be deleted.
> +static void brcm_set_regulators(struct brcm_pcie *pcie, bool on)
> +{
This is open coding the regulator bulk APIs.
-------------- 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/20201126/0a512719/attachment.sig>
More information about the linux-arm-kernel
mailing list