On Mon, Sep 11, 2023 at 01:02:08PM +0900, Damien Le Moal wrote: > The call to async_synchronize_cookie() to synchronize a port removal > and hotplug probe is done in ata_host_detach() right before calling > ata_port_detach(). Move this call at the beginning of ata_port_detach() > to ensure that this operation is always synchronized with probe. > > Signed-off-by: Damien Le Moal <dlemoal@xxxxxxxxxx> Tested-by: Chia-Lin Kao (AceLan) <acelan.kao@xxxxxxxxxxxxx>