MLK-19726-2 arm: Don't remove all devices when power domain driver is enabled
authorYe Li <ye.li@nxp.com>
Wed, 26 Sep 2018 09:15:00 +0000 (02:15 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 09:31:11 +0000 (02:31 -0700)
commitb0eae27fce90f00f407961c5907e0e21cf47ef18
tree0d7a78604035ce6431445bd9b32acd2b0eb58eb9
parentf0a7dde8ebdaa408aa2bc3405bd0d41aeae652ae
MLK-19726-2 arm: Don't remove all devices when power domain driver is enabled

Because we power off all devices in board_quiesce_devices which is prior then
executing dm_remove_devices_flags. So any access to HW in dm_remove_devices_flags
will cause problem.
However, some drivers like ethernet which implements the pre_remove callback is always
called without any flags check, and this finally accesses FEC controller.

Since we don't need to remove all devices in u-boot before starting kernel, disable
this feature when power domain is enabled.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 741f2ea182bf293d8270bdc4a217a96db22c414c)
arch/arm/lib/bootm.c