From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sinan Kaya Subject: Re: [PATCH] PCI/ASPM: Suppress common clock mode setting failure Date: Mon, 22 Jan 2018 14:13:33 -0500 Message-ID: <9a557c73-ac13-96b3-2eff-6b3a1ccaa7d6@codeaurora.org> References: <1516642093-15633-1-git-send-email-okaya@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:56064 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751121AbeAVTNh (ORCPT ); Mon, 22 Jan 2018 14:13:37 -0500 In-Reply-To: <1516642093-15633-1-git-send-email-okaya@codeaurora.org> Content-Language: en-US Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: linux-pci@vger.kernel.org, timur@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bjorn Helgaas , Rajat Jain , Vidya Sagar , Thomas Gleixner , Kees Cook , Ard Biesheuvel , Yinghai Lu , open list On 1/22/2018 12:28 PM, Sinan Kaya wrote: > +++ b/drivers/pci/pcie/aspm.c > @@ -253,6 +253,11 @@ static void pcie_aspm_configure_common_clock(struct pcie_link_state *link) > > /* Configure upstream component */ > pcie_capability_read_word(parent, PCI_EXP_LNKCTL, ®16); > + > + /* Port might be already in common clock mode */ > + if ((same_clock) && (reg16 & PCI_EXP_LNKCTL_CCC)) > + return; > + I think the placement of this statement is too late. I'll move it a couple of lines and post V2. -- 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.