Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3140401pxb; Mon, 18 Apr 2022 17:04:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7nvSVkmML31G5Ey/pOFkyyK7v4DUFapPA2AbCyMh11K/Ev/HLYj5GXycrFB5zVZxdMeOl X-Received: by 2002:a17:902:ee55:b0:159:79fd:5440 with SMTP id 21-20020a170902ee5500b0015979fd5440mr2737115plo.173.1650326685219; Mon, 18 Apr 2022 17:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650326685; cv=none; d=google.com; s=arc-20160816; b=GAf08c7jah7QjVfr8H2gR+yX90obpxc1neyyhRYC1bGWFLd/Tu1uqDeRB2uOSWOHpL K4eJYzq9lZXPlfgKUoHsHB25dnfB3vFKr7Bh8Es2IrqK4c5qZ7VqgeF+wy4oA2mxZf8F 4fT6569g55Q8t+3LIrbo7K1Q1yameWh95hT60ccabRiE3Y4oASPTnDqdu/mjOqZ06nGU 4o4E5dyL4YptWBEPAPAV9T4yxU7+TCHPOs+J+/PJFMeUlC1t+sFW6bd29NtwUc9kz9Dx EzCylzj+vjq7AY2GAtkVDHJF0b30EWhXbeZ6t1o2R4yIuOsk3xWF1HtWzefcppozxcsb wjcQ== 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=q46chGvzBHB7aU602oE2hl0f8neQUwXyspQ+a6Luumc=; b=L9jjDJmkvASnFdxbSrVj2efB4gUM7LYNMz2tmS1E/1ibYocwiwFYykQjOfjOywhFk7 Jy3NS8oiINilY9y/OMp7OIL0yB/25K+zP5rhYSdeyetdC3Vth0yeMDxMf3qCogDidTIL zIBSkvXX/PyqhSxDhvhLVpyFv4MbaTxOPo3d3E2TQJYscT1FvQy6r5QyC5Z26bby/zd2 S2cm6kQN/L6W1BODodx6/FiQfKlCy2cD9fyXcEZVh6I6Fo3pkfqAlcsSqKUyjlgC5ZVz jC/Oe4o3iCOUHpFrJjj12RnOdK73nK/Bv7lp8EmXmCznjuwnh5ovTJ2Ss5YZjNtdbL3Z 8PiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fmOQD4DD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r14-20020a17090a940e00b001cf9b0e74a6si536976pjo.175.2022.04.18.17.04.28; Mon, 18 Apr 2022 17:04:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fmOQD4DD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243659AbiDRNiR (ORCPT + 99 others); Mon, 18 Apr 2022 09:38:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243913AbiDRNKg (ORCPT ); Mon, 18 Apr 2022 09:10:36 -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 1FE4F21833; Mon, 18 Apr 2022 05:50:09 -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 BEC0061257; Mon, 18 Apr 2022 12:50:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C49E6C385A7; Mon, 18 Apr 2022 12:50:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286208; bh=5ei0AvfUFz5VyRFx6wipvp0Rm05AiCHILJrtzFpMfyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fmOQD4DDCT4I7oo0x03HPTIhijZKImZ5MYuOWeFARrs22OiOcBuQShh+BWgGyb4O+ 49zqfPo29Z/TYdd2b1UUN1LAno+BZbqQX7L+4a2cK+fj+cwmniCpxI7NB/v0rLH5EK vgK7HWZUf9Oyt7sKo0FmxwVCb8WGjJ59Lreg1VJs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , Herbert Xu , Sasha Levin Subject: [PATCH 4.14 062/284] hwrng: atmel - disable trng on failure path Date: Mon, 18 Apr 2022 14:10:43 +0200 Message-Id: <20220418121212.455206444@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@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=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Claudiu Beznea [ Upstream commit a223ea9f89ab960eb254ba78429efd42eaf845eb ] Call atmel_trng_disable() on failure path of probe. Fixes: a1fa98d8116f ("hwrng: atmel - disable TRNG during suspend") Signed-off-by: Claudiu Beznea Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/char/hw_random/atmel-rng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/atmel-rng.c index 661c82cde0f2..92a8960ceba5 100644 --- a/drivers/char/hw_random/atmel-rng.c +++ b/drivers/char/hw_random/atmel-rng.c @@ -95,6 +95,7 @@ static int atmel_trng_probe(struct platform_device *pdev) err_register: clk_disable_unprepare(trng->clk); + atmel_trng_disable(trng); return ret; } -- 2.34.1