Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25122541rwd; Sun, 2 Jul 2023 10:43:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlH/fXCEcbKAkuMlfqwK+HevF2zC7BGsLucp5Z/xkEtsSSagLapI9cMqYhwT/U9W9Wf5+w18 X-Received: by 2002:a05:6a00:8016:b0:677:3439:874a with SMTP id eg22-20020a056a00801600b006773439874amr9539129pfb.3.1688319819837; Sun, 02 Jul 2023 10:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688319819; cv=none; d=google.com; s=arc-20160816; b=nYKnsTix98khvX7DPmL/gkw6BdJEKg029QWnYa9sPIM3TMDgf5jTXPze2vGeIFBed+ GEEUYNYwBzW1Oyfd8U15bNQ130nrpSB0Pga3phOrdE4XsENNdE6gLwJ0jLMSOqBUUG3R EBl6L79rX5cHCcozbRSEAXgFvqV0j39swZxxQIO5pWuK2r5uJcavX3w/HJ+71oHn8f8E Z1XA5w/Pjrc7FOz6Zyn7j1d58f3m8u0PEeKhcKcfo6Pgdp24ITTKOKrGjIG+ywU4mKR5 Z/CSLU6xleoHejFvNzH5ezXikf+4yBJPOsNksdtJCgNIQHf9+wWNOKBiS2x9Kftd5m6i hROw== 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 :message-id:date:subject:cc:to:from; bh=+6VmhFZcXwNJyZnZMBTiFzg2Je4uqHUC4b6TamVlrpM=; fh=SqCs7KZ8ytcbnkiRESvNRChZIthYOwhcUjFjEDfWP4k=; b=bLEHDm91svenRPaqNKXTBvTUcqsqArAyXyfrKn+G2GqBVgkePec+QU6yHEIjPZRfQr KHEvir9kgEVTGeG6TovJJgG7Q5F2I1nvVs48T16XtUbtPAsyL2iCn5zMNXNkzQkQP4ax 6ivCEcNmdAiAU99Kzl+DNgAmHIzkaxjrs53SJqMKopcnICLkN6H0bmZTMDa0jRp/G+dr UFKmPFot72aYPV3R0ijwFYePDlJ4+CaOkO+nZE+zBmRk31lVPFRp2uzMVkqFc2x3MEvs n2Bo8vXPioPO9kEkWHIuDXz69RM6kCkIL/OX7ukmVKXaAZXgsNVooFRsr7uJwCfvHVYw pDOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y31-20020a056a00181f00b006749ad285e8si15253541pfa.97.2023.07.02.10.43.17; Sun, 02 Jul 2023 10:43:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbjGBRhB (ORCPT + 99 others); Sun, 2 Jul 2023 13:37:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbjGBRhA (ORCPT ); Sun, 2 Jul 2023 13:37:00 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 312E1183; Sun, 2 Jul 2023 10:36:58 -0700 (PDT) Received: from dslb-188-097-041-125.188.097.pools.vodafone-ip.de ([188.97.41.125] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1qG10J-0007s9-RR; Sun, 02 Jul 2023 19:36:55 +0200 From: Martin Kaiser To: Herbert Xu Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 0/2] hwrng: nomadik - two simple cleanups Date: Sun, 2 Jul 2023 19:35:01 +0200 Message-Id: <20230702173503.163152-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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-crypto@vger.kernel.org Use devm_clk_get_enabled to fix a (theoretical) race condition during removal. Call dev_error_probe to print an error message and exit. Both changes were compile-tested only, I don't have this hardware. Martin Kaiser (2): hwrng: nomadik - keep clock enabled while hwrng is registered hwrng: nomadik - use dev_err_probe drivers/char/hw_random/nomadik-rng.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) -- 2.30.2