Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp564313lqt; Mon, 18 Mar 2024 17:10:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlT1yFiHQ7Rs0IB7RF4wCmugSDpyfA+nZpKDK+5kQY13XhLeF45bBqYwe12rKhMzd3LxCQxW933ly1d89s5Trn7bPFDThS96wzt9TUrA== X-Google-Smtp-Source: AGHT+IHFpqLa6f7Pf0IGRedaRm3LpnMQvparHs58Rkx3rTprHoTlxpFA1C+8o2rbZWdIlUbA6+1c X-Received: by 2002:a05:6808:2396:b0:3c3:8b7d:1571 with SMTP id bp22-20020a056808239600b003c38b7d1571mr3233224oib.33.1710807000389; Mon, 18 Mar 2024 17:10:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710807000; cv=pass; d=google.com; s=arc-20160816; b=Q+AdzhQxk9kp1WCHxcnRPySrOrPRG5dJmTK3NYpCaX7xP/GJ5tmbobdvvElO/epZBg XzT/jL6Eyo0a/xXfBU+jVGxCLptad1PyUiaHchHFl5TcnnK4BFqSNxdC2pMjgbb7wyMQ OwKS7WWUKvnC6vgjSB5Gqr6arE6ynLoEu0sMeJ0VZKiZ8Ndocd/6vmH2iFe2rFRu9SKH C0utMgCd8VTlhfVHjBl0udRANrHVVUy2vQJtokQIsHBmn8PPDzdGY5kbOu2v366hdAKu 7yLPM7nSHhy39+BruBnNDqro3hufDVDqf2iV8OJ86orb+H799mHSq6L+GrxUE/U6/8c2 +YLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=fys+S9pk0Mj+NPz2xMHtozxNN5zajv+q8g6ODVq+MHY=; fh=uzCMaLH7AtmzIDIuLkLLDjfRBGRT4r8+v+WOqadkLmo=; b=vz/Tl8RQwW7jpNlNwHADd3Bhc0drBfzS9/v4h4bZDuTGPTBtJkp7/+3CI8NdI0shIv ah0C1jWPez73zrmBMQKshMQtOMl29hI0tdnlw4du0fq5lttMxkDAS+19tVd/U95fALIg 5nvUq/1rpSvQx8WLsuDTPodpZw5Gnv43kkLvNYIHzf8Mzb7Kn4fukWdv0m5Kh4vnhLnd Ne8u1/KIPOc8oxb7bwS3RQ52tvSwb+88YTtvIX6fp78O1nZwrBKi1X2LbiltAwGJkPus o7H/eoALHOhCK9DUwRTHatEd0p6+CUuXgVRW46BcVzMTjxcrhhnRc6LVo505NallhImN 3TnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NhJ45GCc; 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-106845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id wh12-20020a05620a56cc00b00789ffa4a3a2si3373576qkn.214.2024.03.18.17.10.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 17:10:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NhJ45GCc; 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-106845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106845-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0A5AF1C21775 for ; Tue, 19 Mar 2024 00:10:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72C4A80B; Tue, 19 Mar 2024 00:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NhJ45GCc" Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (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 0EEE23D69 for ; Tue, 19 Mar 2024 00:09:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710806990; cv=none; b=s5QkMtOk41qCl64p8iRr+fdWEmTRRrt/v7K+pSdb4OQi9P4us4VazAUyScdP8XocPxmVOe5tdiJbBX906BR9U420rqLn9Bq7zizlzgADWcA3LtCxQJ5Z/k6bEld5TMQx5zZ3YCnGSHXjmMyi1rY/+2V0EUdxhwLeirFQnjTVCg4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710806990; c=relaxed/simple; bh=ZkryvYHfhOSYdw2tF4GlFSpiTUyA8Rs2/YBQ7EUbLn0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Y0Dzij1/khoLAsVZtNw+rYgonGRPz2i+ldg47HNtnGG/4D7bPKYwir/AOghDNVsG6yY/LOVmx6erO4LY0n3Hb4IZDn2GJfnX3lDQYLFBQeI3YSkpmidqG/RJoF8O3aWKmcqIMzOjy8S4+3atwvI0FXqnneUwaVdJ4hZP1PZ5mZ4= 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=NhJ45GCc; arc=none smtp.client-ip=209.85.128.182 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-f182.google.com with SMTP id 00721157ae682-60a5a11b59dso55206037b3.0 for ; Mon, 18 Mar 2024 17:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710806988; x=1711411788; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fys+S9pk0Mj+NPz2xMHtozxNN5zajv+q8g6ODVq+MHY=; b=NhJ45GCcjPZ+Y3/GEqpvClbS62XxzfUNAIbW506fVaGdSJnGtnizOJsz3tMqJ2SaTu EjN/YJToRebs3GWpEsxX1vwuNsTC6VZ+o5H1WWO6HqSQPpLF0QqihUbIkwueT9tTCc/2 6puFWX8tCRqFaK3VjgFvyNRt9YGrxi9YpObtQjQd8iK63EhVwK2moKHXz5wJ2IbsyKKS fmWdfrAngpmpJluiDlt0OHolwllk5kGM+CtipzSdbDhOswYMX1/buVdefBnoVT7MLqK/ Nm87ilgJWW6JDu2F8ntKi9SU3ogyqtzRCfKx0hiEtrxvmssX7TzejdUEw0FO+m3d/JZX H5lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710806988; x=1711411788; h=content-transfer-encoding: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=fys+S9pk0Mj+NPz2xMHtozxNN5zajv+q8g6ODVq+MHY=; b=UeOTQ/zOAx+UHJ5+8kKfAq4OEWHGY9+XCpyYDew4PeCIQ62/VqfWLDaVSJvexGqy6G mrUpbEgqisjJShaSsOSjlcv+afNLH+7uKqsqr2B1Ld1Up5YReGaSXipDB5aKI2ywfPs1 XkeyxZndJCLZggFWeaxsgglZuxTT9VYOqRPTkzk5xO7sfVUcrDuLjpwgWFH70jtUBTCS JGsGVFqL7M5br3PifyngBMeaNeVzoFFYxQswjX8EPT1JVdSeN1thVCXX1TDI/t9aAg+9 jZdPgQyVWi5trPUgnjwKj1HECY6I+B/fjt4MngVEriFLW34aICyYcPw0asH8XTBR23BY frKA== X-Forwarded-Encrypted: i=1; AJvYcCUozGvCx5HHN2vS47m31/Eyy99aDfQYDIP+hCZVZ7YMDWPTS0iv2hfZjAFFN+RyMFkXyrEHDjols8u9PLsfstZ0263gqfHvmNyxhnKi X-Gm-Message-State: AOJu0YximotRHUg/as/iBB9PBLkr61K1PWlcNpLcGnIMoQznIPw1po8g Z9tvU+cg53fWbHxaL/y7skuPMnn85WvZ5HvepdRQTdTUPn3LCJC21N8MHTym8TDBVdf834egpC4 18KnJa1FAmh20QSdJGknWcOov+4leQc0K52Ft7w== X-Received: by 2002:a81:8147:0:b0:610:caab:bf50 with SMTP id r68-20020a818147000000b00610caabbf50mr5157049ywf.37.1710806988056; Mon, 18 Mar 2024 17:09:48 -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> <09c91419-8bce-49dc-86d1-3ed1b9f28ee6@gmail.com> In-Reply-To: <09c91419-8bce-49dc-86d1-3ed1b9f28ee6@gmail.com> From: Dmitry Baryshkov Date: Tue, 19 Mar 2024 02:09:36 +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" Content-Transfer-Encoding: quoted-printable On Mon, 18 Mar 2024 at 23:23, Gabor Juhos wrote: > > 2024. 03. 18. 15:16 keltez=C3=A9ssel, Dmitry Baryshkov =C3=ADrta: > > ... > > >> +static const u8 ipq_pll_huayra_regs[PLL_OFF_MAX_REGS] =3D { > >> + [PLL_OFF_L_VAL] =3D 0x08, > >> + [PLL_OFF_ALPHA_VAL] =3D 0x10, > >> + [PLL_OFF_USER_CTL] =3D 0x18, > >> + [PLL_OFF_CONFIG_CTL] =3D 0x20, > >> + [PLL_OFF_CONFIG_CTL_U] =3D 0x24, > >> + [PLL_OFF_STATUS] =3D 0x28, > >> + [PLL_OFF_TEST_CTL] =3D 0x30, > >> + [PLL_OFF_TEST_CTL_U] =3D 0x34, > >> }; > > > > Can you please move this to clk_alpha_pll? We can then drop it from > > clk-cbf-8996.c too. > > Sure, I can do that. By any chance, do you have a suggestion for the name= of the > new enum value to be used in the clk_alpha_pll_regs array? > > CLK_ALPHA_PLL_TYPE_HUAYRA_IPQ seems too generic, and it would be a bit > misleading using that for MSM8996 CBF. > > CLK_ALPHA_PLL_TYPE_HUAYRA_IPQ6018_A53 is quite long and it is also mislea= ding. > > Maybe we could use CLK_ALPHA_PLL_TYPE_IPQ6018_A53 which is short and uniq= ue > enough and we could add an alias for that like CLK_ALPHA_PLL_TYPE_MSM8996= _CBF or > something similar. HUAYRA_APSS ? > > Regards, > Gabor > --=20 With best wishes Dmitry