Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp748729pxa; Fri, 21 Aug 2020 21:40:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBmr0bX9iOnIL+XWhN8gOqQYZ3W/gEfuh7ntGe/HtwCGXdUxKPvMOvzVGl2Zyy2JxPbRHN X-Received: by 2002:a17:906:36d7:: with SMTP id b23mr5891039ejc.149.1598071210873; Fri, 21 Aug 2020 21:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598071210; cv=none; d=google.com; s=arc-20160816; b=PLuqrZTefan0llUZ7Bly60ucjWOW/O8aYnuaQYmp0x0yb1M1vaJGwSPSEO4Wy/vXCj VE4CnSbjnW/tEsgDTUhZeeiZRlt0JPMXQeoqKlK1Mv2kFOifS+Xy3d/Lm7pGZvTZ5x48 HfgLTACcIS+tFtI+3mIgmBXe3wU1kQu2aZfPmznZi8+lfh1D6a961nNGzoTUU8A4cIZt U/SNiPuU3O2L4n1+Ezw3MFeT4QjH3rONHhpE61++As26/5p5Thw7d3EeFvefsVMoRoEf bmHgWe6Obyd1DNG1GLOSGDZCk/+iaAKrz9t/9njB84Ib6IoIchJPoUiUUfkRkjqbx+Mr ty/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mFzBDmzL5oDfi9sBa07OuFeiAWfW5mBu949tnYvixzg=; b=Qr7k6bO7DYTQqQPCbkaDfeAC3XKNr34zmCDiPnnQPo8f6CE2vVvdmil+799BvL++ar D9qpJHjOo4q1+x1U+zLoPrqW4Z/X8i2xO/blAdMBzUPxSSgnUvG0EytH2rBVscir3Ya2 MpVDcA8qEBqRDlqygG3n72Szes0/sW5ACHEWGtAqcVzEA10LhDx9RZNPNM05ghOBIH1g Vqyo7Zr4Cm1m0vtsa4vOWdSysAaFNNzLoLGH8EuwZQjbrRB7oX8dq/L1/tY/Cywa2SQ1 yY7VFH0XuHMt6nxFP9ncIJ5ShIIy5RYrz9uIXJyaXy/bBxCkPesTV1IkyOf0jiLd5eoi alPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ivXyupBi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk25si2652484ejb.404.2020.08.21.21.39.46; Fri, 21 Aug 2020 21:40:10 -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=ivXyupBi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725924AbgHVEjD (ORCPT + 99 others); Sat, 22 Aug 2020 00:39:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:38846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbgHVEjD (ORCPT ); Sat, 22 Aug 2020 00:39:03 -0400 Received: from dragon (unknown [80.251.214.228]) (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 9EB9420720; Sat, 22 Aug 2020 04:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598071142; bh=u0ARyHoe/q0GF5AUrK5En0djwtUiP/IUJLs7gd5smHw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ivXyupBicmYnhkyJ4QjTa+EJuNcACyQJ1wc8vV1N/R3vm0AT9JaJ2uC+5wegLetxd MFFhEmJfiNIDpLwsIHJWI13VZX8fmIMvYHT3gtiWw4TlT/XiFFTVjYDYnTzH0qGi7k 7Phu/exZ3JiYgy3gf4igNt4dr1dX2CuX54rkW7n0= Date: Sat, 22 Aug 2020 12:38:48 +0800 From: Shawn Guo To: Anson Huang Cc: mturquette@baylibre.com, sboyd@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, aisheng.dong@nxp.com, arnd@arndb.de, peng.fan@nxp.com, abel.vesa@nxp.com, fugang.duan@nxp.com, daniel.baluta@nxp.com, yuehaibing@huawei.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linux-imx@nxp.com Subject: Re: [PATCH V9 0/6] Support building i.MX ARMv8 platforms clock driver as module Message-ID: <20200822043847.GE27575@dragon> References: <1596072174-16358-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1596072174-16358-1-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 30, 2020 at 09:22:48AM +0800, Anson Huang wrote: > Nowdays, there are more and more requirements of building SoC specific drivers as > modules, such as Android GKI (generic kernel image), this patch set supports building > i.MX ARMv8 SoCs clock drivers as modules, > > The CLK_IMXxxx is introduced for i.MX ARMv7 platforms in order to make the build options > aligned, the reason why i.MX ARMv7 platforms clock driver do NOT support module build > and COMPILE_TEST is because, some drivers like i.MX GPT timer driver depends on clock > driver to be ready before it, GPT driver uses TIMER_OF_DECLARE(), while i.MX6/7 clock > drivers use CLK_OF_DECLARE(), and GPT driver is critical for i.MX6/7 platforms kernel > boot up, so GPT driver needs to be changed to support loadable clock driver first, > then the i.MX6/7 clock drivers can support loadable module, this will be done later. > > Changes since V8: > - explicitly include linux/bits.h in patch #1. > > Anson Huang (6): > clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 > bits > clk: composite: Export clk_hw_register_composite() > clk: imx: Support building i.MX common clock driver as module > clk: imx: Add clock configuration for ARMv7 platforms > clk: imx8m: Support module build > clk: imx8qxp: Support building i.MX8QXP clock driver as module Applied all, thanks.