Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1904476imu; Wed, 28 Nov 2018 17:49:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/VQiHXkjduKk/Fct1DvQd2xPjQ5o99yi3BIEE1ijiO3NeTMCGAXGhuj+HG7ADkwkyR7nhnH X-Received: by 2002:a17:902:f83:: with SMTP id 3-v6mr39730714plz.254.1543456140896; Wed, 28 Nov 2018 17:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543456140; cv=none; d=google.com; s=arc-20160816; b=B9CgEZYv2Mr6sb5QcSWvDsfcNjVvRCgSyPQ46N5fS/xtG+1+L1dF6tpRiebleDMhCO vdCg/hX3drqhAZILVjHhNobsqXTN13+b4YPo4gTDauSDGhZirX+Ogf4O/CrmEJE+t56U jyfS7zxCvUvv9Fm8rMepSKmX4+jocme374hEIzaR/FdLgTJBHa1cJC1vcwEMBW+eRg8K aiO7MKEjhu2lx7N1oeQtJcACAOxJi1p9aUBaRnia5W8iyFJA3mhlQpWjMUeQMIu0Npbc rlf4qVMraLGcYdNspw+YtALIYdF/h+nKW+zkYH2YL9tqrLyqRmtYESH+ohS///MTy4mS GBnA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6C471Syr0SO/oKbVRNFZyLyRPWKbRZ+akI7kRrkwqc4=; b=r+7S8plwin6xMLgBlwr299lZiF4+0g8Emtav8wZ8Fooio0Xe1aU3gsmrL1npSuVS+h NmSr4yE28/dSqZA6W72CmRTfFlLyBWavRQUHRDyYSSvca4CLpK6mtSwoqDh1UsYAxKs9 SlUjmO4mxrZ/epghBRRZg46slxIAII1RfAgVRIiJDvxrlZCq/ogJry1lr8FcRUrC66LC HdL8lz3BneGn4/gmWRJYEm1sbPc0bUOA9DkKrZlo6vZgGyprszqbQmYX6H9YFOft4SY/ 9L0HwRei44IkNwJ/48gbzBkuSINKDnG8EUlSIQIUJa1FmuGHIkQ9PvJg0JM40hGR3A9Z pJ5A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si424811pgd.10.2018.11.28.17.48.45; Wed, 28 Nov 2018 17:49:00 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727097AbeK2Mvr (ORCPT + 99 others); Thu, 29 Nov 2018 07:51:47 -0500 Received: from mail-sh2.amlogic.com ([58.32.228.45]:35025 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726893AbeK2Mvr (ORCPT ); Thu, 29 Nov 2018 07:51:47 -0500 Received: from [10.18.29.194] (10.18.29.194) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Thu, 29 Nov 2018 09:48:20 +0800 Subject: Re: [PATCH v7 0/4] clk: meson: add a sub EMMC clock controller support To: Jerome Brunet , Neil Armstrong CC: Kevin Hilman , Carlo Caione , Michael Turquette , Stephen Boyd , Rob Herring , Miquel Raynal , Boris Brezillon , Martin Blumenstingl , Yixun Lan , Liang Yang , Jian Hu , Qiufang Dai , Hanjie Lin , Victor Wan , , , , , References: <1542284312-55418-1-git-send-email-jianxin.pan@amlogic.com> From: Jianxin Pan Message-ID: Date: Thu, 29 Nov 2018 09:48:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <1542284312-55418-1-git-send-email-jianxin.pan@amlogic.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.18.29.194] X-ClientProxiedBy: mail-sh2.amlogic.com (10.18.11.6) To mail-sh2.amlogic.com (10.18.11.6) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jerome, I made some modifications as you suggested, could you please take a look? On 2018/11/15 20:18, Jianxin Pan wrote: > This driver will add a MMC clock controller driver support. > The original idea about adding a clock controller is during the > discussion in the NAND driver mainline effort[1]. > > This driver is tested in the S400 board (AXG platform) with NAND driver. > > Changes since v6 [7]: > - add one based support for sclk divier > - alloc sclk in probe for multiple instance > - fix coding styles > > Changes since v5 [6]: > - remove divider ops with .init and use sclk_div instead > - drop CLK_DIVIDER_ROUND_CLOSEST in mux and div > - drop the useless type cast > > Changes since v4 [5]: > - use struct parm in phase delay driver > - remove 0 delay releted part in phase delay driver > - don't rebuild the parent name once again > - add divider ops with .init > > Changes since v3 [4]: > - separate clk-phase-delay driver > - replace clk_get_rate() with clk_hw_get_rate() > - collect Rob's R-Y > - drop 'meson-' prefix from compatible string > > Changes since v2 [3]: > - squash dt-binding clock-id patch > - update license > - fix alignment > - construct a clk register helper() function > > Changes since v1 [2]: > - implement phase clock > - update compatible name > - adjust file name > - divider probe() into small functions, and re-use them > > [1] https://lkml.kernel.org/r/20180628090034.0637a062@xps13 > [2] https://lkml.kernel.org/r/20180703145716.31860-1-yixun.lan@amlogic.com > [3] https://lkml.kernel.org/r/20180710163658.6175-1-yixun.lan@amlogic.com > [4] https://lkml.kernel.org/r/20180712211244.11428-1-yixun.lan@amlogic.com > [5] https://lkml.kernel.org/r/20180809070724.11935-4-yixun.lan@amlogic.com > [6] https://lkml.kernel.org/r/1539839245-13793-1-git-send-email-jianxin.pan@amlogic.com > [7] https://lkml.kernel.org/r/1541089855-19356-1-git-send-email-jianxin.pan@amlogic.com > Yixun Lan (3): > clk: meson: add emmc sub clock phase delay driver > clk: meson: add DT documentation for emmc clock controller > clk: meson: add sub MMC clock controller driver > clk: meson: add one based divider support for sclk divider > > .../devicetree/bindings/clock/amlogic,mmc-clkc.txt | 39 +++ > drivers/clk/meson/Kconfig | 10 + > drivers/clk/meson/Makefile | 3 +- > drivers/clk/meson/clk-phase-delay.c | 64 +++++ > drivers/clk/meson/clkc-audio.h | 1 + > drivers/clk/meson/clkc.h | 13 + > drivers/clk/meson/mmc-clkc.c | 313 +++++++++++++++++++++ > drivers/clk/meson/sclk-div.c | 28 +- > include/dt-bindings/clock/amlogic,mmc-clkc.h | 17 ++ > 9 files changed, 477 insertions(+), 11 deletions(-) > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt > create mode 100644 drivers/clk/meson/clk-phase-delay.c > create mode 100644 drivers/clk/meson/mmc-clkc.c > create mode 100644 include/dt-bindings/clock/amlogic,mmc-clkc.h >