Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1028097ybt; Fri, 19 Jun 2020 22:07:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0+pSGOku3LO6z6+ZDJOK09s/w5OnpqbCtK42DkhiB6Nyz02jw8YShwZSoUuIAweeI3xD2 X-Received: by 2002:a50:ba8b:: with SMTP id x11mr6748216ede.201.1592629659358; Fri, 19 Jun 2020 22:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592629659; cv=none; d=google.com; s=arc-20160816; b=N5PkRfvd3jqt5ebvw5qLK8ztNZa6ylPtqRJiGjFaUb1efZ02w2O5fGHpcA2sKzl+l4 DVdCJ/tK6D+t0QN3FgMW4oh6flvJuP0vUGUYxxKQ/nE3dPHswtzPmQ+ANvSiU34lMWn2 FcEpGKaPDdzxv4IY2+9zf6GEZ1NorqO5PA8Bs1hFzY1OKdYFczLozxaL3+bYrQ2x7IaM YPrt21uT1JhG1qwPtIwq7DxzeHM09vm4sp19FPmSee7FT+G8rvSLMeLRE1ssWFYHMCuD ehWY9CaG9ZOyMn0ImSd8WP2PYoDakYrcI3xkAnLZP/X9ERm/PElIVo6OmH69UHgVtv/9 UH9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=0D6JZ8JJv1a/lkBSX1+FdTETTuYln1rEbfJkzQ3aeIc=; b=zeYSZOkhMq8rCJqAS676pH3z2E8+da/6mc0BjJdT5M69Qw+na8j2K8JLZC+2suNy50 CPKP70V7ktTghx1dG+HiPlwW0L8/ExaUSDsyg5fKHIR5VcgwXgzzbAzK9NwK+2JqA96O pyCeuKINz4hM5k0N63PXSo8+DhWN4FFrGxmEVcsXw8M842+oMh1lFcNdPMe3cVCXEB8f 7cDcgiHiomD6Ct6osv8IufWW04+GoxS1QYnZ4XXbT0N81uOyrY1L7BB31nuDvFj0f1a6 6f9Z2iEo4JQ2JotIVpZhi3IH5ajT8aC8EptHHy7NSOXpbWLVEXToyZnTf+FY/BReY+V3 g22g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dRnvzJHI; 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 dm20si6502382ejc.159.2020.06.19.22.07.17; Fri, 19 Jun 2020 22:07:39 -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=dRnvzJHI; 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 S1732691AbgFTD1w (ORCPT + 99 others); Fri, 19 Jun 2020 23:27:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:56722 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732633AbgFTD1v (ORCPT ); Fri, 19 Jun 2020 23:27:51 -0400 Received: from kernel.org (unknown [104.132.0.74]) (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 EFD4D2311C; Sat, 20 Jun 2020 03:27:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592623671; bh=0D6JZ8JJv1a/lkBSX1+FdTETTuYln1rEbfJkzQ3aeIc=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=dRnvzJHI96sK/XqX8w3zM4LBGiCx16DduRQbOw7gST6lLGy+8pwDiXq81ZFdTFwAo gwGbbDy2ZZtEwRWQnSCgwnNygk5XL8JmnnvXheu4j8JpO+ikEmYz21tW+GPGF7aUGp dG7xlWdsPgc0r13aifchT1eNWBpaJgTYcATK7xm8= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <1591687933-19495-1-git-send-email-Anson.Huang@nxp.com> <1591687933-19495-4-git-send-email-Anson.Huang@nxp.com> Subject: RE: [PATCH V2 3/9] clk: imx: Support building SCU clock driver as module From: Stephen Boyd Cc: dl-linux-imx To: Abel Vesa , Aisheng Dong , Andy Duan , Anson Huang , Daniel Baluta , Leonard Crestez , Peng Fan , Stefan Agner , allison@lohutok.net, arnd@arndb.de, festevam@gmail.com, gregkh@linuxfoundation.org, info@metux.net, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk, mturquette@baylibre.com, oleksandr.suvorov@toradex.com, s.hauer@pengutronix.de, sfr@canb.auug.org.au, shawnguo@kernel.org, tglx@linutronix.de, yuehaibing@huawei.com Date: Fri, 19 Jun 2020 20:27:50 -0700 Message-ID: <159262367025.62212.11651547971712516448@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Aisheng Dong (2020-06-17 18:58:51) > > From: Anson Huang > > > > +obj-$(CONFIG_MXC_CLK_SCU) +=3D mxc-clk-scu.o > > > > > > Like i.MX pinctrl, I'm not sure if it's really necessary to build core > > > libraries as modules. Probably the simplest way is only building > > > platform drivers part as module. And leave those core libraries built= in kernel. > > > This may make the code a bit cleaner. > > > > >=20 > > Will discuss this with Linaro guys about it, previous requirement I rec= eived is all > > SoC specific modules need to be built as module. > >=20 >=20 > Okay. AFAIK it's not conflict. > You still make drivers into modules. > Only difference is for those common libraries part, we don't convert them= into module > Which is less meaningless. > =20 What is the benefit of making the core part of the SoC driver not a module? From the module perspective it should be perfectly fine to make it a module as well, and then depmod will sort out loading modules in the right order. This is for android right?