Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp62464rdb; Sun, 28 Jan 2024 13:55:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGHUUBaNGDJEU6KQ/tLXMczfzmGivo95HlzASYE99kHM90JFOcHGYoevsdONHiWqVkn25D X-Received: by 2002:a17:90b:3606:b0:295:2a3d:3d4c with SMTP id ml6-20020a17090b360600b002952a3d3d4cmr742550pjb.31.1706478936140; Sun, 28 Jan 2024 13:55:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706478936; cv=pass; d=google.com; s=arc-20160816; b=grsUOP+0Rhpor1cIVHVKaLgIPJrWqln2J7sfl5xvthBxKGuoZesSutOnQpyv7pTx1Q m4HT/wSOX4Cf+o7i3SKEO8TFOweGe1qE4lWymve4bDwbrTJdYbIMB1/CoRe1tmK4+Gkk cDCxQdCP7vZKH58eqp9v7Pp+282G2zN4JTUry1EIeq1WRY2DrwAOzqV3CtW/H7KXNB69 Li4IZyASEoj843r0Axmorq340zMzWSt3u/s1QZcCnJ+GoTi4IO57MgJxUS3/buz0oMPb /NT/v28MUD4FAdZIaTWRp867LQCSmEtQNBqFJ78G9HHQQT6U0dPt1W2sswIm22mxiMcc itag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=D+XQ5J70Vv4JK+99QpNV1l2iMHbJbDR/DSuCxbzTjVM=; fh=1z2A1q2m8ulZS5BS9NUR94jHngHMGqskjef7rcgBKkA=; b=QAOeXcEQgqsHgKxt3iTQvI+HyJ9zqDjHPrj8J9owo2AECNb5Vd8U2PWv18PzFKPRRo ogrxgqdqb7efMd7jAXs4YIxLsn0566AdcqPuWIVuhhrxopzX77PcsKcW9Hiu3Anta2XO DrlbvF3AIk8guRIZ9cnbRbvZBtifsfkfA3bJl9SkewoaQmCS1IkP6Sa8UKhVH+SQHy1i CNAmadPnmrTfjvBccdVzoqFrEWq7s95XpSdX3uli01UfpxzPKVkSH7xjs8kQzBb50Evp vN0aoSw/odz7/f7j8AqY2fWH7Vb+K0pv0jJfukqoBaTJbNc7BezM/xqwLmsR+u9KnAzh 4OZw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="cv/CHmIz"; 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-41976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y3-20020a17090ad70300b00290260542c3si6612137pju.184.2024.01.28.13.55.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 13:55:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="cv/CHmIz"; 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-41976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41976-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E4A7CB21D57 for ; Sun, 28 Jan 2024 21:55:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B2C93C473; Sun, 28 Jan 2024 21:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cv/CHmIz" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 A5A543C46E for ; Sun, 28 Jan 2024 21:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706478896; cv=none; b=K3UrFT2MZNinNE0+y+GRGtF0HchBLIomfKYCY88Xi4CLfZk7hMYtA7mc0QBIO2R2RtI/5d3adPVZzu1sFZ9y4YESKtgy7JdvGo0yAVTXdyfLJavnh06WUmt6osDJ/9PKJzmwKAt8xcAzPLidiYmek7q5l4kmTHtMMHV+szmRbF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706478896; c=relaxed/simple; bh=WugGfDK+emUMgdBb1FkLCuURsfNZ1uU59q+8DxDxxZo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=myGxx3mA48ECByBTlmPa7hT1mdOGVTC0WD6XbZdlZGEMr2DEJ8GOD09M+Fkd5o07T7OkM/WAivYUIJDX5+yADqmwDSfxEhIvXnDAaRROGQBAL/AY/VcEljaF33H5A6mO1MooI23S9neEIRQ3hLZhWvZjiHsTSygqRdOk9KgTjjg= 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=cv/CHmIz; arc=none smtp.client-ip=209.85.218.52 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-ej1-f52.google.com with SMTP id a640c23a62f3a-a353f5407f1so129687766b.3 for ; Sun, 28 Jan 2024 13:54:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706478893; x=1707083693; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=D+XQ5J70Vv4JK+99QpNV1l2iMHbJbDR/DSuCxbzTjVM=; b=cv/CHmIzfVJ6pd22YjE1Mtfe4WoJ5LPntjTugKqhzRmY3/FtzAdEmDqP0Ga8GxzH4n ZYRdbEs2+ITAwojqhk9c3PKgdpSh7s/gGVgK2a1Meos6i6FQaucc0mi9LazNmLfW8sR7 FaUtNI92bm9mqOxbO++zpRNeUosi9fKAqPrJPFKjP0FJsW3kIAArnsbz/gXBguKcIjt0 qQD7gQHxutEpDEU/oIVwUDf/RzoxKZbHtdDAmPPBN1TC39XubtlOHbbmKtb8xGJO564z u16Z4g69r6vk3gI2GwfQcmPasRfbXRhWiXogP0DUpxAQASQXNoSwxcnf+h/YR0RijLZu vyng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706478893; x=1707083693; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=D+XQ5J70Vv4JK+99QpNV1l2iMHbJbDR/DSuCxbzTjVM=; b=QDURZhvV2a3bzBGzIFA7vngWkdHJYSWeL8UHLattLW/Fyw5+DjUn6ZeI+/Wfb8179o GHI3wadAAnfNbt3t8gKHTR/O8xnuHOBf7IA5PoDLKtp2pHM028tQBpv3ekr+82zaV2XY OJEJEl/bhcbFJJEyDO8zSmlTIe86auhd1ddoqmuGd1FMWrnS2HS8OUb9ANeBGrLfPnBW P8sMWwexZzG9PYFpUIQDE7FxPyWDJgl8cSp+Eof/9kZcNPfQPT7hRrmq7Mh4uBOAG+Rs x4Kuijp6CcsEhOSWNWQrA5/lM15Vpya1KPT4s+3Pv2dngz4wC4+M34r4nynEDxJB3p8P OOJA== X-Gm-Message-State: AOJu0YwL3R/X5iLjizppg0m7rafhNc6ERakQ5/7uTeD5Qs4WbKlKkjCW TkHRLF14XNcW9kzrrSo4kTZq55n9rd4UGHSs90Y7TKWhKE00PjjjSUbb9j1M5+8= X-Received: by 2002:a17:906:4901:b0:a35:2758:22a3 with SMTP id b1-20020a170906490100b00a35275822a3mr2847446ejq.1.1706478892377; Sun, 28 Jan 2024 13:54:52 -0800 (PST) Received: from linaro.org ([79.115.23.25]) by smtp.gmail.com with ESMTPSA id s8-20020a170906bc4800b00a317165027fsm3297385ejv.13.2024.01.28.13.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 13:54:51 -0800 (PST) Date: Sun, 28 Jan 2024 23:54:50 +0200 From: Abel Vesa To: Konrad Dybcio Cc: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Neil Armstrong , Vladimir Zapolskiy , Dmitry Baryshkov , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Rajendra Nayak Subject: Re: [PATCH v2 10/10] clk: qcom: Add camcc clock driver for x1e80100 Message-ID: References: <20231214-x1e80100-clock-controllers-v2-0-2b0739bebd27@linaro.org> <20231214-x1e80100-clock-controllers-v2-10-2b0739bebd27@linaro.org> <624956b6-d7ea-43da-bb8d-32d9166a0272@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <624956b6-d7ea-43da-bb8d-32d9166a0272@linaro.org> On 23-12-16 14:39:48, Konrad Dybcio wrote: > On 14.12.2023 17:49, Abel Vesa wrote: > > From: Rajendra Nayak > > > > Add the camcc clock driver for x1e80100 > > > > Signed-off-by: Rajendra Nayak > > Signed-off-by: Abel Vesa > > --- > [...] > > > +enum { > > + DT_BI_TCXO, > > + DT_BI_TCXO_AO, > > + DT_SLEEP_CLK, > > +}; > > + > > +enum { > > + P_BI_TCXO, > Please don't overload this define with DT_BI_TCXO_AO, add a new one > for the active-only clock. Please also do this in other drivers in > this series. > > [...] > > > + clk_lucid_ole_pll_configure(&cam_cc_pll0, regmap, &cam_cc_pll0_config); > > + clk_lucid_ole_pll_configure(&cam_cc_pll1, regmap, &cam_cc_pll1_config); > > + clk_rivian_evo_pll_configure(&cam_cc_pll2, regmap, &cam_cc_pll2_config); > > + clk_lucid_ole_pll_configure(&cam_cc_pll3, regmap, &cam_cc_pll3_config); > > + clk_lucid_ole_pll_configure(&cam_cc_pll4, regmap, &cam_cc_pll4_config); > > + clk_lucid_ole_pll_configure(&cam_cc_pll6, regmap, &cam_cc_pll6_config); > > + clk_lucid_ole_pll_configure(&cam_cc_pll8, regmap, &cam_cc_pll8_config); > Do we know whether these configure calls are actually necessary? So camera support hasn't been fully brought up yet, but based on the SM8550 driver (which is quite similar), they seem to be needed. Once camera is up, we can confirm for sure. > > + > > + /* > > + * Keep clocks always enabled: > > + * cam_cc_gdsc_clk > > + * cam_cc_sleep_clk > > + */ > > + regmap_update_bits(regmap, 0x13a9c, BIT(0), BIT(0)); > > + regmap_update_bits(regmap, 0x13ab8, BIT(0), BIT(0)); > Please make the comments inline with each line Will do. > > Konrad