From patchwork Wed Dec 18 19:04:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lubomir Rintel X-Patchwork-Id: 11301673 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 37CF4109A for ; Wed, 18 Dec 2019 19:05:12 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E4E7B24650 for ; Wed, 18 Dec 2019 19:05:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux.kernel.org header.i=@linux.kernel.org header.b="xMm5pXZX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E4E7B24650 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=v3.sk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+26986+1041+1554929+3438807@linux.kernel.org X-Received: by 127.0.0.2 with SMTP id sTcIYY1556264xiHFCrG29aT; Wed, 18 Dec 2019 11:05:11 -0800 X-Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mx.groups.io with SMTP id smtpd.web09.1022.1576695902231245053 for ; Wed, 18 Dec 2019 11:05:02 -0800 X-Received: by mail.kernel.org (Postfix) id 9BDE12082E; Wed, 18 Dec 2019 19:05:01 +0000 (UTC) X-Received: from shell.v3.sk (unknown [167.172.186.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 22855227BF for ; Wed, 18 Dec 2019 19:05:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 22855227BF X-Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 0A0ABDFC5F; Wed, 18 Dec 2019 19:05:03 +0000 (UTC) X-Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id xGEUMlC3gG8f; Wed, 18 Dec 2019 19:05:02 +0000 (UTC) X-Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 33510DFC76; Wed, 18 Dec 2019 19:05:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at zimbra.v3.sk X-Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id E00NoQuN8_jt; Wed, 18 Dec 2019 19:05:01 +0000 (UTC) X-Received: from furthur.lan (unknown [109.183.109.54]) by zimbra.v3.sk (Postfix) with ESMTPSA id 8FA12DD70C; Wed, 18 Dec 2019 19:05:01 +0000 (UTC) From: Lubomir Rintel To: Linuxkernel+Patchwork-Soc via Email Integration Cc: Arnd Bergmann , Michael Turquette , Stephen Boyd , soc@kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Lubomir Rintel Subject: [PATCH 2/2] clk: mmp2: Fix the order of timer mux parents Date: Wed, 18 Dec 2019 20:04:54 +0100 Message-Id: <20191218190454.420358-3-lkundrak@v3.sk> In-Reply-To: <20191218190454.420358-1-lkundrak@v3.sk> References: <20191218190454.420358-1-lkundrak@v3.sk> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: patchwork-soc@linux.kernel.org List-Id: Mailing-List: list patchwork-soc@linux.kernel.org; contact patchwork-soc+owner@linux.kernel.org Delivered-To: mailing list patchwork-soc@linux.kernel.org Reply-To: patchwork-soc+owner@linux.kernel.org X-Gm-Message-State: ojAybnWWEDDAOAvFlrzN8vMtx1554929AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux.kernel.org; q=dns/txt; s=20140610; t=1576695911; bh=WQqF/j0O2ed3RHzH5c20VdQA+zOxghdAAC75wMlGUvk=; h=Cc:Date:From:Reply-To:Subject:To; b=xMm5pXZXDv6clxqfqw1CGRMdvthps8vJXWFYc6mlt+WivX2wW/dKIVU8i59IhAjzwQH zKY9omeqyxdpRtNTTRqjTGu1mY4cNljT9cvlPzrhafdTDOk7nidAJOq8yvK4q1uV+qEcY TPDTUm1orqsoLZiFBn+bnrsDXwAA54QEuEA= Determined empirically, no documentation is available. The OLPC XO-1.75 laptop used parent 1, that one being VCTCXO/4 (65MHz), but thought it's a VCTCXO/2 (130MHz). The mmp2 timer driver, not knowing what is going on, ended up just dividing the rate as of commit f36797ee4380 ("ARM: mmp/mmp2: dt: enable the clock")' Signed-off-by: Lubomir Rintel Acked-by: Stephen Boyd --- drivers/clk/mmp/clk-of-mmp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/mmp/clk-of-mmp2.c b/drivers/clk/mmp/clk-of-mmp2.c index e7e264f26a50d..24af9241bfa06 100644 --- a/drivers/clk/mmp/clk-of-mmp2.c +++ b/drivers/clk/mmp/clk-of-mmp2.c @@ -154,7 +154,7 @@ static DEFINE_SPINLOCK(ssp3_lock); static const char *ssp_parent_names[] = {"vctcxo_4", "vctcxo_2", "vctcxo", "pll1_16"}; static DEFINE_SPINLOCK(timer_lock); -static const char *timer_parent_names[] = {"clk32", "vctcxo_2", "vctcxo_4", "vctcxo"}; +static const char *timer_parent_names[] = {"clk32", "vctcxo_4", "vctcxo_2", "vctcxo"}; static DEFINE_SPINLOCK(reset_lock);