ARM: davinci: omapl138-hawk: add missing regulator constraints for OHCI
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 25 Jun 2019 16:49:15 +0000 (18:49 +0200)
committerSekhar Nori <nsekhar@ti.com>
Tue, 2 Jul 2019 14:48:33 +0000 (20:18 +0530)
We need to enable status changes for the fixed power supply for the USB
controller.

Fixes: 1d272894ec4f ("ARM: davinci: omapl138-hawk: add a fixed regulator for ohci-da8xx")
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-omapl138-hawk.c

index db177a6..5390a86 100644 (file)
@@ -306,6 +306,9 @@ static struct regulator_consumer_supply hawk_usb_supplies[] = {
 static struct regulator_init_data hawk_usb_vbus_data = {
        .consumer_supplies      = hawk_usb_supplies,
        .num_consumer_supplies  = ARRAY_SIZE(hawk_usb_supplies),
+       .constraints    = {
+               .valid_ops_mask = REGULATOR_CHANGE_STATUS,
+       },
 };
 
 static struct fixed_voltage_config hawk_usb_vbus = {