Re: [PATCH v2 2/2] PCI: pciehp: Prevent deadlock on disconnect
From: Sinan Kaya
Date: Mon Aug 19 2019 - 08:28:24 EST
On 8/19/2019 4:56 AM, Mika Westerberg wrote:
>> There are PCI controllers that won't report presence detect correctly,
>> but still report link active.
> If that's the case then pciehp_card_present() returns false so we call
> pciehp_check_link_active() which should work with those controllers.
> What I'm missing here?
You are right. I thought we'd somehow prematurely leave the function.
That's not the case.