Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3104334pxf; Mon, 15 Mar 2021 01:09:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8zorGfdCV+I79QMzsjf3zKkJ0RY7IBlN1+/4wEEsY23juxAcQH1KB05vdKth/9wbwAoQ7 X-Received: by 2002:a17:906:d8c6:: with SMTP id re6mr21470568ejb.311.1615795785534; Mon, 15 Mar 2021 01:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615795785; cv=none; d=google.com; s=arc-20160816; b=pVkfUuOBX3lH29VJCGwZ6KRHTPBm+rDMGzLK1uvAfjrCV7dVuQZzxUCKIUB5UzKaZd 1yvL8lRsEN41u33ScXWb4Ndxih9ObEQVJgVQ2rX5GNd2J2sLxqc0xSMUIRc59f7gbhVW dAu/5sdYoQlgUGV4+RWuLh5dimpSgd3CTV7eE0qVnpterobnNpIfz58ANyg7aRaA/kX7 0I8bkBSPM6BMzkZaI7Ltv+EOVVf6frXw6OaZhzKnR7hNor+XjQY/FZdpn4OHGQE1wGPr NTDwNbjqKjwNIALY0l/zo5XDJk99UbyiyRlzB+2hUwJg5NEaeVg0mSJi+tWKW1P1P5/g QjgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=g8APT2S0IX0iseqBxNln1+wJvDks0BeG6GT+WE6k3aM=; b=uharMIhuASkIPs/Ti90ROuX7cC8EhRCTfDY/niVOxqcGFILPiAmLmrgChQlv5BK7R0 8y3iAN+GQtnfIyGYg3O7JVoo4LL+KNiyzFYy+yN/aztWeRaR5FfbOvpsR26Y+NmgJUFw 4mtowG/3hk6veEw6heBSeddPVppmd1EBkS5f6IdYyK0R20/iTJBoY0GDkZ9KmHGfKJAb 6RtW+t7FWVlSVt5jedWLe+UgEfe1ldPHFJDYxpNvKOgBWjijJWmb6Hnn+weXBG7dNn7k ahfH0379Big7nzRdVEZFCdExJTsT39L6nqYS8DRFkJBJSw6X+30bEKL+ut0wFJejDThw LOqw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si9957694ejy.571.2021.03.15.01.09.23; Mon, 15 Mar 2021 01:09:45 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbhCOII1 (ORCPT + 99 others); Mon, 15 Mar 2021 04:08:27 -0400 Received: from inva020.nxp.com ([92.121.34.13]:52788 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbhCOIIA (ORCPT ); Mon, 15 Mar 2021 04:08:00 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9F5D61A1347; Mon, 15 Mar 2021 09:07:55 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9204C1A0DE2; Mon, 15 Mar 2021 09:07:55 +0100 (CET) Received: from localhost (fsr-ub1664-175.ea.freescale.net [10.171.82.40]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 76E6F20304; Mon, 15 Mar 2021 09:07:55 +0100 (CET) Date: Mon, 15 Mar 2021 10:07:55 +0200 From: Abel Vesa To: Richard Zhu Cc: shawnguo@kernel.org, ping.bai@nxp.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: imx8mp: Remove the none exist pcie clocks Message-ID: <20210315080755.cuasc5yowvcvktwc@fsr-ub1664-175> References: <1615793965-1422-1-git-send-email-hongxing.zhu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1615793965-1422-1-git-send-email-hongxing.zhu@nxp.com> User-Agent: NeoMutt/20180622 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-03-15 15:39:24, Richard Zhu wrote: > In the i.MX8MP PCIe design, the PCIe PHY REF clock comes from external > OSC or internal system PLL. It is configured in the IOMUX_GPR14 register > directly, and can't be contolled by CCM at all. > Remove the PCIE PHY clock from clock driver to clean up codes. > There is only one PCIe in i.MX8MP, remove the none exist second PCIe > related clocks. > Remove the none exsits clocks IDs together. > Please resend both patches and add linux-clk@vger.kernel.org to cc. > Signed-off-by: Richard Zhu > Reviewed-by: Jason Liu > --- > drivers/clk/imx/clk-imx8mp.c | 15 --------------- > include/dt-bindings/clock/imx8mp-clock.h | 3 --- > 2 files changed, 18 deletions(-) > > diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c > index 2f4e1d674e1c..afbeb6bf1909 100644 > --- a/drivers/clk/imx/clk-imx8mp.c > +++ b/drivers/clk/imx/clk-imx8mp.c > @@ -152,10 +152,6 @@ static const char * const imx8mp_can2_sels[] = {"osc_24m", "sys_pll2_200m", "sys > "sys_pll1_160m", "sys_pll1_800m", "sys_pll3_out", > "sys_pll2_250m", "audio_pll2_out", }; > > -static const char * const imx8mp_pcie_phy_sels[] = {"osc_24m", "sys_pll2_100m", "sys_pll2_500m", > - "clk_ext1", "clk_ext2", "clk_ext3", > - "clk_ext4", "sys_pll1_400m", }; > - > static const char * const imx8mp_pcie_aux_sels[] = {"osc_24m", "sys_pll2_200m", "sys_pll2_50m", > "sys_pll3_out", "sys_pll2_100m", "sys_pll1_80m", > "sys_pll1_160m", "sys_pll1_200m", }; > @@ -380,14 +376,6 @@ static const char * const imx8mp_memrepair_sels[] = {"osc_24m", "sys_pll2_100m", > "sys_pll1_800m", "sys_pll2_1000m", "sys_pll3_out", > "clk_ext3", "audio_pll2_out", }; > > -static const char * const imx8mp_pcie2_ctrl_sels[] = {"osc_24m", "sys_pll2_250m", "sys_pll2_200m", > - "sys_pll1_266m", "sys_pll1_800m", "sys_pll2_500m", > - "sys_pll2_333m", "sys_pll3_out", }; > - > -static const char * const imx8mp_pcie2_phy_sels[] = {"osc_24m", "sys_pll2_100m", "sys_pll2_500m", > - "clk_ext1", "clk_ext2", "clk_ext3", > - "clk_ext4", "sys_pll1_400m", }; > - > static const char * const imx8mp_media_mipi_test_byte_sels[] = {"osc_24m", "sys_pll2_200m", "sys_pll2_50m", > "sys_pll3_out", "sys_pll2_100m", > "sys_pll1_80m", "sys_pll1_160m", > @@ -585,7 +573,6 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) > hws[IMX8MP_CLK_VPU_G2] = imx8m_clk_hw_composite("vpu_g2", imx8mp_vpu_g2_sels, ccm_base + 0xa180); > hws[IMX8MP_CLK_CAN1] = imx8m_clk_hw_composite("can1", imx8mp_can1_sels, ccm_base + 0xa200); > hws[IMX8MP_CLK_CAN2] = imx8m_clk_hw_composite("can2", imx8mp_can2_sels, ccm_base + 0xa280); > - hws[IMX8MP_CLK_PCIE_PHY] = imx8m_clk_hw_composite("pcie_phy", imx8mp_pcie_phy_sels, ccm_base + 0xa380); > hws[IMX8MP_CLK_PCIE_AUX] = imx8m_clk_hw_composite("pcie_aux", imx8mp_pcie_aux_sels, ccm_base + 0xa400); > hws[IMX8MP_CLK_I2C5] = imx8m_clk_hw_composite("i2c5", imx8mp_i2c5_sels, ccm_base + 0xa480); > hws[IMX8MP_CLK_I2C6] = imx8m_clk_hw_composite("i2c6", imx8mp_i2c6_sels, ccm_base + 0xa500); > @@ -643,8 +630,6 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) > hws[IMX8MP_CLK_MEDIA_CAM2_PIX] = imx8m_clk_hw_composite("media_cam2_pix", imx8mp_media_cam2_pix_sels, ccm_base + 0xbe80); > hws[IMX8MP_CLK_MEDIA_LDB] = imx8m_clk_hw_composite("media_ldb", imx8mp_media_ldb_sels, ccm_base + 0xbf00); > hws[IMX8MP_CLK_MEMREPAIR] = imx8m_clk_hw_composite_critical("mem_repair", imx8mp_memrepair_sels, ccm_base + 0xbf80); > - hws[IMX8MP_CLK_PCIE2_CTRL] = imx8m_clk_hw_composite("pcie2_ctrl", imx8mp_pcie2_ctrl_sels, ccm_base + 0xc000); > - hws[IMX8MP_CLK_PCIE2_PHY] = imx8m_clk_hw_composite("pcie2_phy", imx8mp_pcie2_phy_sels, ccm_base + 0xc080); > hws[IMX8MP_CLK_MEDIA_MIPI_TEST_BYTE] = imx8m_clk_hw_composite("media_mipi_test_byte", imx8mp_media_mipi_test_byte_sels, ccm_base + 0xc100); > hws[IMX8MP_CLK_ECSPI3] = imx8m_clk_hw_composite("ecspi3", imx8mp_ecspi3_sels, ccm_base + 0xc180); > hws[IMX8MP_CLK_PDM] = imx8m_clk_hw_composite("pdm", imx8mp_pdm_sels, ccm_base + 0xc200); > diff --git a/include/dt-bindings/clock/imx8mp-clock.h b/include/dt-bindings/clock/imx8mp-clock.h > index e8d68fbb6e3f..43927a1b9e94 100644 > --- a/include/dt-bindings/clock/imx8mp-clock.h > +++ b/include/dt-bindings/clock/imx8mp-clock.h > @@ -125,7 +125,6 @@ > #define IMX8MP_CLK_CAN1 116 > #define IMX8MP_CLK_CAN2 117 > #define IMX8MP_CLK_MEMREPAIR 118 > -#define IMX8MP_CLK_PCIE_PHY 119 > #define IMX8MP_CLK_PCIE_AUX 120 > #define IMX8MP_CLK_I2C5 121 > #define IMX8MP_CLK_I2C6 122 > @@ -182,8 +181,6 @@ > #define IMX8MP_CLK_MEDIA_CAM2_PIX 173 > #define IMX8MP_CLK_MEDIA_LDB 174 > #define IMX8MP_CLK_MEDIA_MIPI_CSI2_ESC 175 > -#define IMX8MP_CLK_PCIE2_CTRL 176 > -#define IMX8MP_CLK_PCIE2_PHY 177 > #define IMX8MP_CLK_MEDIA_MIPI_TEST_BYTE 178 > #define IMX8MP_CLK_ECSPI3 179 > #define IMX8MP_CLK_PDM 180 > -- > 2.17.1 >