Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1995022lqz; Tue, 2 Apr 2024 04:21:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcLfgAQHAYiYjih1LqknaNBRlV9m9Mspslr5wS8Z3TTAMfS3c6LrwMKFePeU3QgO1Qt7yw71yM6SgcZQLICUuOLJSUxr/V7QJk0CFMGg== X-Google-Smtp-Source: AGHT+IELU70CIifLzjwx59dxPc9U+PAA6w94RbzUpw120X0E2E0FkpJXASt2dp52mcHyfybTML5c X-Received: by 2002:a17:903:244a:b0:1e2:6191:89a3 with SMTP id l10-20020a170903244a00b001e2619189a3mr2740406pls.0.1712056885159; Tue, 02 Apr 2024 04:21:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712056885; cv=pass; d=google.com; s=arc-20160816; b=oYTPubL7JWeXd55HR3v1XZt6BZo/sYYoCK96r05Tav2ZKWwmzvqH8pH340O/HvT5Wg vps16AK08+9yO23nyUyi2zLXzp8uY6qcu/eWdS9p62e1Vow+NGPPZfzU+P/JT/cyEjyv ukbkIwEq0vNJGi3dEkl1mPwl9PynYfZ4OPzi3rGJWfgkcGw4eECzTGhg9UY1uTvDh0/B 9rG81NGDNbBWyUSviRdipCfaF06SOFpWgWRFwusWWi6P+UrA/etVB2iATrHvC8s2ou9N XPytXN6+n5W4LsfiZT/3aoA+EROTrvhLanjxrEG+HGOvLyPE3PcFSAMukYGaIgEvE5Ze sfsA== 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=iTMKg4XqWA7HYKpRnLW2DkVT8qk6FP4berfNhIn62LA=; fh=IwqpC8M/I+4REe3xskK0VVIxEq/sk/AYhCm4zY+7kz8=; b=Is3QvmomYG0efY085L8SslOqGxMQXm1S6DEsLWzOzO4TH8nG9Lf6DY82Wkcvl4ONy0 kE7jhIgcR5CfQCxI9GsNNRiVpOTP1EPshZsoIXFtYyfPT10dei2G5nt/yjaiPTGP5dvI +n4KGKNtFoFRe3AOlSftQ6tsqG8jgGoYLtpi6xfWz2mtAHUi271cuYTIAZY2UfPOP2mW fq631fK5a9znLfoBeRRM4b0VJ9HCcktw5xyKJ2qjSkeaQu5g3zWIGAdzICIh6IaVcn0+ i5lSZApt2UtheQKZmmpZJ/TYwwNHxNPoh5xuRcR4FPOAfdTus9U51wpneI3IcjMsLkc3 zTgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FqaMacyf; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-127815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n3-20020a170902f60300b001dcb3b34b57si11368798plg.101.2024.04.02.04.21.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 04:21:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FqaMacyf; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-127815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 21A4CB23238 for ; Tue, 2 Apr 2024 11:03:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D478C6A8A8; Tue, 2 Apr 2024 11:02:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="FqaMacyf" 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 7985D65BB7; Tue, 2 Apr 2024 11:02:19 +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=1712055741; cv=none; b=ZLFoVEEYlwIIaHPIZjLYfrX968dXm2BWyak0Fs6bjdSjlluTJzi8Osn51Vk9avbdX0wGB/fCNBZp+hiXADnww5dUs8mfYXf1rUR08Kxa3WUhzfo+aIa2o1rKbrwIO3Vc29VVFxgC8Fidjsgix6auaE5Adq8dAVI50VmuWCMfZCE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712055741; c=relaxed/simple; bh=/T8QiLAUltEloOxdzVBytB1dHViiHqqZ2ouF98lSHg0=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z9ELntxm4rRymhpKLJbfGRSuAOUotf4qEshHRE3LAeGSmLkNAiVJxOQYTrZeAMXlY6OLFWfgnl8Od4afE7Jf9YKwVwilT3EMnvywXAk4HwWmiIEtgzc6MRSGsHgceVdEqag4e/eZAexxtHD5DuugzFLcsdtPvxeR8i0Gw8F1kng= 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=FqaMacyf; arc=none smtp.client-ip=205.220.180.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 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4325g5NH003009; Tue, 2 Apr 2024 11:02:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=qcppdkim1; bh=iTMKg4XqWA7HYKpRnLW2D kVT8qk6FP4berfNhIn62LA=; b=FqaMacyfnlbzJqfPPIl6OGAz20WVbG8DYuS10 q4uYA/hnsMNhdw2ZWIrtFgv/m8pUi5jMLwxkLPvc68TapB4wSqjROL6vLKw0rSHS EEHBqMeUsQ0t5HTxLxZoDN/84xMNIprTSNJijsLIzIU8Le6zvdOxFBr4X0ndgeGA kfN2R/TCSrh8VAfKGoxUP0YuX79O68vz0x3t1sS+6yvKIkG/DQOQ9vcitwBDN9zH iTnBVTSYvC/EbGuBxZsiVTuVd2ooOf0FT9yVmKtPefG50XlgVX0ouA4oIZRuq+7Q c8pLWTMd2DWNRTPbcFrTLJUwInTSEecvYWT+Lo/kdQBWrlUGQ== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x8c2vgtrn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Apr 2024 11:02:15 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 432B2Eu2026808 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 2 Apr 2024 11:02:14 GMT Received: from hu-varada-blr.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 2 Apr 2024 04:02:09 -0700 Date: Tue, 2 Apr 2024 16:32:05 +0530 From: Varadarajan Narayanan To: Dmitry Baryshkov CC: , , , , , , , , , , , , , Subject: Re: [PATCH v6 3/6] interconnect: icc-clk: Add devm_icc_clk_register Message-ID: References: <20240402103406.3638821-1-quic_varada@quicinc.com> <20240402103406.3638821-4-quic_varada@quicinc.com> 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: X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: CE5VCo1GmHMGTc61r75_3N6ew_Wrcn3- X-Proofpoint-GUID: CE5VCo1GmHMGTc61r75_3N6ew_Wrcn3- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-02_04,2024-04-01_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 adultscore=0 priorityscore=1501 bulkscore=0 mlxscore=0 spamscore=0 mlxlogscore=911 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2404020080 On Tue, Apr 02, 2024 at 01:48:08PM +0300, Dmitry Baryshkov wrote: > On Tue, 2 Apr 2024 at 13:40, Dmitry Baryshkov > wrote: > > > > On Tue, 2 Apr 2024 at 13:34, Varadarajan Narayanan > > wrote: > > > > > > Wrap icc_clk_register to create devm_icc_clk_register to be > > > able to release the resources properly. > > > > > > Signed-off-by: Varadarajan Narayanan > > > --- > > > v5: Introduced devm_icc_clk_register > > > --- > > > drivers/interconnect/icc-clk.c | 29 +++++++++++++++++++++++++++++ > > > include/linux/interconnect-clk.h | 4 ++++ > > > 2 files changed, 33 insertions(+) > > > > Reviewed-by: Dmitry Baryshkov > > Wait. Actually, > > Unreviewed-by: me > > Please return int from devm_icc_clk_register instead of returning the pointer. Wouldn't returning int break the general assumption that devm_foo(), returns the same type as foo(). For example devm_clk_hw_get_clk and clk_hw_get_clk return struct clk *? Thanks Varada