Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752577AbbBFKbH (ORCPT ); Fri, 6 Feb 2015 05:31:07 -0500 Received: from metis.ext.pengutronix.de ([92.198.50.35]:33837 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751044AbbBFKbE (ORCPT ); Fri, 6 Feb 2015 05:31:04 -0500 Date: Fri, 6 Feb 2015 11:30:33 +0100 From: Sascha Hauer To: Matthias Brugger Cc: Henry Chen , Rob Herring , Mike Turquette , srv_heupstream , Sascha Hauer , James Liao , huang eddie , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Catalin Marinas , Vladimir Murzin , Ashwin Chaugule , "Joe.C" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , linux-mediatek@lists.infradead.org Subject: Re: [PATCH v4 0/7] clk: Add common clock support for Mediatek MT8135 and MT8173. Message-ID: <20150206103033.GS18908@pengutronix.de> References: <1422594798-13375-1-git-send-email-henryc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 11:18:00 up 113 days, 21:31, 159 users, load average: 0.04, 0.11, 0.12 User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2781 Lines: 54 On Thu, Feb 05, 2015 at 06:24:54PM +0100, Matthias Brugger wrote: > Hi Henry, > > 2015-01-30 6:13 GMT+01:00 Henry Chen : > > This patchset contains the initial common clock support for Mediatek SoCs. > > Mediatek SoC's clock architecture comprises of various PLLs, dividers, muxes and clock gates. > > > > This patchset also contains a basic clock support for Mediatek MT8135 and MT8173. > > > > This driver is based on 3.19-rc1 + MT8135 and MT8173 basic support. > > > > Changes in v2: > > - Re-ordered patchset. Fold include/dt-bindings and DT document in 1st patch. > > > > Changes in v3: > > - Rebase to 3.19-rc1. > > - Refine code. Remove unneed functions, debug logs and comments, and fine tune error logs. > > > > Changes in v4: > > - Support MT8173 platform. > > - Re-ordered patchset. driver/clk/Makefile in 2nd patch. > > - Extract the common part definition(mtk_gate/mtk_pll/mtk_mux) from clk-mt8135.c/clk-mt8173.c to clk-mtk.c. > > - Refine code. Rmove unnessacary debug information and unsed defines, add prefix "mtk_" for static functions. > > - Remove flag CLK_IGNORE_UNUSED and set flag CLK_SET_RATE_PARENT on gate/mux/fixed-factor. > > - Use spin_lock_irqsave(&clk_ops_lock, flags) instead of mtk_clk_lock. > > - Example above include a node for the clock controller itself, followed by the i2c controller example above. > > You use pericfg and infracfg which will be used by other drivers as > well. So please use syscon for this driver. As it is no longer a > platform device it is present early in boot. > The changes should look something like the patch beneath. Please > beware that it does only show the general concept and may not even > compile. I asked Sascha to implement the reset controller as part of > the clk driver, as the registers addresses are mixed between both, > clock and reset controller. Please coordinate with him to get them > integrated (even as one series or as incremental series). I don't really understand the "as part of the clk driver part". I now have replaced the devm_regmap_init_mmio with syscon_node_to_regmap in the pericfg / infracfg drivers. Is that all that you want or do you want me to move the source code to drivers/clk/mediatek? Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/