Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1015624imm; Fri, 27 Jul 2018 09:46:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeTYJEI2w8gRDoZCeuvblLoioR1AyJ+m04XlJ4UzT4D769zugIqZsnF0Z+yf8QYA6gd13Zt X-Received: by 2002:a62:1d49:: with SMTP id d70-v6mr2474671pfd.101.1532710017460; Fri, 27 Jul 2018 09:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532710017; cv=none; d=google.com; s=arc-20160816; b=uDPCU/h53ImvwiWWkjh6n9j4cnbd2f+B5rGUL+yhw1w7hB6A9Y9o2ieCZL9NCOlJ/J mbGenXhxOZmFILtZnrAWlQPK0g82CEDv5W9K1v2T9mj7kHaJcqQuCDpJ96e2qUPFhj8j vXxPyYaBst3NvqczHkqBRous8piIymPaIyHJ2OIhO5O7rK9oBIy6y8e2z43UenhA0GUz 7txj5nFUJ2HDsyF49VW2jIEkscxjwtOzgAryIofLKqzcya2x7c2WxVOuhDDnAG3raR8W gkcNmWfC6TuMwOWxbBWuHUmHiA+OeOvRdp3MPbvye+EGi87wu2hHZFaOuydEUg9/vo1i 4Wsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=xBmdWbgRafuYPkzcDJ19YoVIUtBw5sjssMlLLymCsy0=; b=RzfOecCSBlx67QATpfuWIrhZ1eowzOMcpOPErlNWdktYvjhShQpWgmuA2yFTsIJsbM /yEZERQCkYKJqs8490Aj0eF2J22r8/c35WzwxoHAsXwKll+x11qFHM0qgXxjQaWfb2WQ uVoKxr/AHQWrmlVdvaY/DWNEf3SslI1tiX8Q81bkwG89bqwt5K/saUUzhWCkvaRlMjqU dGdal4GSD5IFkvwwePy7LYmqu421TPcWc8mCvF/JIHxCQYZ5dkZ/MmHoCMTWsZj0QV0E gJEye3axM3s6QzEWIfD5MtjW//nYO4Ecyx0UgysyjzVHynCnHUhWfbPnU5s59pslLv65 xIHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Jub9YHHx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s23-v6si4212498pga.563.2018.07.27.09.46.41; Fri, 27 Jul 2018 09:46:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@kernel.org header.s=default header.b=Jub9YHHx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732167AbeG0SIe (ORCPT + 99 others); Fri, 27 Jul 2018 14:08:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:48728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730510AbeG0SIe (ORCPT ); Fri, 27 Jul 2018 14:08:34 -0400 Received: from localhost (unknown [104.132.1.75]) (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 43C54208AF; Fri, 27 Jul 2018 16:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1532709952; bh=xBmdWbgRafuYPkzcDJ19YoVIUtBw5sjssMlLLymCsy0=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=Jub9YHHxH6/+K1vlCUnYbFhLl6Jmnpy4eSNibxx0jYzadgrw5Iv5NCDI6e59GfXJY zMPTYpqkTXkEB/xjz4rVABym/14TeHDGmr9SbXc5S1h2HRBhEiqeeVXePUDMRjR2tj /fUsbkfKDik/6SDAGaFpRn/7bI8R3NvOnkwQVWIk= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Jerome Brunet , Neil Armstrong , Yixun Lan From: Stephen Boyd In-Reply-To: <153270970080.48062.18399022907046343950@swboyd.mtv.corp.google.com> Cc: Rob Herring , Martin Blumenstingl , Kevin Hilman , Michael Turquette , yixun.lan@amlogic.com, linux-kernel@vger.kernel.org, Boris Brezillon , Liang Yang , Qiufang Dai , Miquel Raynal , Carlo Caione , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jian Hu References: <20180712211244.11428-1-yixun.lan@amlogic.com> <20180712211244.11428-3-yixun.lan@amlogic.com> <153261840298.48062.2497103873681297587@swboyd.mtv.corp.google.com> <153270970080.48062.18399022907046343950@swboyd.mtv.corp.google.com> Message-ID: <153270995155.48062.4302847978258086624@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v3 2/2] clk: meson: add sub MMC clock controller driver Date: Fri, 27 Jul 2018 09:45:51 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Stephen Boyd (2018-07-27 09:41:40) > Quoting Yixun Lan (2018-07-27 07:52:23) > > HI Stephen: > > = > > On 07/26/2018 11:20 PM, Stephen Boyd wrote: > > > Quoting Yixun Lan (2018-07-12 14:12:44) > > >> diff --git a/drivers/clk/meson/mmc-clkc.c b/drivers/clk/meson/mmc-cl= kc.c > > >> new file mode 100644 > > >> index 000000000000..36c4c7cd69a6 > > >> --- /dev/null > > >> +++ b/drivers/clk/meson/mmc-clkc.c > > >> @@ -0,0 +1,367 @@ > > >> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > >> +/* > > >> + * Amlogic Meson MMC Sub Clock Controller Driver > > >> + * > > >> + * Copyright (c) 2017 Baylibre SAS. > > >> + * Author: Jerome Brunet > > >> + * > > >> + * Copyright (c) 2018 Amlogic, inc. > > >> + * Author: Yixun Lan > > >> + */ > > >> + > > >> +#include > > > = > > > Is this include used? > > > = > > this is needed by clk_get_rate() > > see drivers/clk/meson/mmc-clkc.c:204 > = > Hmm ok. That's unfortunate. You should be able to read the hardware to figure out the clk frequency? This may be a sign that the phase clk_ops are bad and should be passing in the frequency of the parent clk to the op so that phase can be calculated. Jerome?