Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp710916lqb; Fri, 15 Mar 2024 04:35:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWq0OjDE6YTiWr1uFlxTKyvYEWdwbvpt1Ry8cZO8A0rZ0c5+qaSY9oNFfoatqQVZCW8dSnHqE7/6yC6Cf50ssepznBnIJMp0gUt2fkLHQ== X-Google-Smtp-Source: AGHT+IFLooboW0G47K984YGrMIGnFrJVUJXa3KDo8mv0NUXFec+86TT+e+u1CP61+NFPYJbO9jtu X-Received: by 2002:a05:6358:9987:b0:17e:8e7f:59f9 with SMTP id j7-20020a056358998700b0017e8e7f59f9mr2333938rwb.26.1710502556954; Fri, 15 Mar 2024 04:35:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710502556; cv=pass; d=google.com; s=arc-20160816; b=EMolNuUAplGBhJNO6q5n5bMJczTwCacXvVsut8c6dgbaIlB5WqxnYt2UijahfpEM1Q w8EcauZ0MWdnaZ62Inq/ce1TmOOM0GMkyRwa3aeXYAX9Y+9sjPv3DRWRgTiT736JyjJP kc9fuPDO/+Ai25FeJdqYJ34ilgb/Bb7JZ33RrGWDdPOtsgheG/OMBLRn0HMqO5rGz0Gm M1xk2OGAZrIN1Vqh17ZkrB7NuVIFcvG75UQ+fPr0hNWBEmS05qMeu7YD6BDEI6myzr5I XS8mKZZY8ETSxSPmRGi/bGpcBgBuE1Y3TbboYvfofSV3NbEbnhFwa24/HN+n0+kP41/V AUxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-language:thread-index :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject :in-reply-to:cc:to:from:dkim-signature:dkim-filter; bh=ei6uKuFHNES6Tz2lkRZwuDlTAQukDr3qpC/ZyrUr5b8=; fh=e0gj3bbFPdMyVzv40PnqdfQp8bYiPrIDRbxiTyeDdXA=; b=DXxzI/CiG0eYO8ywjO5WXaEMrZE4v2tXnkAdyL8ZtWf7mhQ1FrEJ5Ax/rouzB8FCg4 +BmneAeYR3M7oLCQmibctMCo4kCzG/GQATYemIBz4mFw0qBOS5kbzZ2Bg78pFRc3PtCP e9iMkFElsC3vTwMd8CD1/KQSxWgyeD16HIi/sIj2pCMEZPRkEr4oFvF1glRSjz3pA6jF 2Bp0FsLAcmLQDvnQFfBZcf55Aj/t6JpRzsRc1QgMwdf6LLWuYCbsX7ho0plJdh973g8A LPfoWdMFKssthlJ00ELYBb7POzxaYtbKP+sjqzvL/zavC9vvRrR+DE22DYU+5I5jTCtF Cs4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=rvN6rl9c; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-104347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x10-20020a65454a000000b005c66a3f3f5bsi2398912pgr.745.2024.03.15.04.35.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 04:35:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=rvN6rl9c; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-104347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 90064282D8E for ; Fri, 15 Mar 2024 11:35:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4109F1B815; Fri, 15 Mar 2024 11:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="rvN6rl9c" Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (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 976791B7FF for ; Fri, 15 Mar 2024 11:35:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.24 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710502549; cv=none; b=WhhO662kVRd/hS+6PHB+uz0yHfvBUUsRcbnHc0hpb+LcVJfxZg/g7jp3EXOx2e2k7+08VzGspzBgCd48Z+wnzVxfognKj1UEZ5RScYgjxqzyY2mx7xHbCPKZkSZ/PosRf2RMzYpkNLYHwlP/QKvg2hzYSAecpR+EaWg/vmscffM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710502549; c=relaxed/simple; bh=ei6uKuFHNES6Tz2lkRZwuDlTAQukDr3qpC/ZyrUr5b8=; h=From:To:Cc:In-Reply-To:Subject:Date:Message-ID:MIME-Version: Content-Type:References; b=I0A4KC7v8gHlqv6vTg8PUUWOCnXnIPsBJ8nIww7mD1oekITpGF07hbJxwMEeGqPswXLOKxpfYUbB7d4AxI/+IdiL5tghW8FKdChhMkBq+9ayZu82U/XvGe7uciGItoToTCj1nPW38PVDnI5knR9UjdmtSSjwsr3EpjvvvhZEB60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=rvN6rl9c; arc=none smtp.client-ip=203.254.224.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20240315113539epoutp0134f2a2bda3489b6fe741fac2249e9df6~87P82TdXA0339203392epoutp01H for ; Fri, 15 Mar 2024 11:35:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20240315113539epoutp0134f2a2bda3489b6fe741fac2249e9df6~87P82TdXA0339203392epoutp01H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1710502539; bh=ei6uKuFHNES6Tz2lkRZwuDlTAQukDr3qpC/ZyrUr5b8=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=rvN6rl9czyOhuEqDQYokPV2FU6HbTky8MkvTWDm7xYyJyA344VgoX7tundiSihIFa E9F6APy0xyVfNKxlD5zUptWX/2URthuwihQrO/yKLOaiRidNIMQkRv9zAoj51Faws6 w000B/Z8eZ4ew+EpGlYRqvKHyNLCxObaHRWwBKZo= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20240315113538epcas5p435e6d22a7e21c7eb693a923dcefe8038~87P8Mnr102078120781epcas5p4j; Fri, 15 Mar 2024 11:35:38 +0000 (GMT) Received: from epsmgec5p1new.samsung.com (unknown [182.195.38.180]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Tx2HY0N7Lz4x9Pt; Fri, 15 Mar 2024 11:35:37 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmgec5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 02.D1.08567.88234F56; Fri, 15 Mar 2024 20:35:36 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20240315113454epcas5p3a5663e477e0da4b9a6237acb72ea8448~87PTB2AHh2680026800epcas5p3d; Fri, 15 Mar 2024 11:34:54 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240315113454epsmtrp2ad74d84a85d8e88d650483e693a97a23~87PTA3H0h3050830508epsmtrp2q; Fri, 15 Mar 2024 11:34:54 +0000 (GMT) X-AuditID: b6c32a44-3abff70000002177-ec-65f43288d5bd Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 2A.2F.08755.E5234F56; Fri, 15 Mar 2024 20:34:54 +0900 (KST) Received: from FDSFTE462 (unknown [107.122.81.248]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240315113451epsmtip18aea286a6886ca9c902ce0c807f1000a~87PQOkNfX0872908729epsmtip1h; Fri, 15 Mar 2024 11:34:51 +0000 (GMT) From: "Shradha Todi" To: "'Stephen Boyd'" , "'Dan Carpenter'" Cc: , , , , , , , , , , , , , , , , , In-Reply-To: <9927a3356ce54c626ab4733844a4385b.sboyd@kernel.org> Subject: RE: [PATCH v6 1/2] clk: Provide managed helper to get and enable bulk clocks Date: Fri, 15 Mar 2024 17:04:44 +0530 Message-ID: <104401da76cc$ccc772c0$66565840$@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQH2hJCcwYDjJDqbclltz640cKP7jQL/AcmgAaOboDkDexFUCAD2UfeNAfilKBWwqCa/4A== Content-Language: en-in X-Brightmail-Tracker: H4sIAAAAAAAAA02TbUxTZxTHc9vb3paty12p44FlDqv7gBOkUrqnU14ymV42l7EZIDNTdmkv BSlt7S2gZmHdBgENL26DAI1W3IAhGwzLO9JFKoNBoqyBNDCGokUkEGRIZYH6srYXN779znn+ 55zn/7zw2MIlbhAvQ2Og9BpSLeb6oR3XQ0JCi/a4qPD1ZjmcNndwYe1X6fBvcwEGJ651s2CD qxqD1oV2DBqL3RxocTo4cLn4FgeO9pznwhvmQS6sGvmVBW0VVgTmP85HYVP/FAan8s9woH34 Xfh9uwuDz3q7MPjUcQWNFRGjDjubWBovwIhu0xRG1FiyCUvjGS7xl6OXS8yMVbKI1toviNK2 RoRYsWxN8DuSuS+dIpWUPpjSKLTKDI0qSvz+4ZT9KZGycEmoRA7fEgdryCwqShx3KCH0QIba Y04cnEOqsz2pBJKmxbuj9+m12QYqOF1LG6LElE6p1kl1YTSZRWdrVGEayvC2JDx8T6RH+Flm +nBZMaqbFJxsmJhjGRHrC2cRHg/gUnD/xodnET+eEL+KAMtgJYsJHiLAOHNrI1hFQLtjzRPw fRWli79zvSzErQj4skXDiOYQcLuvAvMucPFdYGbsMdvLIjwZjJ2bZHtFbLwQBT9c/9lXzcdj wb2bQz7294gKlx76GMXfAOOdd30swOXAXeLkMPwyGKqeQb3Mxt8E9ZcW2MyOgsHavXqO148I TwKj9TgjCQC/rRX75gK8kg8W/ihFGc9x4MpKPFPqD+YH2zCGg8DKAyuXYRW43Fq10V4NVltr N8zHgGtj531t2HgI+KVnN5N+DVQMN7OYsS+B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lTs58wgJiMwtoS/Q+ bGWEsZctfM0McZ2CxM+ny4DqOYCOCJO4vEwAokRc4ujPHuYJjMKzkEyahWTSLCSTZiFpWcDI sopRMrWgODc9t9iwwDAvtVyvODG3uDQvXS85P3cTIzjytTR3MG5f9UHvECMTB+MhRgkOZiUR 3jrFj6lCvCmJlVWpRfnxRaU5qcWHGKU5WJTEecVf9KYICaQnlqRmp6YWpBbBZJk4OKUamCa6 6dq//iJZ3+3ouX9Je9GnvWc5ZBw2JM6X2DJLdu5nBYN/S7+7tE5/8yJVxGCl6f7fn6/z9M3+ W+CyzvByh6J71JUY9o5ZvSKFh+0rWHUMmCwvWvf+enPMW/tXYEpZxH+ZuW+/WD3vU+92jan5 Jebq2HOV89W7XU9mHGdZ9ENJ9Y3tth1FU96om9t6Jll4zV45Q6J07c4T3vEcqZHXpv+9yzDL 59a6SPFJpmkfO3ec7bs5efuEZz/mhXO5CGyeMd2XJX3tgu9hrxZ411ybffvn/Fjbp5LJFuqz 72qmud3fmvfSq3nVh85JBZvqP0s+rNYLdA3uiz709vFjE7HXS21uxzxnyzi7ZusSe4Vb0ZeU WIozEg21mIuKEwEqsX+lawMAAA== X-CMS-MailID: 20240315113454epcas5p3a5663e477e0da4b9a6237acb72ea8448 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240220084120epcas5p1e8980539667c3d9da20f49fc645d8f4c References: <20240220084046.23786-1-shradha.t@samsung.com> <20240220084046.23786-2-shradha.t@samsung.com> <022301da6fbf$aae4f7e0$00aee7a0$@samsung.com> <9927a3356ce54c626ab4733844a4385b.sboyd@kernel.org> > -----Original Message----- > From: Stephen Boyd > Sent: 09 March 2024 06:21 > To: 'Dan Carpenter' ; Shradha Todi > > Cc: linux-clk=40vger.kernel.org; linux-kernel=40vger.kernel.org; linux- > pci=40vger.kernel.org; linux-arm-kernel=40lists.infradead.org; linux-sams= ung- > soc=40vger.kernel.org; mturquette=40baylibre.com; jingoohan1=40gmail.com; > lpieralisi=40kernel.org; kw=40linux.com; robh=40kernel.org; bhelgaas=40go= ogle.com; > krzysztof.kozlowski=40linaro.org; alim.akhtar=40samsung.com; > linux=40armlinux.org.uk; m.szyprowski=40samsung.com; > manivannan.sadhasivam=40linaro.org; pankaj.dubey=40samsung.com; > gost.dev=40samsung.com > Subject: RE: =5BPATCH v6 1/2=5D clk: Provide managed helper to get and en= able bulk > clocks >=20 > Quoting Shradha Todi (2024-03-06 04:13:03) > > > > > > When clk_bulk_get_all() returns zero then we return success here. > > > > > > > Yes, we are returning success in case there are no clocks as well. In > > case there are no clocks defined in the DT-node, then it is assumed > > that the driver does not need any clock manipulation for driver > > operation. So the intention here is to continue without throwing > > error. >=20 > Maybe we shouldn't even return the clks to the caller. Do you have any us= e for > the clk pointers? The intention to return the clk pointers was in the case where caller wants= to manipulate a particular clock in certain conditions. They can obtain the cl= ock pointer and use clk_set_parent, clk_set_rate on those particular clocks. But I understand that in that case users can use existing clk_bulk_get_all(= ) API. So, should I go ahead and send v7?