From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 3220A1E535; Fri, 21 Jun 2024 04:04:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718942661; cv=none; b=BPvf67A0Hcg3robXP5N61K0MkaOLABod+UNvHGbPNLkSdWLa/iNn2bIqEg1LQmJqgLRvl7juIbDeABLRfBWCabGOHeCevqsSVj3gFmCuk+Y3ZGbGZhgD++0BThntZPuE6n9zCuwo2bE5TdaHQd3JgJX0tSfx580di/bl1HVE+5s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718942661; c=relaxed/simple; bh=dgKgY80Khb79WXHNg81HyNptXJjdgbMWiFEQqvKFceI=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=rO6yY1KcwiSpIVxKxF+52H1F1AdVm9GV7oUBvQQ1tNsh7DUQkNSw7aLNrTis9ESW3Emlaza2dlrQmqdJ/5gQ03/QmmtYWvWSptCBa0BD1Jz9FAAVtmCZftCib95lkQTER3UnmL73+CAFWiYLi/z0fH6yL8/YvIYX9adD5j5SYZc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=UZU+N55e; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="UZU+N55e" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45KHBDIc023962; Fri, 21 Jun 2024 04:04:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uDk9rNcXhE6761y6/v9jEaVNM5b+18kzcwpXIxVpXwk=; b=UZU+N55e/fH6rAdL CBkcgqfVzcShfNXA/deCPxIxMSgiqU+S3XL9Bf58un1lxxHSIeAHbbh3jga0XUlY BlPUScmk/4uG8tMnTgBvpsAuAF2zPpQm2h6AsRk1P/c8fpuKA5q9spbgSvL+/DBY rEpb16n3fzQBT7894pvIvI3IpSCe1tb+vo8kBbRk3ErWp5EQ3Zzr0wgDYQw92uWG BaDatECIE7FauSgba9zHb3Q7rK9cpMJtjtLhhfRPX8EtiFJWm2F3Z/qyTK4xJ89x 0lvIzE3c0H00AH/vR5whdU4PsNBPdo7kW/TlV767dy3QvTl0YxWvl2TB/jWWB+l+ Fdxa2A== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yvrkssb86-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 04:04:07 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 45L447l7022471 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 04:04:07 GMT Received: from [10.217.216.152] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 20 Jun 2024 21:03:55 -0700 Message-ID: Date: Fri, 21 Jun 2024 09:33:50 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V6 3/5] clk: qcom: gdsc: Add set and get hwmode callbacks to switch GDSC mode To: Jagadeesh Kona , Bjorn Andersson , Michael Turquette , "Stephen Boyd" , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Mauro Carvalho Chehab , "Ulf Hansson" , "Rafael J . Wysocki" , Kevin Hilman , Pavel Machek , Len Brown , Greg Kroah-Hartman , Konrad Dybcio , Andy Gross , Dmitry Baryshkov , Abel Vesa CC: , , , , , Satya Priya Kakitapalli , Imran Shaik , "Ajit Pandey" References: <20240619141413.7983-1-quic_jkona@quicinc.com> <20240619141413.7983-4-quic_jkona@quicinc.com> Content-Language: en-US From: Taniya Das In-Reply-To: <20240619141413.7983-4-quic_jkona@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: IWbkpdOxKHfg4p1UFJ6xslITcvSCnD7m X-Proofpoint-GUID: IWbkpdOxKHfg4p1UFJ6xslITcvSCnD7m X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-20_12,2024-06-20_04,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxscore=0 adultscore=0 phishscore=0 suspectscore=0 spamscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406210027 On 6/19/2024 7:44 PM, Jagadeesh Kona wrote: > Some GDSC client drivers require the GDSC mode to be switched dynamically > to HW mode at runtime to gain the power benefits. Typically such client > drivers require the GDSC to be brought up in SW mode initially to enable > the required dependent clocks and configure the hardware to proper state. > Once initial hardware set up is done, they switch the GDSC to HW mode to > save power. At the end of usecase, they switch the GDSC back to SW mode > and disable the GDSC. > > Introduce HW_CTRL_TRIGGER flag to register the set_hwmode_dev and > get_hwmode_dev callbacks for GDSC's whose respective client drivers > require the GDSC mode to be switched dynamically at runtime using > dev_pm_genpd_set_hwmode() API. > > Signed-off-by: Jagadeesh Kona > Signed-off-by: Abel Vesa > Reviewed-by: Bryan O'Donoghue > --- > drivers/clk/qcom/gdsc.c | 42 +++++++++++++++++++++++++++++++++++++++++ > drivers/clk/qcom/gdsc.h | 1 + > 2 files changed, 43 insertions(+) Reviewed-by: Taniya Das -- Thanks & Regards, Taniya Das.