Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp948951lqb; Fri, 15 Mar 2024 10:39:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXY9HyizDH/adO0LU362RfCi3DaoLjiEQbyNxkHgkVgnohddgIG98WmNLeKJt3FUNH+mbdX2U5pY3f8Ajn9N9+jKdREZu6Fmw8G27UVvw== X-Google-Smtp-Source: AGHT+IE+YCN3WFEqtvFxHHjFfihw8xqEj/HKVDCwXetvQ6hyMqck5j6NER54SB0RuAoKp4Xt/TPS X-Received: by 2002:a17:906:604c:b0:a46:2c1b:dd76 with SMTP id p12-20020a170906604c00b00a462c1bdd76mr3300145ejj.37.1710524393674; Fri, 15 Mar 2024 10:39:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710524393; cv=pass; d=google.com; s=arc-20160816; b=sW4S8zvulAQ1l8BYnYMh4rODvH5C2XvISAXW0JYCV4Ftf9vbglXPx8+hbppJ087pY2 n9iTH5uJB3/1SyswA6y7j1tUdxHRnymXGlUDNLb8fJdf+toBnp741qPHrbM86hHoNxbx JU5o0UnnOkNw+71XgWgF2K5aexQZuh5i6h2/1ywOzeS5riyOaDmhvZE6R7G0r9B+n5RX CxmYQ9aaOeXNfULehlSP/+eekgT4LAbqgqb20AjfRCIicbCwVmI9Kdl1UtgS6Q90pQKR oQ4dh9XVfuwZLvQDAOjMLy/I5DZni4h1rdTtitbcLtmZLUPx/HkCVx36+7WAmwOW3KK1 a0+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=ai18tQCxEsVNBTB9pI+Y1iMrP4vEbIDkN2V9bYFwEuE=; fh=kPO+9Mf+W+lO8YJvfRlax0vfO72lzpwIhuBXexK5YNo=; b=K+SKxyB/EWwZJB0cdV/oxNOGXUvkEvEZ8Lc1mj+wl4Lutit+DqIgJjaykSS4oiu4FF L7D/NxMB8b+J07MYMwvAF+n4tdT6TV6pgUYUFlcU8iMSUnT9enGS5BV0QXxLvuXdP6vp O62fhsW9uqNNJmn5tp+FkoNWJrtmpkijpJ2E6rgOw2i6HhF2hSd9WR9ZqGJ55JNtWzhV bb+A6V/MURhke6VmCpspdW2Mk5JoXP6HGAM+mzYNS7aSLtGg7ii2zz/ch/eXOze6BmE6 ht5dahPOGVRb7KqVh8bIJqws/TrCw8m/6IIx6UBS6nl4O1gYQvLVdue7/L5WOxTQa9Pp Zb8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ThLdkbyJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-104737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h26-20020a170906719a00b00a4643bbf213si1857960ejk.635.2024.03.15.10.39.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 10:39:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ThLdkbyJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-104737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 683461F22993 for ; Fri, 15 Mar 2024 17:39:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 305F04CB37; Fri, 15 Mar 2024 17:39:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ThLdkbyJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 491CF48CCC; Fri, 15 Mar 2024 17:39:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710524384; cv=none; b=ZnqJDvOz3YXgY1dO4vk8NOqIoxgSgigPtrQh+4aPKZdUHUCyEE8emH4u1f/XPusLFmP05BtXdsGaA6kix/Y2TU/slwt0jYEivCTR9PVqI4i7hwoc/yx67VkemYDWVvteGaEYtMBihPlwVtwW3tAzOWxUMfX0adeuYfnV/zzssXM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710524384; c=relaxed/simple; bh=ai18tQCxEsVNBTB9pI+Y1iMrP4vEbIDkN2V9bYFwEuE=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=Ez4X+FMc16ueVkjgsEu0ASRhpJE+Py1Mj7ZK42mWmURBAUv7RWJkOubhaVLtnl+aG/VOw3PiqepgDwONykhrbNYVaduhb1ZxPUkeiE1AXwaTm+Kd5JUqDzWa8Xp8n57u01Ppn6k5pvz6WXjQl9DczDwzJwVoWfOs0AknfvdH8l0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ThLdkbyJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2CE9C433F1; Fri, 15 Mar 2024 17:39:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710524383; bh=ai18tQCxEsVNBTB9pI+Y1iMrP4vEbIDkN2V9bYFwEuE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=ThLdkbyJzeqXntUTQRuID6VAibZEXVYVFM6dB+1fOnSd27f+XnR829DJjeNBCm1j+ 9SpPaxsqxbCGOllpEII3ySsorrIjPgVrzX/wHagrArgmzxZhBRrcR2QwlhkoPceqUI tmu8/g40EV8XycRGpPwTZDBbFeuTzVCzjNo63LGo35FhcgwAea7oYoFMqF/iKbHXsf uv/pfWhvhEpCfbDqZi71Pxkh5qCKYEg4ug16RDXIQcOivHGLjbfLXsfX/gTn5AizNK hWhFRYYPTHaN1Sw5kG2pATuVECNppdHAicbCp3u1EG2B0vOBFJlwjW+PzY6dkZGARD GuECh3L6Y/4Mg== Message-ID: <2688272d2763a36f401a08ca48c0eb24.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" 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 In-Reply-To: <104401da76cc$ccc772c0$66565840$@samsung.com> References: <20240220084046.23786-1-shradha.t@samsung.com> <20240220084046.23786-2-shradha.t@samsung.com> <022301da6fbf$aae4f7e0$00aee7a0$@samsung.com> <9927a3356ce54c626ab4733844a4385b.sboyd@kernel.org> <104401da76cc$ccc772c0$66565840$@samsung.com> Subject: RE: [PATCH v6 1/2] clk: Provide managed helper to get and enable bulk clocks From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, mturquette@baylibre.com, jingoohan1@gmail.com, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, linux@armlinux.org.uk, m.szyprowski@samsung.com, manivannan.sadhasivam@linaro.org, pankaj.dubey@samsung.com, gost.dev@samsung.com To: 'Dan Carpenter' , Shradha Todi Date: Fri, 15 Mar 2024 10:39:41 -0700 User-Agent: alot/0.10 Quoting Shradha Todi (2024-03-15 04:34:44) > >=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 = use for > > the clk pointers? >=20 > The intention to return the clk pointers was in the case where caller wan= ts to > manipulate a particular clock in certain conditions. They can obtain the = clock 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_al= l() API. > So, should I go ahead and send v7? >=20 No, I think this is fine.