From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5817FC54E41 for ; Sat, 9 Mar 2024 00:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Date:To:Cc:From:Subject:References: In-Reply-To:MIME-Version:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lGM1bBoI8H7UE+ibNz3BY2g8DKXrcbbAcFOEbHoWsME=; b=3StWD7ZTb/kZsG 7owNy0RbHOf3mpx0uikuHeLT0hpsXJr+fK4Eegg2hw6yHiunrjL6H2Ohv4panGXzyoGUIPhSTmfna XrV0sRmO+hFid/l58Hx+ChiRY5Uf6Wv3WiWGHhbTmIiYOXnOB0JG7N89x5hcMuprH/Fcwh3Tm/nzL nIs+HNX3FDawqJCjfdcOyECkTJ9yAIm1Sfa592InZIimtAIQ2V6gFhkM8XAjSRwI28a2I297wADou Sdlgf4Pmg+h1w5wVOWSf6dl5ukHKz0SUdnmOXtz287r2Ml9sJv0CWT48X25qAQQO20L1YN8PKqXxX afOEvAeGqrp7QmPRwh3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rikvU-0000000BrtP-0QTU; Sat, 09 Mar 2024 00:51:00 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rikvR-0000000BrsH-0yzM for linux-arm-kernel@lists.infradead.org; Sat, 09 Mar 2024 00:50:58 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 410D960E9D; Sat, 9 Mar 2024 00:50:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 883E4C433C7; Sat, 9 Mar 2024 00:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709945454; bh=lya7UhJlIblLkow5pi+zWUxuCvJx0mWepCjyI5q74Hw=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=AlYQNAi/w+AqpTz7UMH96zryBdO4Ut6giOEm5bqpeG4djkFZMNssmyPhzGzgWYyHl AqcIsihdf2byK4CIHEI2xRmtqB2ry66/N20TaX1Tvq1i5RbIGtcDF3NbcMcCViompc 94Sgf5jSkIz768wtCVsoh4I7eUdZpOaJ5/afdxHn5o04ghQhtO0ZNd40eMbnKOSw/8 BG9HIUx8JC9T4uI/GVpAwGfM7PsMzNE3JrRLiln9ThXUgjdCuRzJYcYaomgi5OePtj uu85M6C55SmLdFWrlHkVfjD1pqr5k3YWYd32Xw4oTqOZXtBWqlBHEOrnqQ+cdECQli TJnbP80exRjEA== Message-ID: <9927a3356ce54c626ab4733844a4385b.sboyd@kernel.org> MIME-Version: 1.0 In-Reply-To: <022301da6fbf$aae4f7e0$00aee7a0$@samsung.com> References: <20240220084046.23786-1-shradha.t@samsung.com> <20240220084046.23786-2-shradha.t@samsung.com> <022301da6fbf$aae4f7e0$00aee7a0$@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, 08 Mar 2024 16:50:52 -0800 User-Agent: alot/0.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240308_165057_341003_B95749D8 X-CRM114-Status: UNSURE ( 9.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Maybe we shouldn't even return the clks to the caller. Do you have any use for the clk pointers? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel