Re: [RFC 19/22] dm: blk: call efi's device-removal hook

Simon Glass
2021-10-10T14:17:33Z

Hi Takahiro,

On Thu, 30 Sept 2021 at 23:05, AKASHI Takahiro
<takahiro.akashi@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@linaro.org>
> ---
> drivers/block/blk-uclass.c | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)

Should use event mechanism as mentioned in previous patch.

Regards,
Simon