u-boot/drivers
Lukasz Majewski b7adcdd073 regulator: fix: Move code to enable gpio regulator to pre_probe from ofdata_to_platdata
The commit e8e9715df2 ("regulator: fixed: Modify enable-active-high behavior")
fixed the regulator driver behavior when 'enable-active-high' is defined.
Unfortunately, this patch used dm_regulator_platdata()'s "boot_on" member
to set GPIOD_IS_OUT_ACTIVE flag and enable the regulator.

The issue here is that regulator_common_ofdata_to_platdata() is called
_before_ regulator_pre_probe() function in which the 'regulator-boot-on'
property is asserted.

As a result the GPIOD_IS_OUT_ACTIVE flag is not set and gpio_request_by_name()
called in the former function is not enabling the regulator.
This is problematic for e.g. i.MX ethernet driver, which then tries to
perform initialization without power (and fails).

The solution here is to explicitly enable regulator in regulator_pre_probe()
callback only when 'regulator-boot-on' property is present in device tree.
The GPIOD_IS_OUT_ACTIVE flag is not set at all, but relevant gpio is
requested.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Tested-by: Patrice Chotard <patrice.chotard@st.com>
2020-02-10 18:00:38 -05:00
..
adc
ata ata: fsl_sata: Continue probing other sata port when failed current port. 2020-01-08 09:27:44 -05:00
axi
bios_emulator bios_emulator: remove stray break 2019-08-09 22:24:02 +08:00
block common: fix regression on block cache init 2020-01-26 13:36:14 -05:00
board drivers: board: Add get_fit_loadable() 2020-01-07 11:13:24 -05:00
bootcount bootcount: add a DM i2c eeprom backing store for bootcount 2020-01-10 10:25:13 -05:00
cache common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
clk x86: Add a clock driver for Intel devices 2020-02-07 22:41:24 +08:00
core dm: core: Change syscon to use helper function 2020-02-07 22:41:24 +08:00
cpu Move strtomhz() to vsprintf.h 2019-12-02 18:23:09 -05:00
crypto crypto: make mod_exp_sw() static 2020-01-25 12:04:36 -05:00
ddr ddr: altera: Add DDR2 support to Gen5 driver 2020-02-05 03:01:57 +01:00
demo
dfu - DFU support file operations lager then the default max size 2020-02-05 07:18:12 -05:00
dma dma: ti: k3-udma: Fix build warnings when building for 32 bit platforms 2020-01-20 10:10:28 +05:30
fastboot fastboot: mt85xx: add command to flash/erase emmc hwpart 2020-01-25 12:04:36 -05:00
firmware firmware: Remove probe which is causing extra bind 2020-01-14 09:05:55 +01:00
fpga arm: socfpga: Convert system manager from struct to defines 2020-01-07 14:38:33 +01:00
gpio gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO 2020-02-09 14:52:39 +01:00
hwspinlock
i2c tegra: i2c: Change driver to use helper function 2020-02-07 22:41:24 +08:00
input input: Move input.o to be built only in some cases 2019-11-19 17:43:04 -05:00
led led: bcm6858: allow to use this driver on arm bcm68360 2020-01-23 07:29:58 -05:00
mailbox common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
memory
misc Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86 2020-02-10 12:27:31 -05:00
mmc Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-samsung 2020-01-28 21:10:32 -05:00
mtd mtd: rawnand: denali_dt: use UCLASS_MTD instead of UCLASS_MISC 2020-02-01 01:14:32 +09:00
net eth: mtk-eth: aarch64: fix build warnings on ethernet-driver 2020-02-07 13:59:58 -05:00
nvme common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
pch x86: Allow removal of standard PCH drivers 2019-12-15 11:44:16 +08:00
pci common: Move ll_boot_init() to init.h 2020-01-24 23:06:48 +05:30
pci_endpoint pci_ep: Fix Coverity warning 2019-08-07 15:31:04 -04:00
phy Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-sunxi 2020-01-26 12:05:11 -05:00
pinctrl x86: Give each driver an IRQ type 2020-02-07 22:45:35 +08:00
power regulator: fix: Move code to enable gpio regulator to pre_probe from ofdata_to_platdata 2020-02-10 18:00:38 -05:00
pwm pwm: rk_pwm: Make PWM driver to support all Rockchip Socs 2019-12-06 00:06:23 +08:00
qe crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
ram ram: rk3328: only do data traning for cs0 2020-01-30 11:44:01 +08:00
remoteproc remoteproc: elf_loader: fix program header parsing 2020-01-24 11:19:52 -05:00
reset reset: socfpga: Poll for reset status after deassert reset 2020-02-03 09:26:14 +01:00
rng lib: Kconfig dependencies for pseudo-random library 2020-01-25 12:04:36 -05:00
rtc rtc: pcf8563: Add driver model support 2020-02-04 16:20:25 +05:30
scsi scsi: Add dma direction member to command structure 2019-10-23 20:47:12 -04:00
serial serial: serial_cortina: add UART DM driver for CAxxxx SoCs 2020-02-07 16:16:01 -05:00
smem
soc soc: ti: k3-navss-ringacc: Get SYSFW reference from DT phandle 2020-01-20 10:10:28 +05:30
sound common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
spi spi: ich: Drop while loop in hardware sequencing erase case 2020-02-04 01:19:28 +08:00
spmi
sysreset common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
tee drivers: optee: rpmb: fix returning CID to TEE 2019-12-05 10:28:38 -05:00
thermal thermal: ti-bandgap: Fix adc value datatype 2020-01-20 10:10:28 +05:30
timer timer: Add driver for Nomadik Multi Timer Unit (MTU) 2020-01-22 17:47:56 -05:00
tpm tpm: Add a driver for H1/Cr50 2020-02-07 22:46:35 +08:00
ufs ufs: Add glue layer driver for TI J721E devices 2019-10-23 20:47:12 -04:00
usb - DFU support file operations lager then the default max size 2020-02-05 07:18:12 -05:00
video - fix Coverity CID 280902 issue in vid_console_color() 2020-02-10 12:08:51 -05:00
virtio virtio: fix typo devicd 2020-01-10 14:18:26 -05:00
w1
w1-eeprom
watchdog watchdog: cortina_wdt: add support for HW WDT on CAxxxx SoCs 2020-02-07 16:15:57 -05:00
Kconfig dm: rng: Add random number generator(rng) uclass 2020-01-07 18:08:21 +01:00
Makefile Kconfig: Rename CONFIG_SPL_DMA_SUPPORT to CONFIG_SPL_DMA 2020-01-15 19:50:27 -05:00