]> Git Repo - u-boot.git/commit
net: dm: fec: Fix regulator enable when using DM_REGULATOR
authorAdam Ford <[email protected]>
Tue, 15 Jan 2019 17:26:48 +0000 (11:26 -0600)
committerStefano Babic <[email protected]>
Fri, 15 Feb 2019 11:41:12 +0000 (12:41 +0100)
commit8f1a5ac797baac5b40f93eac80a7810f0a771ecf
tree266dc2acc4c4b55d25753a71faad7e1f41c07dc8
parent8dd0dff2695cd6f6f863af37a53a042724f5b263
net: dm: fec: Fix regulator enable when using DM_REGULATOR

When DM_REGULATOR is enabled, the driver attempts to call
regulator_autoset() which expects the regulators to be on at boot
and/or always on and fails if they are not true.
For a more generic approach, this patch just calls
regulator_set_enable() which shouldn't have such restrictions.

Fixes: ad8c43cbcafb ("net: dm: fec: Support the phy-supply
binding")

Signed-off-by: Adam Ford <[email protected]>
Tested-by: Martin Fuzzey <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/net/fec_mxc.c
This page took 0.040511 seconds and 4 git commands to generate.