Re: [PATCH V6 5/5] PCI/ASPM: move link_state cleanup to bridge remove

From: Sinan Kaya
Date: Thu Mar 30 2017 - 09:25:24 EST


On 3/29/2017 7:04 PM, Sinan Kaya wrote:
> if (!parent || !parent->link_state)
> return;
>
> + if (pdev->has_secondary_link) {
> + link = pdev->link_state;

I think I accidentally moved the parent check above this code
and broke the case where you can actually remove the root port.

I'll post v7 with reverting this change.

--
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.