From patchwork Mon Feb 3 13:59:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Graute X-Patchwork-Id: 235823 List-Id: U-Boot discussion From: oliver.graute at kococonnector.com (Oliver Graute) Date: Mon, 3 Feb 2020 13:59:19 +0000 Subject: [RFC 2/2] Revert "dm: core: device: switch off power domain after device removal" In-Reply-To: <20200203135619.10180-1-oliver.graute@kococonnector.com> References: <20200203135619.10180-1-oliver.graute@kococonnector.com> Message-ID: <20200203135619.10180-3-oliver.graute@kococonnector.com> The conga-imx8 board isn't booting without this revert. Can someone tell me what I need to Do so that this revert is not necessary? This reverts commit 52edfed65de967a86983a55c51ba0727090efc43. --- drivers/core/device-remove.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/core/device-remove.c b/drivers/core/device-remove.c index 5c8dc4ad70..586fadee0a 100644 --- a/drivers/core/device-remove.c +++ b/drivers/core/device-remove.c @@ -16,7 +16,6 @@ #include #include #include -#include int device_chld_unbind(struct udevice *dev, struct driver *drv) { @@ -193,10 +192,6 @@ int device_remove(struct udevice *dev, uint flags) } } - if (!(drv->flags & DM_FLAG_DEFAULT_PD_CTRL_OFF) && - (dev != gd->cur_serial_dev)) - dev_power_domain_off(dev); - if (flags_remove(flags, drv->flags)) { device_free(dev);