On Fri, Feb 02, 2018 at 03:50:55PM +0100, Stefan Roese wrote: > I've already sent a patch regarding a libata problem while unplugging > an AHCI controller: > > https://www.spinics.net/lists/linux-ide/msg55038.html Great :) > > BTW, have you checked whether presence detect actually toggles similarly > > or is it only triggered when the link is fully up? Since currently we > > prioritize link up/down higher than presence detect but it may be that > > we should do the opposite. > > As seen in the log sent in my previous mail, presence detect also > toggles. Here again: > > [ 41.260667] pciehp 0000:00:1c.1:pcie004: Slot(1): Card present > [ 41.260731] pciehp 0000:00:1c.1:pcie004: Slot(1): Link Up > [ 41.290650] pciehp 0000:00:1c.1:pcie004: Slot(1): Link Down > [ 41.295837] pciehp 0000:00:1c.1:pcie004: Slot(1): Card present > [ 41.320664] pciehp 0000:00:1c.1:pcie004: Slot(1): Card not present > [ 41.330042] pciehp 0000:00:1c.1:pcie004: Slot(1): Card present > [ 41.330110] pciehp 0000:00:1c.1:pcie004: Slot(1): Link Up > [ 41.375950] pci 0000:02:00.0: [1b4b:9215] type 00 class 0x010601 > ... Indeed, it seems to follow link status changes closely. So changing the "priority" here would not help.