From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796320773; b=yhAg/vFTsY+ZVYcV7I0r6OTncgVWOvDs7NUrZMPPmZs6vJE8CUaI02/zfud6j0vN+/Sa SsV7o1VqMQYbfAcFBwkVipLIzJg4Hp5l6XC6isWK4PLtesejYOscYhkiFJtxCq9ovQqhG F3hwzReMrzujNQsaLb4FcpCv/AlfWFlNS9SXrD/6WKWVw2wmB3b/9L/v1UVvWEp/g1/ok eIXd+hPadlBtKSPtm5NbdMzedruw/j/CCe7Ox2p0QI6Bpv/s+Kr0F21g6dogkK5/HNqHV KFwpxAkaDy60YmKWjf2/RdPvDnXgd5DApDNfoAzPFCtVgJII5ya0KQLGtjY92LilTDw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796320773; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=hwUC4+ovqu1V/iMJ9+bfdQ2yNsAUk8Z+oGVBqOdexzY=; b=KSk5Zvf1pSLVIerq92fW6j/5/8V5KHFG/9f3UbBn5CnR5dGBBxUydTDDyyltNg2km+aG LsO8vavYkTBGiITTm1Jf/Oks+Bz0K6LW72xO5k4MTg0ersl59xUzNI7jI8ERc4oHbcguV Z21FYYjko8lkFaiaEuwxw2HX54hZpJs0Gh6ewSEp8jE7hee2Em4smoyIwmweMkiAxPj0F coFUPHMYJjuEBhqAMZjIj8wE9zH14LUZtC1eycTod3L5sAByFMaWpGiXXJjoYQUlkL2fC CN5z4wVZNfN2g6+eB83uqESYsn/SUt2uqeIVwC/ODf47Sk+B5smCVyKgjn8roqd7X7w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass header.d=riscstar.com header.i=@riscstar.com header.a=rsa-sha256 header.s=google header.b=5aTMauJo; arc=none smtp.remote-ip=209.85.210.46 Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59379606A68C for ; Thu, 3 Dec 2026 17:59:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 59379606A68C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=riscstar.com header.i=@riscstar.com header.a=rsa-sha256 header.s=google header.b=5aTMauJo Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-843cf077f10so192604a34.1 for ; Thu, 03 Dec 2026 09:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar.com; s=google; t=1796320772; x=1796925572; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=hwUC4+ovqu1V/iMJ9+bfdQ2yNsAUk8Z+oGVBqOdexzY=; b=5aTMauJoF3Bin7m8DNuGzox/CGZoqxO29j5FTfzPwdHTbFXfEpf4BNl5IVLsa5c3PG UiaskIr7GmjEiF3J/v6Zn0kYbyVCe7ty1N+NQ7wvBDG4vAlbv8P0Vq5qcwcXlmZL8C2y G9szsx1BIFf6+574cAGVJkdp9MmtWs6SO1e1qmSsHzmAwjbspMHPMHqgVV7Fr7NNGf3a fQLyt9S/bHOS+/8Ee4/uM+8sK6BfaZbRfUJ0WzA0oZUdvngbBjwQh1GOXvkRBh1uvKkY 92GljMT6HCb6eoBFrETQDSVC98PpY1bRibwumuMtZ+8PO7OrbDKbV09ywjGksp7s8zrO BOgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796320772; x=1796925572; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=hwUC4+ovqu1V/iMJ9+bfdQ2yNsAUk8Z+oGVBqOdexzY=; b=luUMKupowfNlfHEoZskfXBFWw3cMmBh3jw/TSv3RaT2a5lDaJ/oY69UNa+r8co9PT+ 4f2fQ35JsRyKircCzv5sTdF1EyrYB6YE5omBvFXnQ369gaX+3hC85kmtgmGPf80zwiZm xgLVzKh3hZSHoYot1BA4CXKCz2XvL+IB4dwb+xfWq1ylwqHU5QeYr3ZQcXnQDeOecFRP dOuyOQCfklzc6N5gnVG5AAbaBlhA2vsYT8aD5iw5iiDluadFbghzghig4t1Knq+Lq1Pl xo9wHvPM9ZC0BxhCRtoif266dEpeYtFQBrf2IdczkJ4YZDqckoN1zGUiRx4Jz4iLxAB8 jwxg== X-Forwarded-Encrypted: i=1; AL+hErFVEx04pOMKt+iaYO3AuZkbtw/VNBzSVQtl9kx0lw9nEw687ekxj1M+RWsHlhAGF2nbuknR9cw3iA7uEBU=@vger.kernel.org X-Gm-Message-State: APuU4Z9HkOYmy2P84p76qIWegKMgtTWo1iiixNEzNq/R5q/6r5uxXwli ni+0L6YCN0JsuHu5HyY7GecfNDcHNzCrwx7RbIto57aN4pUz62JuOCDeQjtoVGxuO0I= X-Gm-Gg: AZFdTZfwbVF7Ybz9jJUnjmfeELNQhT9vZcrRT1Y7lz55TMqhmVXWz2Z7nGgbi7t+iz4 CMP2dnwkERcP/gTeg80AvwxywIbZ9s6aGpbAmNFdSMMurcETmx5Qgeji5NESRE+I8C6TcE2m56i pXJHuenyZVDG/ODiIrjWOZUXqJbODwDnOF/lKVv+eK5qp9LWYfjEsfuuHT46VdOQm/G+ds5uh7G +zLumsmAAKuRyXG09O6Ee37582Deu6EatkoovuYxqIGgnMgo9LK2rqgYTLxSjy5LXzkzycZ/rLa nsLuEUdIE9ul13LY6x4sGdfsdkS/WY5TB/ddf3PIZCh0ga8oBaz38WicW8hKk19/ODIP6G5ofBD 5tl2PthbxdWpz+nei3jzlnNC/T8WBiHqxNpwC0wF+xM/oHKeOx78TULxE9z6YstndJD4VK6WLgr G4rEo2h2+IK4QoGQNm91pZbyJQhDVy2Tar0J518JG2jwzK+16OuzQj70axxMhPraZrktKEmrNxe aoCI5gPBGBx9RYwWpzMrD5PYZvFbHHZQiNAGzq9yRPFX9bLC8y2QWd7uGxVXIECqiHC+no8Kk68 2pFmoRkyMzz6Z0ta+ArplCfBdMH0UwM= X-Received: by 2002:a05:6830:2b13:b0:862:b4c2:d173 with SMTP id 46e09a7af769-863159c5830mr43952041a34.31.1796320772308; Thu, 03 Dec 2026 09:59:32 -0800 (PST) Received: from [172.22.22.28] ([76.156.233.211]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-8631690f53dsm32831942a34.19.2026.12.03.09.59.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 09:59:32 -0800 (PST) Message-ID: Date: Thu, 3 Dec 2026 11:59:30 -0600 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/4] clk: toshiba: introduce a TC9564 clock driver To: Jerome Brunet Cc: sboyd@kernel.org, bmasney+clk@redhat.com, jbrunet+clk@baylibre.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, p.zabel@pengutronix.de, andersson@kernel.org, konradybcio@kernel.org, abelvesa@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, daniel@riscstar.com, mohd.anwar@oss.qualcomm.com, lorenzo.bianconi@oss.qualcomm.com, fabrice.gasnier@foss.st.com, alexandre.torgue@foss.st.com, marex@nabladev.com, changhuang.liang@starfivetech.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261201160810.2422466-1-elder@riscstar.com> <20261201160810.2422466-3-elder@riscstar.com> <179630594987.3767986.3213089189763552642.b4-review@b4> Content-Language: en-US From: Alex Elder In-Reply-To: <179630594987.3767986.3213089189763552642.b4-review@b4> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/3/26 7:52 AM, Jerome Brunet wrote: >> +static const struct fixed_init fixed_init[] = { >> + [TC9564_CLK_312_5M] = { >> + .name = "312.5MHz", >> + .div = 4, >> + }, >> + [TC9564_CLK_250M] = { >> + .name = "250MHz", >> + .div = 5, >> + }, >> + [TC9564_CLK_125M] = { >> + .name = "125MHz", >> + .div = 10, >> + }, >> + [TC9564_CLK_62_5M] = { >> + .name = "62.5MHz", >> + .div = 20, > I've already commented on way to make a onecell here > If you need to iterate per type, keep those table > just add > .id = > > and fill the right index of the provider table with it Each fixed clock has a unique rate. The gate clocks, each of which has a fixed clock as parent, looks up its parent's clk_hw pointer by scanning the registered fixed clocks and finding the one that has the rate they want. I therefore no longer define special IDs for the fixed clocks (like TC9564_CLK_250M). The fixed clock initialization array is not indexed, and entries do not need to specify an ID. If we someday get a clock tree that indicates the clocks are derived another way, this can be change. -Alex