[RFC 19/22] dm: blk: call efi's device-removal hook
sjg at chromium.org
Sun Oct 10 16:14:29 CEST 2021
On Thu, 30 Sept 2021 at 23:05, AKASHI Takahiro
<takahiro.akashi at linaro.org> wrote:
> Adding the callback function, efi_disk_delete(), in block devices's
> pre_remove hook will allows for automatically deleting efi_disk objects
> per block device.
> This will eliminate any improper efi_disk objects which hold a link to
> non-existing udevice structures when associated block devices are physically
> un-plugged or udevices are once removed (and re-created) by executing commands
> like "scsi rescan."
> Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
> drivers/block/blk-uclass.c | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
Should use event mechanism as mentioned in previous patch.
More information about the U-Boot