Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp692384ybg; Mon, 1 Jun 2020 11:49:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLN2s0h34I9mEjJ61jv8BeqgbVv2GjgtpF2wUjQ8Y6d1wlPztaWYwxBr1xX0fjRNwzb6Fg X-Received: by 2002:a17:906:480f:: with SMTP id w15mr20151583ejq.381.1591037395527; Mon, 01 Jun 2020 11:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591037395; cv=none; d=google.com; s=arc-20160816; b=CS5DGD1ELYWOGl3+2aa6Hq/77X0D5G+pX3qeXtYIgnmkZ6uyX1C0u9FObPJ3GCNF3q WNyfF2JBB8cdj7ItuaCwqfXIhETmWaClk4b5CnPSPD4StUxTBBJu9hiiHEn+WxL/bGnW MbPSEbufGdtBrWQNXTVYd/mT3muD+n2D3NIuGh51QPfv8p2DhmwKhNQfUxUz2pb+JtdX GbRJV0V2n1IKtuERm6F4WWaG6DWNRTmnULlLMBbodvFAHPWVYwZnJwShKFwtvaIDrC0O ZXbeAs1nRAuEeVrs1KqUFsl0mobEFQf75Vro2Xmm3KNVl/WLXdrUW8Kr6BfD1gIGK5EQ EFvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=usWZKSaweVe5kZGElYTPFh09AXBEpO6mvAVEJFdZ7DE=; b=eLwjO7FORxrk5XwCJufZLh2uKn5bg9h44LA+QEbjH2gVy/wqNxR3HDvVyA03Q5nn8s OG+/u/x8doiS+/Rp/qDIFuYOaC9JxZcZxb9unEvHazfgCMWlCr/+EayEMRi/qOjzKaOW Ful5WCOOTpgfsl7Npfd0wkyFQ7a3uFp7DUX4geZGnWLg4GmBwizMVZyX7lf0pKuNki3G OTWSxB4Kp3x9R/ayhwIzA1f5JKeeQZTK/oeId7Twt3fTNPG7KvWDxiRNYz8dEM7hXhBg IjpJsRCcKwlmayIWCIwuKpawsSsOkyWGTUOHzWQZcqXzLU7l9VQh20iRjIzGH9V4jMcZ 86kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OfuMWwCX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si197633eji.138.2020.06.01.11.49.32; Mon, 01 Jun 2020 11:49:55 -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; dkim=pass header.i=@kernel.org header.s=default header.b=OfuMWwCX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730226AbgFASrv (ORCPT + 99 others); Mon, 1 Jun 2020 14:47:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:54066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729793AbgFASIE (ORCPT ); Mon, 1 Jun 2020 14:08:04 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E66432077D; Mon, 1 Jun 2020 18:08:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591034883; bh=J2jIe6HbveuMkncJ1bisbe9ib21+twXrpFHhdmfVG6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OfuMWwCXvD7qBRdPl9eOsyGeebrI+f+uZEMPuYJfmL+eR3FXy0Smkr3cdAAGiTRHi Ho8dAB0GNhia2H1R3BNwiYeOrvM11bN1syty0oAq72LFfdhgQWgFRoV0PjSKpq37Pm JYQTiEwJ5K+zv3YFPowxe86D4VxnK1/dSjB6dFOk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tony Lindgren , Tero Kristo , Stephen Boyd , Sasha Levin Subject: [PATCH 5.4 054/142] clk: ti: am33xx: fix RTC clock parent Date: Mon, 1 Jun 2020 19:53:32 +0200 Message-Id: <20200601174043.395331588@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601174037.904070960@linuxfoundation.org> References: <20200601174037.904070960@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tero Kristo [ Upstream commit dc6dbd51009fc412729c307161f442c0a08618f4 ] Right now, trying to use RTC purely with the ti-sysc / clkctrl framework fails to enable the RTC module properly. Based on experimentation, this appears to be because RTC is sourced from the clkdiv32k optional clock. TRM is not very clear on this topic, but fix the RTC to use the proper source clock nevertheless. Reported-by: Tony Lindgren Signed-off-by: Tero Kristo Link: https://lkml.kernel.org/r/20200424152301.4018-1-t-kristo@ti.com Acked-by: Tony Lindgren Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/ti/clk-33xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/ti/clk-33xx.c b/drivers/clk/ti/clk-33xx.c index a360d3109555..73f567d8022f 100644 --- a/drivers/clk/ti/clk-33xx.c +++ b/drivers/clk/ti/clk-33xx.c @@ -212,7 +212,7 @@ static const struct omap_clkctrl_reg_data am3_mpu_clkctrl_regs[] __initconst = { }; static const struct omap_clkctrl_reg_data am3_l4_rtc_clkctrl_regs[] __initconst = { - { AM3_L4_RTC_RTC_CLKCTRL, NULL, CLKF_SW_SUP, "clk_32768_ck" }, + { AM3_L4_RTC_RTC_CLKCTRL, NULL, CLKF_SW_SUP, "clk-24mhz-clkctrl:0000:0" }, { 0 }, }; -- 2.25.1