Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2328673lqt; Mon, 22 Apr 2024 07:56:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3ZVfNKFbZs1+MUjGYtyZKa+341ifN1S6FE4vB249oRrL/ZYL2d78rOq1LmFC6VGpH05oli04pqR6ubW0ovJNs0mKE/V6Rm2X7ZNCFqQ== X-Google-Smtp-Source: AGHT+IHPeh7FPsx699U4w3pwNdXk2mByvL+odfDj5PX3QoRdTJ4cwsk+rZ/G7wp61g3CctEfANWg X-Received: by 2002:a2e:a98b:0:b0:2d8:5859:ee7 with SMTP id x11-20020a2ea98b000000b002d858590ee7mr6812441ljq.49.1713797777904; Mon, 22 Apr 2024 07:56:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713797777; cv=pass; d=google.com; s=arc-20160816; b=qmucRMeP1j/5p7cxAtlfGhEeubbaZQkUPhgA1+NZ5MfIPXjNLRyfDeu+HEBk7tDgsw WdGX4Mmphu+nW73VduP0AHRlicWOZ5NonOuHiRN9pGITn6NAQZKgsYEOg4q3e9btJn67 RhWF9etYWHjuHi4fJhlWpNdv8PYUkIngvZyWq0ldqTVx3I3Ym0rA1x0KCR4wPc6510vW YDNeGsc8dQau9PPAPYDutezzpUeHXJasqioyMBuwnMAI/T5sTlBCw7sBfRPt4keM7X9N iTbZkcmwphqksIpjVy4ZsE5dnr+l7nJPtkLTT6lFR6pyVDi9SfgjqKKB0xv4GqwIh96k lZ8w== 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=NTOg8DkAW/3dkpxikcsk436y8h1eZe1SfUF5lmW3ku0=; fh=Fw9KTFdHVpXrfShfuV7rU67W/pL1FNXU3ne+iCzZBs8=; b=cW5t9tjCrI7X8QRwjNbbs/0fFNyo+XnPQ+3YnQkIIUiFVmg3SH6U5Bb9omcXirOB6c AJUXuScn076u2+UQU1BaPekUaRa9DFkJnhIHtC+Mmf+ovAIUziqMZwnQAKLezOzJaHMG +7fXW+57xajyTFCOdBPourbJQpjTWc8BxILewsyno9yV+qm/NIcjpFEy3zTbbMjEOjOB rqk3huqCjUf1UOk9/bpaBntAkeJmjInJl4EYhslz3iD+lySrNEpAzfLA+9aUqne5z50H 8M/pm7vAo6o0fW+7jmpwf9s56A2b/5R8uvt//cLSSIYix+qSu8xZH6Zzv1STIvc7UKyg eJSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4HjiUXU; 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-153586-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153586-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i10-20020a05640200ca00b0056e0e0ce7fasi5750537edu.342.2024.04.22.07.56.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 07:56:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153586-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4HjiUXU; 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-153586-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153586-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 987471F21FE4 for ; Mon, 22 Apr 2024 14:56:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C943D152501; Mon, 22 Apr 2024 14:56:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="U4HjiUXU" Received: from mail-oa1-f54.google.com (mail-oa1-f54.google.com [209.85.160.54]) (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 7E9FA152186 for ; Mon, 22 Apr 2024 14:56:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713797768; cv=none; b=Ld8c0b7C2EC5wD6Rdnid2W6foxqyfaCHWVa77+HjfEtEmpjtL0hAXuDgGIpRv8ANfk5wOaXjl8mgsRyVG3P1VHjMmzVb3np6HKtH+/9zvWgEIPG6i9jllb35Yz7IZqoH36DR868rD4RO2Qj3A6YWVqqFJ9VmkKTlFOIC/+HyikQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713797768; c=relaxed/simple; bh=imsekkblo55XmgjAaWRpZaTVc+ZBiFNXzC9IucNVpbg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NJFGvVX1oubCw2/S/sLMPAd2IuuH5CIVZngl7DlyXKN3jHxe9vdavSQUgnyBnUjmVg2ybvKIJpCXvYQOwLAwypWZb46KGV6/BvxT3rTqCp0lbRrgVnxy6wKx50xJEhxbCAMOYwkpw/yOKIdjdEQ8IK34HEcoILGtuAs9B2/RExc= 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=U4HjiUXU; arc=none smtp.client-ip=209.85.160.54 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-oa1-f54.google.com with SMTP id 586e51a60fabf-22edbef3b4eso1054189fac.3 for ; Mon, 22 Apr 2024 07:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713797765; x=1714402565; 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=NTOg8DkAW/3dkpxikcsk436y8h1eZe1SfUF5lmW3ku0=; b=U4HjiUXUk7RxfDBJM02w61BKjrevJJkbVQ4n308mTss7ZrXCgsfziCIwLKxShfByoo hWFUPwgoHrnn3+txvd+/dIRdrUyblWZBxXoIwQ7UOUEt5AXEp3fu6NW1YR9Euv3EQx5h I1rveApyv3uw4B8KPrC6Jknj+jJkMsDnxzmLngWhjRpXz52q9hKfhn6LfI2E+KADBrKI r+uDdkRm9scQAFyNYr+06lPE2DWOuUWWkQvldJVTr7zvmAQ4ictOwHFJ3K+eaL8sVheP 2p/ckccpkJIi/sQewygszj8wg3710ivlA+IL92IGQ0r+8UQMLXtriqxQHG6s6r8iYUjm 58zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713797765; x=1714402565; 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=NTOg8DkAW/3dkpxikcsk436y8h1eZe1SfUF5lmW3ku0=; b=bJBMrEzZdzDXmJAEE3L2nHmJKoOV7qrq8yceL4x/ZD5ph8j988f6T0KFlVOe8xbv8f W0Y9fe2cR4Nhea7o4c/TmPOfyccw5AGu3k64UfbOu+t4lZeN+KaCW+sxHyYMkyW1aZ2I BbGIYFC4Rh0PWybdo/uCgSbfH9QT2CfdyLJMS7Xrkdex2JFJy2IQEM1h7iqSIuSKfWvx mcQ0ohW6JTkSlij4ft1zKf9u3W6W0DefhlMI7d7Zhn7c5R7iA9+031IGhc+fjjpfkSFO UXa3EsZlu08wlXh0Te6ffdE0dXdJu3mU04v+7SAPi2STKtcCQXcN5KyFbtDKwj8kj7gn EocA== X-Forwarded-Encrypted: i=1; AJvYcCWj8awL8mzgyUNVJBbHtILcmBGK+OEnDbnbzUtiN4PE2e5SKdU/ZhnDzIQ9018HVl3b3Xg3EpdeiadHPTvOlXANY3WFBIpn0McSm8kU X-Gm-Message-State: AOJu0YxbJANGaC4x9lSfrfffX60BmLe8NEEu+9X/p7ns6vI+9+c0zLMm jSJljQaagaOoBkMnbWgSlfeuE+vgaHUIxIyZxaJ2iGa8NCF1d7JzD2GAN4/jfcN70X7xzN5vUAV 8/yUmPjqUCjbT0hGC6Lj0Tw68zTFiPV4XK9QJmw== X-Received: by 2002:a05:6870:1318:b0:21f:aba0:772d with SMTP id 24-20020a056870131800b0021faba0772dmr10853360oab.39.1713797765495; Mon, 22 Apr 2024 07:56:05 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240404122559.898930-1-peter.griffin@linaro.org> <20240404122559.898930-9-peter.griffin@linaro.org> <61f427ab3793def23d80d94457ff1568cae5ee11.camel@linaro.org> In-Reply-To: <61f427ab3793def23d80d94457ff1568cae5ee11.camel@linaro.org> From: Peter Griffin Date: Mon, 22 Apr 2024 15:55:54 +0100 Message-ID: Subject: Re: [PATCH 08/17] clk: samsung: gs101: add support for cmu_hsi2 To: =?UTF-8?Q?Andr=C3=A9_Draszik?= Cc: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, vkoul@kernel.org, kishon@kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, s.nawrocki@samsung.com, cw00.choi@samsung.com, jejb@linux.ibm.com, martin.petersen@oracle.com, chanho61.park@samsung.com, ebiggers@kernel.org, linux-scsi@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tudor.ambarus@linaro.org, saravanak@google.com, willmcvicker@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Andr=C3=A9, On Thu, 4 Apr 2024 at 14:24, Andr=C3=A9 Draszik = wrote: > > Hi Pete, > > Thanks for this! > > I haven't reviewed this, but one immediate comment... > > On Thu, 2024-04-04 at 13:25 +0100, Peter Griffin wrote: > > [...] > > diff --git a/drivers/clk/samsung/clk-gs101.c b/drivers/clk/samsung/clk-= gs101.c > > index d065e343a85d..b9f84c7d5c22 100644 > > --- a/drivers/clk/samsung/clk-gs101.c > > +++ b/drivers/clk/samsung/clk-gs101.c > > @@ -22,6 +22,7 @@ > > #define CLKS_NR_MISC (CLK_GOUT_MISC_XIU_D_MISC_ACLK + 1) > > #define CLKS_NR_PERIC0 (CLK_GOUT_PERIC0_SYSREG_PERIC0_PCLK + 1) > > #define CLKS_NR_PERIC1 (CLK_GOUT_PERIC1_SYSREG_PERIC1_PCLK + 1) > > +#define CLKS_NR_HSI2 (CLK_GOUT_HSI2_XIU_P_HSI2_ACLK + 1) > > Can you please keep the #defines alphabetical (hsi before misc). Will fix > > > > > /* ---- CMU_TOP ------------------------------------------------------= ------- */ > > > > @@ -3409,6 +3410,560 @@ static const struct samsung_cmu_info peric1_cmu= _info __initconst =3D { > > .clk_name =3D "bus", > > }; > > > > +/* ---- CMU_HSI2 -----------------------------------------------------= ----- */ > > and this code block should be earlier in the file Will fix > > > [..] > > > static int __init gs101_cmu_probe(struct platform_device *pdev) > > @@ -3432,6 +3987,9 @@ static const struct of_device_id gs101_cmu_of_mat= ch[] =3D { > > }, { > > .compatible =3D "google,gs101-cmu-peric1", > > .data =3D &peric1_cmu_info, > > + }, { > > + .compatible =3D "google,gs101-cmu-hsi2", > > + .data =3D &hsi2_cmu_info, > > }, { > > and this block should move up Will fix > > > }, > > }; > > diff --git a/include/dt-bindings/clock/google,gs101.h b/include/dt-bind= ings/clock/google,gs101.h > > index 3dac3577788a..ac239ce6821b 100644 > > --- a/include/dt-bindings/clock/google,gs101.h > > +++ b/include/dt-bindings/clock/google,gs101.h > > @@ -518,4 +518,67 @@ > > #define CLK_GOUT_PERIC1_CLK_PERIC1_USI9_USI_CLK 45 > > #define CLK_GOUT_PERIC1_SYSREG_PERIC1_PCLK 46 > > > > +/* CMU_HSI2 */ > > and all these defines, too. Will fix. regards, Peter