From mboxrd@z Thu Jan 1 00:00:00 1970 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 6976C1AB6D3; Mon, 2 Sep 2024 16:39:01 +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=1725295141; cv=none; b=qQcM1CVsYr+GWKBhMj9g1cXAzThuf01HPmoiEwYpIJ6vkfR4+SBVfyYnfnIblFIS7OZNoMtFl9LieXqp2Fi79isLOzn3sadKWCYVQGBzSCswZda/uYCgaDIdGUgRC9O41LykxW9aTu9TwsRUTtTlUY0qnX42fpbPlRzDF4bB9cA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725295141; c=relaxed/simple; bh=THOWirjnif2PCoJgyUp+GH1dq/VbXAjyaMqmMGMYEYY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=nXzmapzJNKWS4G2eIBsL49uBM/65+/UQk0Hdj7XzckeK9m5GnD9vgAdVrzr0wdO93fo6uTtQp0Dlc4H9y7SeWq0UkoGJhFagleeeM8NN1hWT8sJFuUAWfgdUrTaonWmaE2jUpdeVRuiiISJhCKEh3w6Gh143DfpgVuc68fxwerI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LZYQXRGG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LZYQXRGG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD0BFC4CEC2; Mon, 2 Sep 2024 16:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725295141; bh=THOWirjnif2PCoJgyUp+GH1dq/VbXAjyaMqmMGMYEYY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=LZYQXRGGQMR4i8GrOz6Nvk9Mte2YR2JtOQ1HrrFs5dAU8NvnvkHkaLwCyexWjYdts ubDoH6lTtoo3lJ3OMooT1HxkdZbjY2OsIB0QGT+ktHIytZ698mxNnQSS8fPTDY28G0 5iLvTPev/gqdUwsbixADfRCPPrbNp+3GDl8hm+nImdtoSaWa86BcbY+6Ei0RES8iLl AOAwElrHsMcPFBvhvaafng1q0jE4Zz3SNXjQ9ZSUpJjLV86fRRbNj1QLcKXHOUcSMx k95sFsMmx4WARbzCI8l80Ur743CDSkT9rtMZLfnPR3DkVwewHV8LU00ZRabUpGsRS/ frSCIn8VVw79Q== From: Kalle Valo To: Li Zetao Cc: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH net-next 11/12] wifi: wilc1000: Convert using devm_clk_get_optional_enabled() in wilc_sdio_probe() References: <20240831021334.1907921-1-lizetao1@huawei.com> <20240831021334.1907921-12-lizetao1@huawei.com> Date: Mon, 02 Sep 2024 19:38:53 +0300 In-Reply-To: <20240831021334.1907921-12-lizetao1@huawei.com> (Li Zetao's message of "Sat, 31 Aug 2024 10:13:33 +0800") Message-ID: <87a5gqko2q.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Li Zetao writes: > Use devm_clk_get_optional_enabled() instead of devm_clk_get_optional() + > clk_prepare_enable(), which can make the clk consistent with the device > life cycle and reduce the risk of unreleased clk resources. Since the > device framework has automatically released the clk resource, there is > no need to execute clk_disable_unprepare(clk) on the error path, drop > the clk_disable_unprepare label, and the original error process can change > to dispose_irq. > > Signed-off-by: Li Zetao > --- > drivers/net/wireless/microchip/wilc1000/sdio.c | 10 +++------- > 1 file changed, 3 insertions(+), 7 deletions(-) wifi patches (patches 11 and 12) go via wireless-next, please submit those separately. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches https://docs.kernel.org/process/submitting-patches.html