Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 907CCC77B72 for ; Mon, 17 Apr 2023 20:33:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9CA0D85EA1; Mon, 17 Apr 2023 22:33:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=mailbox.org header.i=@mailbox.org header.b="uL6AuglX"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="uwzfgHKQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 05C1E86020; Mon, 17 Apr 2023 22:33:24 +0200 (CEST) Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BE34E85EA1 for ; Mon, 17 Apr 2023 22:33:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@mailbox.org Received: from smtp2.mailbox.org (unknown [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4Q0dzj3n7bz9sn5; Mon, 17 Apr 2023 22:33:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1681763601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MPFf1W8wwmbC1V4Oa79Petdo1AYOhHsOGo78Mg9SD98=; b=uL6AuglX/n8DZeHt7xRcic+qcsjzZ4MNtDvdjqdmI0x1zQzOsIvqB0hRLa/TQDtIhSj5n6 uJerxRtBD+PrV9bON6WSzULxjTEDguxXKjX7hFhqYmUntTEvmycoS1zM8sitdDnRy79geM 9cZwrPeVLAg23DLX5AGNJC3UvLRjcQLASF8M+NUeaV99dPpb+HjlP4iaks9fmSM5AvoHm8 vZaJVXJqlWUNjJp3ddOi/oGLTK/QyYuilSuizQ9JRf68VcT7ceLVuB1hsoR1yyrF4Os4tW riHsXBwVU2+FOGhHoTFFemjieHGUPInJuVU1tmtIJsurDDjcOG1JDqgJ+XoMBw== Message-ID: <0402a24c-08ed-5c3e-85b2-aa81d3de99c6@mailbox.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1681763599; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MPFf1W8wwmbC1V4Oa79Petdo1AYOhHsOGo78Mg9SD98=; b=uwzfgHKQ/LErmwy+c4XZybZwXT8+zMmPgViV+aiZUtWWSFtsucdMT2Pv6FXbtSwPb9ft4Q LoIKmFZNJGkiYAEq1JhCDSkoysen3RJ0sVLlhZ0Tvzs6PTot7YNNiW1Hi/F7Kju34P9Ump gUQIWCor4QAbu+TzEsrSHGZ91bOX7HOOIz1eyhq3poe/KQk9NQYl7Bj7HbicgjSNLcwBX0 MJwC4mv6uWZ/Fsr9dCFGQCzTmgUBBpRla4SaqEJmcL3egV53lZIJYyKGZgqFkHnsCp/uC/ 2F0edD9g1x7W41XiCJ2+Lo7+5RvGUqMYkQ0SOI49VcYraMvfS2qxRFJ4zzx1/A== Date: Mon, 17 Apr 2023 22:33:18 +0200 MIME-Version: 1.0 Subject: Re: [PATCH v4 02/10] clk: renesas: prepare for non-RCAR clock drivers Content-Language: en-US To: Ralph Siemsen Cc: u-boot@lists.denx.de, Sean Anderson , Hai Pham , Lukasz Majewski , Marek Vasut References: <20230308202653.1926303-1-ralph.siemsen@linaro.org> <20230308202653.1926303-3-ralph.siemsen@linaro.org> <8dc5cc01-c451-cf1b-f90f-f5d269adbc4d@mailbox.org> <20230417182228.GA642444@maple.netwinder.org> From: Marek Vasut In-Reply-To: <20230417182228.GA642444@maple.netwinder.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-MBO-RS-META: i94wjafufpjgj4uys5bebtip9wb8nudu X-MBO-RS-ID: 8cb979348dab784298b X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 4/17/23 20:22, Ralph Siemsen wrote: > Hi Marek, > > On Mon, Apr 17, 2023 at 07:02:34PM +0200, Marek Vasut wrote: >> On 3/8/23 21:26, Ralph Siemsen wrote: >>> diff --git a/drivers/clk/renesas/Makefile b/drivers/clk/renesas/Makefile >>> index 8f82a7aa3e..a0d8c10bdb 100644 >>> --- a/drivers/clk/renesas/Makefile >>> +++ b/drivers/clk/renesas/Makefile >>> @@ -1,6 +1,5 @@ >>> -obj-$(CONFIG_CLK_RENESAS) += renesas-cpg-mssr.o >>>  obj-$(CONFIG_CLK_RCAR_CPG_LIB) += rcar-cpg-lib.o >>> -obj-$(CONFIG_CLK_RCAR_GEN2) += clk-rcar-gen2.o >>> +obj-$(CONFIG_CLK_RCAR_GEN2) += clk-rcar-gen2.o renesas-cpg-mssr.o >> >> Why not move the renesas-cpg-mssr.o into >> obj-$(CONFIG_CLK_RCAR_CPG_LIB) line instead ? > > I think this would break the build for gen2 devices, because they make > calls to CPG functions (eg. renesas_clk_endisable from clk-rcar-gen2.c), > however Kconfig only selects CPG lib for gen3. Good point > Perhaps we could change Kconfig to select CPG also for gen2. I can make > this patch, but how to test that this does not introduce any new > problems?  Might there be an autobuilder for R-Car somewhere? You could introduce CONFIG_CLK_RCAR Kconfig symbol and use that for renesas-cpg-mssr.o . Would that work ?