From patchwork Sat Dec 21 11:00:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 182350 Delivered-To: patch@linaro.org Received: by 2002:a92:1f98:0:0:0:0:0 with SMTP id f24csp1675366ilf; Sat, 21 Dec 2019 03:00:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwDtW0bbh5Md5yZNXjZrrFbPZ3Hx05JJV8C3AEEKIsRV0w+MTmnYxCyBiJWrpfW3vXPO433 X-Received: by 2002:a05:6830:20cf:: with SMTP id z15mr20386280otq.277.1576926022943; Sat, 21 Dec 2019 03:00:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576926022; cv=none; d=google.com; s=arc-20160816; b=vzZns+CwAtlOfoMR16gURYnwWruv2e5wB1N5yZWh1mcy/nJ9e8wlHOfLgagP+9AmhL 0IrmB7CmbUNvuRZ9eMYjkdiPhfBbCYGRaQxECizOOd4vT5SSrootgEZKP7hp03TBDPEy q52VKEa9BnpRH53hDkKwJMrwCfFt1H9ULSyTuF5rMKtFcEiaYWTKovNE57EC7Ya5Pm7a FQ26Dh4XnfuYPinGSTBBjCHw0aNxquTtNsltuYXz6zIdpLMqp88wQDNBwfOwrrgqHa3I FO+jrhDPATExx3APbs4P2jaS5RyaJOp+PbKvHh51QDHyvmTh7pFIc02lQWwsPml+ZYJ3 iGSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=eG5gP0lC5PCuIkT0Da8qVDYrW7IKruTygnBgohWAqSw=; b=h3+aOJhY2YEzxJgiN0GHij+hEfLY7AMQA264y9N76CEXe08h2mctoJwwkrt12ex+JD qPGg7nFVnKQWYUOuOPYk1Ox7ufmlPb5fK3UbPwTSKZuj6hbx0a76HAL8mzMX9oN+A7EV MuFIK6RglGscgPV8v0p2brVbJBc0I+r6tuVE0/3GwfbIo6VjOJK+mEHnYVRZiVg40PZx XtPNg8l2hZM1BE4A2wZ3RRLhwnsCU2VqMs6PAdGy36L/hYTCIzUjjuAvMN3XZDlF8vUX 41vBVpLBDlSYEOTC6dAJwn6oFp6bK+8GR6UbwIIrki0piz7aYi04fezYOh35/L+qwokK +cAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JaadfoHS; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15si2969775oth.160.2019.12.21.03.00.22; Sat, 21 Dec 2019 03:00:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JaadfoHS; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726650AbfLULAW (ORCPT + 4 others); Sat, 21 Dec 2019 06:00:22 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:50894 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726182AbfLULAV (ORCPT ); Sat, 21 Dec 2019 06:00:21 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBLB0GN1042071; Sat, 21 Dec 2019 05:00:16 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1576926016; bh=eG5gP0lC5PCuIkT0Da8qVDYrW7IKruTygnBgohWAqSw=; h=From:To:CC:Subject:Date; b=JaadfoHS2Hq28tUpb6QY1lVPj3xoUpnZ4+jrz2zWCVk2BDVMwYZtZ2wUDduol4JLK bGbHso00/AnyM6BiIU9bf2PTBrqL+ykji9qXnJoKWszEg9UUoV6OEK0Y+0jx5akbCr p57CYvrObAHqA8eZfzZC7lXQ/YvtzooIcYHCN6c0= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBLB0GOc056712 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 21 Dec 2019 05:00:16 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Sat, 21 Dec 2019 05:00:14 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Sat, 21 Dec 2019 05:00:14 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBLB0Dbq077975; Sat, 21 Dec 2019 05:00:13 -0600 From: Grygorii Strashko To: Tero Kristo , Michael Turquette , Tony Lindgren , Stephen Boyd CC: Sekhar Nori , , , Grygorii Strashko Subject: [PATCH v2] clk: ti: dra7: fix parent for gmac_clkctrl Date: Sat, 21 Dec 2019 13:00:04 +0200 Message-ID: <20191221110004.9951-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The parent clk for gmac clk ctrl has to be gmac_main_clk (125MHz) instead of dpll_gmac_ck (1GHz). This is caused incorrect CPSW MDIO operation. Hence, fix it. Fixes: dffa9051d546 ('clk: ti: dra7: add new clkctrl data') Signed-off-by: Grygorii Strashko --- drivers/clk/ti/clk-7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/clk/ti/clk-7xx.c b/drivers/clk/ti/clk-7xx.c index 9dd6185a4b4e..66e4b2b9ec60 100644 --- a/drivers/clk/ti/clk-7xx.c +++ b/drivers/clk/ti/clk-7xx.c @@ -405,7 +405,7 @@ static const struct omap_clkctrl_bit_data dra7_gmac_bit_data[] __initconst = { }; static const struct omap_clkctrl_reg_data dra7_gmac_clkctrl_regs[] __initconst = { - { DRA7_GMAC_GMAC_CLKCTRL, dra7_gmac_bit_data, CLKF_SW_SUP, "dpll_gmac_ck" }, + { DRA7_GMAC_GMAC_CLKCTRL, dra7_gmac_bit_data, CLKF_SW_SUP, "gmac_main_clk" }, { 0 }, };