[PATCH] mmc: Avoid uniniting twice

Peng Fan (OSS) peng.fan at oss.nxp.com
Fri Apr 11 05:54:20 CEST 2025


From: Peng Fan <peng.fan at nxp.com>


On Sun, 16 Feb 2025 05:55:59 -0700, Simon Glass wrote:
> 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().
> 
> [...]

Applied, thanks!

[1/1] mmc: Avoid uniniting twice
      commit: d99f8d2d749c0e1b352766281f5f5d71fa845f76

Best regards,
-- 
Peng Fan <peng.fan at nxp.com>


More information about the U-Boot mailing list