From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 95EA419DF75 for ; Thu, 5 Sep 2024 16:05:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725552325; cv=none; b=rh65WVAfm4fiRXpyy5xr5ix/yb4jlRhby9CgyxLyxGXzvonskVYCZ9srJeW3ZHju7WUUnf9RSi2gHK0Jg6ofPnk62BPcaXDhS9n+fRPn26tF/Q/FSePQR/l5Cq/1s+YT6SfarQSk8QolLci6Fuw9Up+YTa198DF18zHKYhcN2h0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725552325; c=relaxed/simple; bh=HE6La4IqnKi2giZOdBmLMWGr1Jcgz+tbpv4xmLX3J2E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cHKhfWaPl9kMnHJOK4Wa7NFMgT/t75Q/8bukpBEmWMwc6WGvVPOWunSBkCmHfaZn0TnjwTfMFYJNVkOEzcK9J5bMP7yi8bhHOx+8GESL+iigw8oUMWFoEjDXCjmBqkLnJwQ09Ly+GGY8xQX/xtAlus+MXpm9hWExj0kFA0UMHmE= 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=sLDRtVDh; arc=none smtp.client-ip=209.85.218.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sLDRtVDh" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a86e9db75b9so135686666b.1 for ; Thu, 05 Sep 2024 09:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725552321; x=1726157121; darn=vger.kernel.org; h=content-transfer-encoding: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; bh=A3SjbsSfqya3DyiG1kDui0xSVYDrbm2AN9/r4f/fNL4=; b=sLDRtVDhqmjMyzZvgEIupTbP3hfR9t6ck1KC1bdZ5InXzJj8rWZ7uOdWrnQC+ESf4s aNJwXlcUipnJrwcKpZV5Q2IGgnh0gm6mvvgpGGx1MEJHApVvgHyBzEkKIB7eAt9U5U+c Ovl9CTrcMzpHY8oA7YHu0SzJb795UW/HdflOPjKOnJMtuyFc2B+kYsxBtFTzG9qHD1xl FhJzUVYJy2QY0jpd/QPvUYSGnZws3abBM3W4RXRBx1hL7PUQUkrY+yePW+F5YQ1QYFc5 uLI4yncs0UjUVA65/jxBFgWkAWXvK5oaNIbjjB6H0hjiteokbb6s4iPbwPEkkujpUkW0 7PRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725552321; x=1726157121; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=A3SjbsSfqya3DyiG1kDui0xSVYDrbm2AN9/r4f/fNL4=; b=N9qxJ1a3jXWVVlTayjsXGiQlgFzt04GnqSjcdNxbjve+GNXCxZIYvMu+b0dzkfDMI6 kAqQS5MYkE5ssl2MieOR76uXiKtDmdl8EjVFUrHuw5APbsbppJDPCmL/Mn5mqIBZ086V M+LMNjusqsdH+VgfgJQIHAbsyfvDAwT+r280EPQlfRu5ItOq98luTP7GbkEafQR1RSyk c6Mr39UHAqXBpRsVpDW0mbPENIfAAjfZgDKIAGBdEcpahbJFaV8T+tkVQ0eMFysCjp4d HbWoca4HLOzqC2YHbMAc4Gtw2Bn27rbRiAwN4rAdYrKtu89EayRzJby2fQVigyXw9v8I 9x7g== X-Forwarded-Encrypted: i=1; AJvYcCU+NQz58mwZ2YHaQb1dM72Mji4nTTOZ5UKuuEkRtaDEwdYzAF/9ukZSDCJLfQefGXYPcet+BJHZewo41Gfu@vger.kernel.org X-Gm-Message-State: AOJu0YzGD8vJSx4rEJ5+6MqgL57YkenLOPaKvtdcdFp3I++FgX0DOZ6N kdf02No9ppPjFPbzovkNIb41xPL0YpAiAMhG5GxqjBFmIS/zLNaSe7X26hkR+RA= X-Google-Smtp-Source: AGHT+IGKLIiZ8CzLoWVbsna5e8H1ecKT4pb77ee4/Gxsp14Hf8qUmzgZH4wljbjzNM628eXRI0oSuA== X-Received: by 2002:a17:907:3f1c:b0:a86:789c:2d07 with SMTP id a640c23a62f3a-a8a1d29bc25mr883588166b.4.1725552320548; Thu, 05 Sep 2024 09:05:20 -0700 (PDT) Received: from [192.168.0.25] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8a796a2bd6sm70318666b.189.2024.09.05.09.05.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Sep 2024 09:05:20 -0700 (PDT) Message-ID: <1914fc07-d7be-4747-971b-40ef360d050a@linaro.org> Date: Thu, 5 Sep 2024 17:05:19 +0100 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 3/7] i2c: qcom-cci: Stop complaining about DT set clock rate To: Konrad Dybcio , Richard Acayan , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Loic Poulain , Robert Foss , Andi Shyti , Todor Tomov , Mauro Carvalho Chehab , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, linux-media@vger.kernel.org Cc: Vladimir Zapolskiy References: <20240904020448.52035-9-mailingradian@gmail.com> <20240904020448.52035-12-mailingradian@gmail.com> <917917cc-3e78-4ab6-8fa4-82d9a6fe3fdd@kernel.org> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: <917917cc-3e78-4ab6-8fa4-82d9a6fe3fdd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 05/09/2024 14:57, Konrad Dybcio wrote: > On 4.09.2024 4:04 AM, Richard Acayan wrote: >> From: Bryan O'Donoghue >> >> It is common practice in the downstream and upstream CCI dt to set CCI >> clock rates to 19.2 MHz. It appears to be fairly common for initial code to >> set the CCI clock rate to 37.5 MHz. >> >> Applying the widely used CCI clock rates from downstream ought not to cause >> warning messages in the upstream kernel where our general policy is to >> usually copy downstream hardware clock rates across the range of Qualcomm >> drivers. >> >> Drop the warning it is pervasive across CAMSS users but doesn't add any >> information or warrant any changes to the DT to align the DT clock rate to >> the bootloader clock rate. >> >> Signed-off-by: Bryan O'Donoghue >> Reviewed-by: Vladimir Zapolskiy >> Link: https://lore.kernel.org/linux-arm-msm/20240824115900.40702-1-bryan.odonoghue@linaro.org >> Signed-off-by: Richard Acayan >> --- > > I.. am not sure this is really a problem? On some platforms the core > clock is only 19.2 Mhz, but e.g. on sdm845 we have: > > static const struct freq_tbl ftbl_cam_cc_cci_clk_src[] = { > F(19200000, P_BI_TCXO, 1, 0, 0), > F(37500000, P_CAM_CC_PLL0_OUT_EVEN, 16, 0, 0), > F(50000000, P_CAM_CC_PLL0_OUT_EVEN, 12, 0, 0), > F(100000000, P_CAM_CC_PLL0_OUT_EVEN, 6, 0, 0), > { } > }; CCI latches the code from DT and I assume that people submitting dts have actually tested their sensors when they do so. The complaint about not being 19.2 MHz is surely not valid since, it can be any number of frequencies. Its a redundant and useless warning. We can do extra work to align to a set of frequencies sure but, the warning is not a warning about a real thing. --- bod