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 A62241D07B5; Wed, 2 Oct 2024 14:48:03 +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=1727880483; cv=none; b=t+JaOYXUce9O1wTSxkmrF3LmsJW84fPHbAqpIlIQDDifaP5vZyD/iiH1QL64QOr3lDzgYDXNTE4OR+t3QRlxtuRtEeRNsakZL3F/tcSV/WtAUYZe7FrJKGEnrmoIoRAPSYAsofPepLRzPrTRMkkxIQfszaskqSYpBZ0fQoHHzyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727880483; c=relaxed/simple; bh=QXdufx//RIdtBAsFZxWKNJYeRNuuh56OXJohTwe7B6w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uR5wngjd6sgPRauTzeYtlKKBrSv4yEQl27CzLudxGvH5InvBWVXpCRfDDU78WGMs7PycS3YMKU6ro033GmqcQRl01w7xqunRfLMx86pLTNDL73UvvBPZe3IkC1UQ0F7oQry18gBCl8npKmS03+BUYHHJpRxLvppHpDXGgztxcws= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=I7+Zylkp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="I7+Zylkp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F9F0C4CEC2; Wed, 2 Oct 2024 14:48:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727880483; bh=QXdufx//RIdtBAsFZxWKNJYeRNuuh56OXJohTwe7B6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I7+Zylkp1uZYbxZoApoC41H0+WwWmCEBWCTPv5LbmvzsZjxepVRrnOZI9ik9HLjSq lEqspyOm63trrkKyeqPv0NzzFOBZGmrf4H+L8W0laA/tix9UczphjPenRokKMyJM1T jiL61F8Us41s+StZeE0sjhIHITeYc+zYxy5doiS0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gaosheng Cui , Florian Fainelli , Herbert Xu Subject: [PATCH 6.6 467/538] hwrng: bcm2835 - Add missing clk_disable_unprepare in bcm2835_rng_init Date: Wed, 2 Oct 2024 15:01:46 +0200 Message-ID: <20241002125810.877290692@linuxfoundation.org> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241002125751.964700919@linuxfoundation.org> References: <20241002125751.964700919@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gaosheng Cui commit d57e2f7cffd57fe2800332dec768ec1b67a4159f upstream. Add the missing clk_disable_unprepare() before return in bcm2835_rng_init(). Fixes: e5f9f41d5e62 ("hwrng: bcm2835 - add reset support") Cc: Signed-off-by: Gaosheng Cui Reviewed-by: Florian Fainelli Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- drivers/char/hw_random/bcm2835-rng.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/char/hw_random/bcm2835-rng.c +++ b/drivers/char/hw_random/bcm2835-rng.c @@ -94,8 +94,10 @@ static int bcm2835_rng_init(struct hwrng return ret; ret = reset_control_reset(priv->reset); - if (ret) + if (ret) { + clk_disable_unprepare(priv->clk); return ret; + } if (priv->mask_interrupts) { /* mask the interrupt */