Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2180500iof; Tue, 7 Jun 2022 22:22:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrN6lY5VJR8NiHi0sgajI6r2KXftmqovTy/WAXZv4UvCpDqTssIiA/F4JJo17QCMUWqpv/ X-Received: by 2002:a17:902:f254:b0:164:1078:2c28 with SMTP id j20-20020a170902f25400b0016410782c28mr32260937plc.64.1654665752995; Tue, 07 Jun 2022 22:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654665752; cv=none; d=google.com; s=arc-20160816; b=cTJSdgBkmjX1mMoC8un4nLJeicr1OW9c8fLYQe5S/aB5fhIWCgadRG+9JQc2WnMzE4 41lJyQkiyWvRJSmibdhIIOCtqElESOpJ4zIedRAPOUOSLIbC0KvJx57UMajry0ElgIF0 +BxqB2PYzdDWclXHqgg0Tik+uBq7MCqNzn3VTNiVyJAyi61/uSBGovw/5Zpow7kZ8+3T 9CZ+B9iL96j6AkDaG/PUiqmm5iQ0DS5Jy0kiI3ADSN3DR3JuHWqS+WeCQ6x8CY4s/e4j Gy2BjUSnAmjovCVZFYrVdWeTVNY8L1igC0vgi0EG73US8v8DtJ0rQTUcJphhclHHaF/E y2TQ== 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=Od6RSG8dgoRIvEXOy/yb1aELnl+xSBAYw0ciwFJ6Mh0TDnMn5dYROe2ZplYiFP0LJR 5UThToHNjCKZuOgGJX6ldDX1xc0dLTzOzewWAPwe3dMkU+vFlG8wo/2smpG2PDfJhRZZ cMBYsx1sG8L7oCYlchZfn+0WZHgqjt/AQ5jzDZe1AwYCeYfDCLXAh9VuQAOD9fK+iSVr ZPwb7+nmo39aIRffR0YlSW2B3RkFwS3rEywrFRibjBvsK0+axv3zqSmD10reofQXXT0P 0JYi89obo0wJkS0NtK97sIIqliHRQ/HRDs1/q/Q92W4J7bGuCcdlVfLo4nNxbHRY31vy E0hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pdAr95Dk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t69-20020a638148000000b003fca01bf92esi27606381pgd.482.2022.06.07.22.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pdAr95Dk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95B4924E041; Tue, 7 Jun 2022 21:49:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347840AbiFGRyd (ORCPT + 99 others); Tue, 7 Jun 2022 13:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348415AbiFGRgU (ORCPT ); Tue, 7 Jun 2022 13:36:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6A971EAD8; Tue, 7 Jun 2022 10:32:40 -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 ams.source.kernel.org (Postfix) with ESMTPS id 49999B820C3; Tue, 7 Jun 2022 17:32:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B08FDC385A5; Tue, 7 Jun 2022 17:32:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654623139; bh=ezIWh8hccCcDbpXP8PsD5HOqPX41+iBX/icva8GXBPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pdAr95Dkw7senLiesz/DBaETks1cShn7FrBOYG2cv5Zjh5NIfyA+ko5U7gQIVPgWq iZVeE13cmQNAsBtYhA+/dR1fxxg32F+JDSLGZ8Wg8Pk1WO8lwQots04mT/EDIzr/Rv SpP6hwPBe4L3NBlvHxJmdxWUi2VjJrmkuvipHpUg= 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.10 309/452] hwrng: omap3-rom - fix using wrong clk_disable() in omap_rom_rng_runtime_resume() Date: Tue, 7 Jun 2022 19:02:46 +0200 Message-Id: <20220607164917.766282515@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@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