mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 15:26:03 +09:00
dm: Rename DM_FLAG_REMOVE_WITH_PD_ON
This flag has the word 'REMOVE' in it which means it conflicts with the DM_REMOVE flags. Rename it to DM_FLAG_LEAVE_PD_ON which seems to indicate its purpose well enough. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f724f0af2b
commit
a547fcb828
|
@ -200,7 +200,7 @@ int device_remove(struct udevice *dev, uint flags)
|
||||||
|
|
||||||
if (!(flags & DM_REMOVE_NO_PD) &&
|
if (!(flags & DM_REMOVE_NO_PD) &&
|
||||||
!(drv->flags &
|
!(drv->flags &
|
||||||
(DM_FLAG_DEFAULT_PD_CTRL_OFF | DM_FLAG_REMOVE_WITH_PD_ON)) &&
|
(DM_FLAG_DEFAULT_PD_CTRL_OFF | DM_FLAG_LEAVE_PD_ON)) &&
|
||||||
dev != gd->cur_serial_dev)
|
dev != gd->cur_serial_dev)
|
||||||
dev_power_domain_off(dev);
|
dev_power_domain_off(dev);
|
||||||
|
|
||||||
|
|
|
@ -212,5 +212,5 @@ U_BOOT_DRIVER(meson_vpu) = {
|
||||||
.probe = meson_vpu_probe,
|
.probe = meson_vpu_probe,
|
||||||
.bind = meson_vpu_bind,
|
.bind = meson_vpu_bind,
|
||||||
.priv_auto = sizeof(struct meson_vpu_priv),
|
.priv_auto = sizeof(struct meson_vpu_priv),
|
||||||
.flags = DM_FLAG_PRE_RELOC | DM_FLAG_REMOVE_WITH_PD_ON,
|
.flags = DM_FLAG_PRE_RELOC | DM_FLAG_LEAVE_PD_ON,
|
||||||
};
|
};
|
||||||
|
|
|
@ -119,5 +119,5 @@ U_BOOT_DRIVER(rti_wdt) = {
|
||||||
.ops = &rti_wdt_ops,
|
.ops = &rti_wdt_ops,
|
||||||
.probe = rti_wdt_probe,
|
.probe = rti_wdt_probe,
|
||||||
.priv_auto = sizeof(struct rti_wdt_priv),
|
.priv_auto = sizeof(struct rti_wdt_priv),
|
||||||
.flags = DM_FLAG_REMOVE_WITH_PD_ON,
|
.flags = DM_FLAG_LEAVE_PD_ON,
|
||||||
};
|
};
|
||||||
|
|
|
@ -71,7 +71,7 @@ struct driver_info;
|
||||||
* Device is removed without switching off its power domain. This might
|
* Device is removed without switching off its power domain. This might
|
||||||
* be required, i. e. for serial console (debug) output when booting OS.
|
* be required, i. e. for serial console (debug) output when booting OS.
|
||||||
*/
|
*/
|
||||||
#define DM_FLAG_REMOVE_WITH_PD_ON (1 << 13)
|
#define DM_FLAG_LEAVE_PD_ON (1 << 13)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* One or multiple of these flags are passed to device_remove() so that
|
* One or multiple of these flags are passed to device_remove() so that
|
||||||
|
|
Loading…
Reference in New Issue
Block a user