Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp377917pxb; Wed, 3 Mar 2021 05:43:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZX2w5/kTUJQPJU2LAjNpYk2EQmwWVY5WyaH+/Y2Arudlvmaos6ElaKunDTBA7om2tTGNO X-Received: by 2002:aa7:d54a:: with SMTP id u10mr25682830edr.316.1614778984507; Wed, 03 Mar 2021 05:43:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614778984; cv=none; d=google.com; s=arc-20160816; b=dYJViTrjI8HXf0Y84GXkYxce8gap+wJIh1i9yHI2HmeRwNA5b/nQhHWbEIs+y3hahH FmU0dgLB+ACEH8kco6zRwTn8ujAW2S8+gzdvuC4DPPi8gCS2Ki9JgGMAQSBcyyTYnX+H yAHaWu/9ZcG/xJK6ywIlmFSWQzLzd6enfhXNnYBkbS6KwCHl2recE2YX/kdys82Ko2y/ XtW0ZjO1NQyeQQsvGUOeyUND8p/HFOlNOGcI77qACqe0prjl2cFtUXvdfRgY7BGmGXyB I4yFwhh+K9jDwUztrDySk79/Cdyp4EAWuNL3LduT+T6xFGrUrZj+p4Uyc/QU01DVFv1s JnxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Bf5DZ5kNOqGUYV1lgikmgbgfv/NHi6jlNiOZmJiZ/Kg=; b=nY24mILOr7GwsGKpC++pYLSLi67xW/gDi1rzPg6yHVbxDvq3R07qNXfU4gdNgRAODq TP0LKb9xlaQBGaEQklQ/Qx7EEcuT+2etXDHQIEAlu2eET8k9jzUdYKGVMjIwRTXh0Atk beuwVUbIHT1+5Q8ZllAvfUxVvRhuPSckR0caaaRYLZdA7kvquZvl8ZUtZ4hgHr+B57N1 rJSZHvVLgqkBw8orX3TzjVMb2P0nI4AESm4tD6GEr28JeCbqieZ6X8hbuNvy5V710Ldu UX3u3NZlYkFAdSvx0qXfLJFoBzpkf8Q+QxvYsgTvPzdvf5HY8Kv5+WXx2bQz2z+M7UR+ 3ezQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R1KyxI1z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si80956ejo.18.2021.03.03.05.42.26; Wed, 03 Mar 2021 05:43:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R1KyxI1z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242345AbhCATsb (ORCPT + 99 others); Mon, 1 Mar 2021 14:48:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:55744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233525AbhCAQ4P (ORCPT ); Mon, 1 Mar 2021 11:56:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7CFB164FD2; Mon, 1 Mar 2021 16:36:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616565; bh=IVNC5ZX8q8y7rAJijhYCzaHK4HPSuhZTTeYeb4d30/4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R1KyxI1zNB9JNj+9LTLSfaaaTlHsUUP2NLgvA+LvSdPjaXREgtjd02ontxZyCJYXH ay7yWd8meaeE+LNON6zwGYaaLMpdhIAZeJettQTwgVztHCU8615B4eVPHLgl5tBvKj ShFBgg6SIUnRk706oZo3IQCZmErcgEYlfbmweMQw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ilia Mirkin , Ansuel Smith , Lorenzo Pieralisi , Bjorn Helgaas , Stanimir Varbanov Subject: [PATCH 4.19 019/247] PCI: qcom: Use PHY_REFCLK_USE_PAD only for ipq8064 Date: Mon, 1 Mar 2021 17:10:39 +0100 Message-Id: <20210301161032.636433822@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ansuel Smith commit 2cfef1971aea6119ee27429181d6cb3383031ac2 upstream. The use of PHY_REFCLK_USE_PAD introduced a regression for apq8064 devices. It was tested that while apq doesn't require the padding, ipq SoC must use it or the kernel hangs on boot. Link: https://lore.kernel.org/r/20201019165555.8269-1-ansuelsmth@gmail.com Fixes: de3c4bf64897 ("PCI: qcom: Add support for tx term offset for rev 2.1.0") Reported-by: Ilia Mirkin Signed-off-by: Ilia Mirkin Signed-off-by: Ansuel Smith Signed-off-by: Lorenzo Pieralisi Signed-off-by: Bjorn Helgaas Acked-by: Stanimir Varbanov Cc: stable@vger.kernel.org # v4.19+ Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/dwc/pcie-qcom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/pci/controller/dwc/pcie-qcom.c +++ b/drivers/pci/controller/dwc/pcie-qcom.c @@ -371,7 +371,9 @@ static int qcom_pcie_init_2_1_0(struct q /* enable external reference clock */ val = readl(pcie->parf + PCIE20_PARF_PHY_REFCLK); - val &= ~PHY_REFCLK_USE_PAD; + /* USE_PAD is required only for ipq806x */ + if (!of_device_is_compatible(node, "qcom,pcie-apq8064")) + val &= ~PHY_REFCLK_USE_PAD; val |= PHY_REFCLK_SSP_EN; writel(val, pcie->parf + PCIE20_PARF_PHY_REFCLK);