From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01B4D1CAA6E for ; Mon, 13 Jan 2025 13:48:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736776133; cv=none; b=nzZbzh1sOODzszuLsTFx8qwOafjCdgjL1+SaxKw74Xx/dRCWxogA5xTw+V+OF76eH3BTRDrOWPb/eeiIuqeSwZ6T2WgucgwF1d8+dj/pyUy1hPBvW00wP24AfkCcbvMxZB3EBpdYUZ/XGy0MmYcG7OXxrPZfLebxEE8XRrfD4mI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736776133; c=relaxed/simple; bh=f1KUTv5GOu7bwyhcnGos55stJaX9VmTq9wlMzJFKcmM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RVHoNbPB12ZbpW2LK4wX6Oflk6hH+e+kxT+sLDqzQEi7eatCudz3URhHEHmFRR8Ry8RYnlTNjCT+N9iF2kP1rlyqFNAqp0TdNr+uruZPek3mn2KzS0lPBcaYFP/JpvH+x++Lz1DvkMZcLZKO7nymdOB3prqKMyh2jR0EysF5MyQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tXKnz-0003hG-5W; Mon, 13 Jan 2025 14:48:35 +0100 Message-ID: Date: Mon, 13 Jan 2025 14:48:33 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 6/6] clk: imx8mp: inform CCF of maximum frequency of clocks To: Stephen Boyd , Abel Vesa , Abel Vesa , Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Marek Vasut , Michael Turquette , Peng Fan , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Cc: linux-clk@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20250106-imx8m-clk-v2-0-6aaeadac65fe@pengutronix.de> <20250106-imx8m-clk-v2-6-6aaeadac65fe@pengutronix.de> <104eed995f349b123e633862f68de966.sboyd@kernel.org> Content-Language: en-US From: Ahmad Fatoum In-Reply-To: <104eed995f349b123e633862f68de966.sboyd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Hello Stephen, On 07.01.25 00:42, Stephen Boyd wrote: > Quoting Ahmad Fatoum (2025-01-06 06:21:47) >> diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c >> index 516dbd170c8a356f293621b371b9ef9b9bec90a4..3b06990b73adcb2e4807f91a8983ad35068572a7 100644 >> --- a/drivers/clk/imx/clk-imx8mp.c >> +++ b/drivers/clk/imx/clk-imx8mp.c >> @@ -405,6 +406,145 @@ static const char * const imx8mp_clkout_sels[] = {"audio_pll1_out", "audio_pll2_ >> static struct clk_hw **hws; >> static struct clk_hw_onecell_data *clk_hw_data; >> >> +struct imx8mp_clock_constraints { >> + int clkid; > > Is it signed instead of unsigned because the terminal element of the > array has -1 as a clkid? And because clkid 0 is a valid one? I did use -1 originally, but then switched to zero as applying constraints on IMX8MP_CLK_DUMMY doesn't make sense anyway. > Please remove the comma because nothing can come after this and if > someone were to add something after they would get a compilation error. Commas removed and clkid made unsigned in v3. Thanks, Ahmad -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |