Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2200176iof; Tue, 7 Jun 2022 23:01:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa3xT9Y1mjo5VF0h4NgDwU4feFI3sn7ZQuOJzIdsnKafgndpLm4nXt+KPg7Jdg4RrkNQPC X-Received: by 2002:a05:6a00:c88:b0:51c:1001:65f9 with SMTP id a8-20020a056a000c8800b0051c100165f9mr15827393pfv.66.1654668093157; Tue, 07 Jun 2022 23:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668093; cv=none; d=google.com; s=arc-20160816; b=NWTl/OCKw3TMNQxlEALJLAGca79T19hqVDNSv23ptw3pzZO96iCxFtjskzMw/ZKwkF 3h643ZocL5UMYMJdr/IYAq61bThC3GRtWqs1Odg8+pyGZE1s74gPSfkGQ6DeVEnNCAWH EEvP3YID0y7HqZo0jPMMog5WUWVnJ/LcX5g7ozwmLzH2XC2YpDwHlJ2Vxc6rw/rcf/bm khDF7QOvlmDon1Sdvd3DFuvF4f1zVr4QvU3vOaWgrx8GvUBPdv2vQecLpXhPJH8h08WO 9vASHcgO2lsP8PW1fM8oHPUQIHJ+qGU4XjFKfsLoPBfXn5iIKmy7bX1y1bpesuxMXuLw 7AkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sHYDbrlKdBSnhIM3YW0bhd60CAVQwVu4zDdXRUEHqDU=; b=gcZSzCHB5v8zCXQcumsJwXwrQErlXDz5oNFdUB2YtP8X21+1PdHe3Z0Jt/4KtWNyjs wl6ZXFxijJKTVjeyXyOMq4fKorl+HyBVOXhPKt6rZXE9+7ZIDBWO5lVUTEFViwbCFuaf VYBuy5r4RUDGfoZuGZX0VNqosQp3MXf2sO32hG1T+bRkelQ8XFoq8SjloPb6X5fyCQeR gkzrdnMlmzaz7YSpmCV76IKSPL8emrdu0exQ4IEnsCvHyorYcWfcC6Z7N9UP6Fx38Ex6 fR5iVtiFYUCN7NH8pvUup+i9860bPrstgyTO3504o07giXJFvRAWSRwnDNUt8+80MPpN MaPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="dTd6y6/D"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y5-20020a62ce05000000b0051c266ce245si9113000pfg.88.2022.06.07.23.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:01:33 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="dTd6y6/D"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B11CF201FF3; Tue, 7 Jun 2022 22:26:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347551AbiFHBOA (ORCPT + 99 others); Tue, 7 Jun 2022 21:14:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383063AbiFGWFK (ORCPT ); Tue, 7 Jun 2022 18:05:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E366195943; Tue, 7 Jun 2022 12:16:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BF7A7618EC; Tue, 7 Jun 2022 19:16:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CED0DC385A2; Tue, 7 Jun 2022 19:16:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629383; bh=ezIWh8hccCcDbpXP8PsD5HOqPX41+iBX/icva8GXBPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dTd6y6/DSFku9vWyIZMwpKTdSWuaaccyB6YV2+v510G/FrbeV1JKT4En/6lVy7ttg sYhdaFpPcIO1NAZhLTHQy6oiRjsy7YlFgElG6pePYUPdD7gtNzqXFQGcpBey5vYxbc 4+5mN2S4ain2hPHXoELEkWIoclP7MHjNPikUNaEg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yang Yingliang , Herbert Xu , Sasha Levin Subject: [PATCH 5.18 634/879] hwrng: omap3-rom - fix using wrong clk_disable() in omap_rom_rng_runtime_resume() Date: Tue, 7 Jun 2022 19:02:32 +0200 Message-Id: <20220607165021.250193926@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Yingliang [ Upstream commit e4e62bbc6aba49a5edb3156ec65f6698ff37d228 ] 'ddata->clk' is enabled by clk_prepare_enable(), it should be disabled by clk_disable_unprepare(). Fixes: 8d9d4bdc495f ("hwrng: omap3-rom - Use runtime PM instead of custom functions") Signed-off-by: Yang Yingliang Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/char/hw_random/omap3-rom-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/omap3-rom-rng.c b/drivers/char/hw_random/omap3-rom-rng.c index e0d77fa048fb..f06e4f95114f 100644 --- a/drivers/char/hw_random/omap3-rom-rng.c +++ b/drivers/char/hw_random/omap3-rom-rng.c @@ -92,7 +92,7 @@ static int __maybe_unused omap_rom_rng_runtime_resume(struct device *dev) r = ddata->rom_rng_call(0, 0, RNG_GEN_PRNG_HW_INIT); if (r != 0) { - clk_disable(ddata->clk); + clk_disable_unprepare(ddata->clk); dev_err(dev, "HW init failed: %d\n", r); return -EIO; -- 2.35.1