From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 573E740800D for ; Mon, 24 Aug 2026 11:07:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787569668; cv=none; b=jj71P6De6eV9zoFwMnCdrLv36TqN6VTKvfBHgIwzanRvKz+pqXsg73sAiAW6HqnP25Cke6XILEbFdhJ1l1a5DwEAYdDdAuS+A6EDtHqv3qs6MXgMLuk+n2xyrEotQjB82L+NrhJqRrfqUVf8Eo2bEyvA4aXIzeWoo9FlyxZNHSM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787569668; c=relaxed/simple; bh=OSns+uTIs22s3YlcDW6QPFVIFw1QF1ErNeeSa5lcm1A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dOTLilTPvPUi1QHXmdL42arXGH++bNhfOR5eTwUGNilbrW9OweVmzjFgq7hvS7jkdvQcT4cMlq5KKulFT6tZCyVEKtfxcbd+UjOC/fsqRECtWgyDtXikwW8XFz+3kD/M1vJ4LMS0elZ4ZhSRiD4J0SCChC+hApNwKJlxtYk7XQE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=ojum985C; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=LBYo7+e1; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="ojum985C"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="LBYo7+e1" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 67O9922Y2448620 for ; Mon, 24 Aug 2026 11:07:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= jRpGpu4L7njGKrZAm4LPVjfYmC7MPX8emmTGwksOl+Y=; b=ojum985CHaucqlo3 csKOLbyg3UklvxJSS2AUhhWHKKTk5umUiaArXncU5E6Wd5hyUg88tL+lWSoj8Eyn KcqqBo8LpnUOqOmCWH3sBqvhX0zNZhR/Oum1DDFtstGKJWoD+UiluJzPf/jjB0PP BvTNqvFhGBhK2xszeFaqu/hJcplAyVt3VqRNKNE/xR6OfL0+ogwFjGretAJVRvOW wrf6sNoQxW2tF467JKk+uR/y7ArtojnURrqSigiDroxhv2eQNjATjdyC3YlJ3OX6 /WFrN99pfWYB6NL9JOLHfHhWtc6xrZTcd0qtc6DtkiczJuBb/z363+ITm13aIhq+ nNROAg== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4g8j7r0rtk-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 24 Aug 2026 11:07:46 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-8484ba00601so3800564b3a.1 for ; Mon, 24 Aug 2026 04:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1787569665; x=1788174465; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=jRpGpu4L7njGKrZAm4LPVjfYmC7MPX8emmTGwksOl+Y=; b=LBYo7+e1T/JwmD5drW1ExyMgUi6lpbBe/wlQkTsa3qipx4Z5VU76BIAZwb0Js3tjIO nmIEQ9QiujweRPFlfnliOg/GZE8EqbTB5UGS11FfKca0QFSK9uTh1XSZnrutjq7IbYU6 Elem6DMz8uQWRWpmiusBCM9EyTUMLzLI8eIUliR3cmm4Oi+xkZoV1KzGP7ADDcm6SAkn 26uGD1wV5bPn4jbKw0k8lwfi/ydpiJkHcTOEcEvcB7Stf6bM0fBp+NRItXJD0Vt8CmM8 2lVgwdFPWrshci5My0eGGIZLv0+qxVO6p+VwClROJz9HIzdYXBabW93+/1iKT1P1v1YD B/PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787569665; x=1788174465; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jRpGpu4L7njGKrZAm4LPVjfYmC7MPX8emmTGwksOl+Y=; b=MnL85yX8zUNJV1XL+Wn4OduWN8qPvwoQFUDCLG5cd9Mx/6wurjYZz8lcrfufvbQ+gJ xVVtoqz7FWcbiaOy/L99AZGUtQmRqOSORp+uWtqaT5zG6TYxw0JezFDj4dzQWl8byN0i 58hDZb5c66cjng93bpQoaKiOtP+rYZ1jMNEusf7Tn79p18G0QthLd5NxLH6yXopM4IMD MADPZz5q7tmt4dqaGyz0SpFPA3Q4zxAq0Ua4G0eMjYdFFWrpkFfLs24CXbMe7urGG6/W AjzjTtnjET2aRgHQAB2DRNWYw1t3PLdOdT+Ct8N4Jmt7byLIeTsnihwFSIyTP4Wgw6ky UWag== X-Forwarded-Encrypted: i=1; AHgh+RqgdvA9tOOSMQ3Vxiwo8+jTXfRJzL6JfvOLeUSHV1Q+f3BY1h61s8pfcxjQIxhHEUHz9i9XSA3YUF0=@vger.kernel.org X-Gm-Message-State: AFuF++nmTvWi08yh3bcJeAv7ImfWeBdRPJ42R4kZnmotDevnJ4B8tfHE /ivqUAqCLHUi+HoJhzhwl5UeRBk10KhLqWKOzGAIt6/dl6Vbk8ssHAAyjTZ5dP/WJiaTJt5zS0p ckjVrA/dRR88z869KZiJ51/yncRWFrjONn+Dz2PwAZvdSzmU6F73AcpGhQzln2NM= X-Gm-Gg: AR+sD10pJExmffuIbHIMI26Ox2uK1q7GKjpzjzkLRRZ6gpyAkeBeizU68skPs7kUck/ l3NClcxbOpSNhQn3lynEGeHaCINvTFXecB5Zx89RHrH9bn+jw98Gwfn8UqGEDGqTtu0HIeektfv sRTuaE4FE1vmldRvzrcQGyoPkyG/txTPuOB8DjkTVevpaYVM23X19ED0E3wjKptAvhZbKLLjOyh v92QerSoQshkJHnqi79F0AEwnsFyNum8H1wbr2EfNt/mKr47FHI+IobwAqqPQndmS/YvuBotLyB Wk8fVXdJ7e3jnbViNEiazCjaCNsTuHpn7fUBpWiTlxcgCCWPNo+SH0eZFgeVqElEnZanG76hKod BB0gNFXvR0hzLi6+X04liaSKBVGjZXlJ/Z2w= X-Received: by 2002:a05:6a00:4145:b0:847:9315:fb8b with SMTP id d2e1a72fcca58-851f9a9f0bamr43921543b3a.6.1787569665349; Mon, 24 Aug 2026 04:07:45 -0700 (PDT) X-Received: by 2002:a05:6a00:4145:b0:847:9315:fb8b with SMTP id d2e1a72fcca58-851f9a9f0bamr43921428b3a.6.1787569664916; Mon, 24 Aug 2026 04:07:44 -0700 (PDT) Received: from [10.217.218.158] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8520eed88f8sm1864508b3a.10.2026.08.24.04.07.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Aug 2026 04:07:44 -0700 (PDT) Message-ID: Date: Mon, 24 Aug 2026 16:37:37 +0530 Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/7] soc: qcom: geni-se: Add helper to set SE clock rate via OPP To: Praveen Talari , konrad.dybcio@oss.qualcomm.com, Sudeep Holla , Cristian Marussi , Ulf Hansson , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , Jiri Slaby , Mark Brown , Viken Dadhaniya , Andi Shyti Cc: chandana.chiluveru@oss.qualcomm.com, arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, linux-i2c@vger.kernel.org References: <20260805-derive_clk_perf_tbl_from_perf_domain_opp_table-v1-0-61171ab1cdce@oss.qualcomm.com> <20260805-derive_clk_perf_tbl_from_perf_domain_opp_table-v1-3-61171ab1cdce@oss.qualcomm.com> Content-Language: en-US From: Mukesh Savaliya In-Reply-To: <20260805-derive_clk_perf_tbl_from_perf_domain_opp_table-v1-3-61171ab1cdce@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODI0MDA5MyBTYWx0ZWRfX/jaigAsI/+sm Aar+eCybrnUpQbWQ65E/JzigKvLgcpDddZqGF7BUm4NLlHGuajXFYDeBRjnqECU01jaFo2Wad56 ngghI1N4YD1v+4XU+p3pcMxqvV2pTFASXiePxZiQN6jjxqSjV3JB2kXelbjOA1B5lF5ResPxUqA vUcTxt7iNMGsJ6Ft4CBTPUi7KiKMt6VJVlADEPkN8BIwPBeXOFfqr/mQrKnfETjj1FBjOoLg2BT XcQ1gFRzcPvA0URwI4W+IfmItcsSobfKskkT1SV1plcDs68utBAKIj30DYUMV3SbZubUvuEV+EC xECuEF2mO2kiq0LVd6WCoe3DSrVHqlt8451gH08Hp+O2cGahmsS+GexWTatauy6fcPaQwB5yaEX dOgFA3DFmRMRXqh3j/QurbTRnjHOSrBCOSPiU44sfp6iNipt5aYITS3DT6u7u7lzEDXjaZL4bIY dSwCYaEzM0kJx0wIiFQ== X-Proofpoint-Spam-Info: AW1haW4tMjYwODI0MDA5MyBTYWx0ZWRfX/Dqyj4PmQ3ws qfG8Wa+bhJHNcUIZcrtgNXf629SjwCx+KxLdbG/OEhQ7Ye7Vv3qnRx8uzzBPCD7+TzcRNnn2/27 s+QQT5MlNOtZ6SyeIzaqGEhzPMd1SCE= X-Proofpoint-GUID: ed0h0g23L5dLMW0vm9Qw0PgaliFtUKGV X-Authority-Analysis: v=2.4 cv=IL8yzAvG c=1 sm=1 tr=0 ts=6a8c2602 cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=9aiwZt7zaXvVnErAyWsA:9 a=QEXdDO2ut3YA:10 a=ZXulRonScM0A:10 a=2VI0MkxyNR6bbpdq8BZq:22 X-Proofpoint-ORIG-GUID: ed0h0g23L5dLMW0vm9Qw0PgaliFtUKGV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-08-24_03,2026-08-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 phishscore=0 priorityscore=1501 suspectscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608240093 On 8/5/2026 1:27 AM, Praveen Talari wrote: > GENI protocol drivers need a common way to scale the SE source clock > through the OPP framework. However, the device that owns the OPP table > differs depending on how the SE resources are managed. For Linux clock > managed platforms, the OPP table is associated with the SE device, > whereas on firmware-managed platforms it is associated with the > performance power-domain device. This requires protocol drivers to be > aware of the underlying resource management model when requesting > frequency changes. > > Introduce geni_se_set_rate(), a common helper that abstracts this > difference and applies the requested frequency through the appropriate > device. The helper automatically selects the performance-domain device > when power domains are attached and falls back to the SE device > otherwise. > > Signed-off-by: Praveen Talari > --- Acked-by: Mukesh Kumar Savaliya