summaryrefslogtreecommitdiff
path: root/tools/u_boot_pylib/test_util.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-02-16 05:55:59 -0700
committerPeng Fan <peng.fan@nxp.com>2025-04-11 11:49:51 +0800
commitd99f8d2d749c0e1b352766281f5f5d71fa845f76 (patch)
treedb72e40406a8a0a30ea8a5f4fead7ef8b2008f22 /tools/u_boot_pylib/test_util.py
parent2057bb4b5160a3668d4785adb6ce0f0d08325c48 (diff)
mmc: Avoid uniniting twice
Each MMC device has a child which ihs a block device. At present we call mmc_deinit() when the block device is removed. But the MMC struct (i.e. struct mmc) is attached to the MMC's device, not its child. So at present, when an MMC device is removed, mmc_deinit() is called twice, once for the MMC device and once for its block device. This results in a double call to cyclic_unregister(). Fix this by adding a 'remove' method to the uclass and calling mmc_deinit() from there. Also drop the call to device_probe() within the block-device's probe() method. The device is already in the process of being probed, so this call does nothing. Signed-off-by: Simon Glass <sjg@chromium.org> Fixes: c822c1a50bd ("mmc: call device_probe() after scanning") Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'tools/u_boot_pylib/test_util.py')
0 files changed, 0 insertions, 0 deletions