Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp266355lqt; Mon, 18 Mar 2024 07:23:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXb1VOjyme3Z+I544wP42XL8Tgu3w2MuXTJc4NLOL2yOO8K2u9KhQQeBcT6/0++iSGP+Gpo9u66dBX8iXBT5JzYDPMRAQHdkQKfm647/Q== X-Google-Smtp-Source: AGHT+IE2l1eZRZduxwIiPaq7C9QXr7MZXhCaWMHEVaZbZULof509qkQswzG6w5XcmJNy1s1OegPP X-Received: by 2002:a05:6a00:21d4:b0:6e7:933:9ecf with SMTP id t20-20020a056a0021d400b006e709339ecfmr10169822pfj.16.1710771811534; Mon, 18 Mar 2024 07:23:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710771811; cv=pass; d=google.com; s=arc-20160816; b=z5AWxYAh3XirmkCPwsV7mkJ4PWtLIRi0dR+cX7vB+/qvlMwUOACeDW+cmHjAtHY3iE 9/uLjibRlHNoFY86DRUEEJ4scRJffpXPSGuXI9+//JDE8xIjMjqka3N3MQOkk54vDhdv +v81lkWKG+kY8blhAJgIkmbC1tD0rBvoqn8Ara3H7+9nPGeCJY0UjqqWN7ZVpC7CRMa1 pVd8eyIBWDdOo1jAdjI4KqE85XrBHzHLoyJEvXDw0aWlYiUDnqjjv4JTx1DiydxTc/s8 UDPynTfmEnrQsEtE64en4tFSnBF+JcrXQ3yOsRnSvOW7bQ3uxbAljmxTKSRjf+/BNHab 57bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=8J4xg8pL+JVnZ2d+xdfnq4XTZIIQf2BljKguZHBIW44=; fh=bxFGmvLQ8Z015gVJh4cnL2oG6riypxR0O6WS0OevfcQ=; b=BJE0C+c3gjyubWoeMv2MzXecW3I5/6PxThjBZtT54zQLmQ4x92DreMGJOryloUqU+I rOLDTAzFAPpwDwkMkTGjyV8KUdpn+axIs8tmy/Kg11bQxFtqAjuzPO6hgj12kk/MS1cX DVajw/dHZxy1GqnHrLy6AUTWi/6YGVZ7dbNooOzjq6kKPneLV7K9dQtnGJMbTTQ9N2RA /hyfoCOg+FCiEPHlvL+qxy4bh/KfFaiCRbvlV9GzxdyNs2xDsyOeLc6fkOHvaTsjcVjG Jk3n63RrJ+Q1wOZnAzk87auoWUn7B3gZYa+BPMmgxg3nO9Zkg7Hci76JPmo+xiLPH+Eq iAKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GGxIxtJh; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-106202-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106202-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v14-20020a056a00148e00b006e700c94705si6272996pfu.248.2024.03.18.07.23.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 07:23:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106202-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GGxIxtJh; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-106202-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106202-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2250D2849DE for ; Mon, 18 Mar 2024 14:17:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 129964C62E; Mon, 18 Mar 2024 14:16:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GGxIxtJh" Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A91AE4CB20 for ; Mon, 18 Mar 2024 14:16:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710771418; cv=none; b=S9cKgKg19r//kkzLiiCNmceG45hXjIMrS/p8RNWGBYaR0p4SpsFrEVXbwsiKynqZOiUTNXM+nXabvtjPcWRkD5V7En2CMsJs+CGaN+93c+1Pkleqc6IpKmie2Wo4aQfpB6KJJqQ9go8UOa2fhGLMGOwbfGlERUlxfdLcLxpZC1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710771418; c=relaxed/simple; bh=rOzlSTthASyQgwpZVjNchS4VHdUqgwg+0fthytEsCP0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=F6jJFMTDdP/XnlX4lCsNyggSltSLwCM9G25WYfWxUMaeyijgDCMJKQKitXeR56631L0o9/mmHJW+yAiljjExCx/WKou6wMJQfEv+Y6U29USVP4a4RKJ8r3CRhv+qsKPZCYTh6GHlZevWrH9e46NwGB/hLGEw9mOOXLZ98334hDA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=GGxIxtJh; arc=none smtp.client-ip=209.85.128.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-609f4d8551eso55394167b3.1 for ; Mon, 18 Mar 2024 07:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710771415; x=1711376215; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=8J4xg8pL+JVnZ2d+xdfnq4XTZIIQf2BljKguZHBIW44=; b=GGxIxtJhxPDWVQ6BqtVsdXA8qDfl2tdxBvTZrAlsWiJoSwQj1QiX7IvG9Z0SXsRCtM 2gKL1vNT63/aiK47fPlDHs4LCN0AEe38x2MntPIuz2IjqDyvTtGB2kQiRIzgqdNCKHWb em4gm5AxjJcjZtLNOwqUp4S/haRFXmDGAMYJEo52EiwKyEPL8eOqLv4XBgtA0xpqOgjv P9hhYUH9Pio2NpT6HYKhisOmmX2cBjYKH4UVpw2SX58gt5Zzf09q0Figv1UEqaqx6gZM kQanxyPtZDdrJRZcGo2TKVL5b7UWEcqh8O4Lw0QwwiZ480STAOSaN+29dX4ZnRQylOe5 ZWrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710771415; x=1711376215; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8J4xg8pL+JVnZ2d+xdfnq4XTZIIQf2BljKguZHBIW44=; b=TAYpqvHXv+sU0vQcbQbVS8pTX7ZZW2NVSOSiI4dCfNCWmjUCIAYAeMutTVB1hMN+0+ C6MUQ0NVyVoq7EHrsJ/ZKhSMDr10OC/9OGARlbfczMYt0sxwXmQtRlVV8drlPo/RsnUe aUUZq2KFcwoYfhbgC/kV4qFbWgkogLDkqI7WEy6v12DcMHsl1dvwFtj2v9uHKX2MNjsG AgPozprZHLQ2Z6kUq16sEUzFlVUANzQ1/SRVK+u+VGRKGZZFcmOc6DLU6Hfd7DJSr3ht nsAQFCsEc8eVHPQYXnFo9R571kD6a80JnNNGY/ws/j4idfzkAp5U+yKAFWFopn8CeLJa EHfg== X-Forwarded-Encrypted: i=1; AJvYcCUEbaEwPpZgUM/fn31C2lW2jD+f2d7Wb3+CCPx4QGg6L3D17zezcNaKru4aHpfUSMjHg2E7NTkMuaAsGCA7Zzx8il+HmUr9mvX1tOuZ X-Gm-Message-State: AOJu0YzXMz8zwsPaqrapQph78HhIXcQ9sZ8SILgpAreDXL4QpbrCNVC3 AsroqcVFytL78FQjmrG0//B3nGwiGeuWim389pjdwgtzX3QWEIYS1UtrasnJKJcORTczab8F3k+ ORlpwbGED63x7sjtLiyhYq+h3fyL5yXgpjFAi2Q== X-Received: by 2002:a0d:d614:0:b0:609:e710:3a32 with SMTP id y20-20020a0dd614000000b00609e7103a32mr7648479ywd.12.1710771415485; Mon, 18 Mar 2024 07:16:55 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240318-apss-ipq-pll-cleanup-v1-0-52f795429d5d@gmail.com> <20240318-apss-ipq-pll-cleanup-v1-2-52f795429d5d@gmail.com> In-Reply-To: <20240318-apss-ipq-pll-cleanup-v1-2-52f795429d5d@gmail.com> From: Dmitry Baryshkov Date: Mon, 18 Mar 2024 16:16:44 +0200 Message-ID: Subject: Re: [PATCH 2/5] clk: qcom: apss-ipq-pll: use an 1-D array for Huayra pll register offsets To: Gabor Juhos Cc: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Mon, 18 Mar 2024 at 13:20, Gabor Juhos wrote: > > The 'ipq_pll_offsets' is defined as a two-dimensional array, but it > contains a sole element only so convert it to an one-dimensional > array. Also, rename the variable to better reflect that it is used > for the Huayra PLLs. > > No functional changes. > > Signed-off-by: Gabor Juhos > --- > drivers/clk/qcom/apss-ipq-pll.c | 22 ++++++++++------------ > 1 file changed, 10 insertions(+), 12 deletions(-) > > diff --git a/drivers/clk/qcom/apss-ipq-pll.c b/drivers/clk/qcom/apss-ipq-pll.c > index ed3e6405f99cb..f5c7eaf8db374 100644 > --- a/drivers/clk/qcom/apss-ipq-pll.c > +++ b/drivers/clk/qcom/apss-ipq-pll.c > @@ -13,22 +13,20 @@ > * are different from the one mentioned in the clk-alpha-pll.c, since the > * PLL is specific to APSS, so lets the define the same. > */ > -static const u8 ipq_pll_offsets[][PLL_OFF_MAX_REGS] = { > - [CLK_ALPHA_PLL_TYPE_HUAYRA] = { > - [PLL_OFF_L_VAL] = 0x08, > - [PLL_OFF_ALPHA_VAL] = 0x10, > - [PLL_OFF_USER_CTL] = 0x18, > - [PLL_OFF_CONFIG_CTL] = 0x20, > - [PLL_OFF_CONFIG_CTL_U] = 0x24, > - [PLL_OFF_STATUS] = 0x28, > - [PLL_OFF_TEST_CTL] = 0x30, > - [PLL_OFF_TEST_CTL_U] = 0x34, > - }, > +static const u8 ipq_pll_huayra_regs[PLL_OFF_MAX_REGS] = { > + [PLL_OFF_L_VAL] = 0x08, > + [PLL_OFF_ALPHA_VAL] = 0x10, > + [PLL_OFF_USER_CTL] = 0x18, > + [PLL_OFF_CONFIG_CTL] = 0x20, > + [PLL_OFF_CONFIG_CTL_U] = 0x24, > + [PLL_OFF_STATUS] = 0x28, > + [PLL_OFF_TEST_CTL] = 0x30, > + [PLL_OFF_TEST_CTL_U] = 0x34, > }; Can you please move this to clk_alpha_pll? We can then drop it from clk-cbf-8996.c too. > > static struct clk_alpha_pll ipq_pll_huayra = { > .offset = 0x0, > - .regs = ipq_pll_offsets[CLK_ALPHA_PLL_TYPE_HUAYRA], > + .regs = ipq_pll_huayra_regs, > .flags = SUPPORTS_DYNAMIC_UPDATE, > .clkr = { > .enable_reg = 0x0, > > -- > 2.44.0 > > -- With best wishes Dmitry