Message ID | 20230702173503.163152-1-martin@kaiser.cx |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp73151vqx; Sun, 2 Jul 2023 10:43:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlGlre/Qv1lhYQRxJGIbCULZiDtlOXIKbRWdcT/KluoywBGZysr1FbYyuprxvQdAWfskYz+9 X-Received: by 2002:a17:902:e002:b0:1b4:ddef:841e with SMTP id o2-20020a170902e00200b001b4ddef841emr8967592plo.4.1688319830058; Sun, 02 Jul 2023 10:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688319830; cv=none; d=google.com; s=arc-20160816; b=CmOTiX5RpxB2b+2D2DRaeCV//8hGF79SxU2KpwVmoGYZcRj6QEWHLnjR1xEHMG/nlf R75K8cz4+W1qjsibMAGCXoWK01wouENDsKiLXo7gfGuKz5ll+qCm2E/BCAPd3VXKZfxq lkSoWO/8AjWha5QfUJXQEKBfb2jUV1q7DF88DjcwnRQ7By+J+tPvRU5qhonHqybW372t vdhbaTdrM0n4TVy6gjJxY7BmyZ58P4HFurh5KsnJ10zEkfgSrI3V6vm6lh7Kzt0W88Xq 8/7b3AiCbg8HByZagej9dm4dJiq02mW6tHiYKHW8Py+YMT/c5nnrt7c1ClO/mM95oAcA gVlg== 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=RCeSNpgVeOgfuTyva+Aq25lACJafholFo/fF2DsL86uXiOyLEGuIlhXS3uIrX4fLSG bZoIs9CbG38mXrHv0p933tilqj8UJXnm8Iv1KXIM+Eorv1bFNJW/5SYvAvIc8RWidfO7 zQR8xI3dmWztZlwM0jCKfyz1m8nL/qKUlnC1C70eqNZ7hYVojTCsg5EEwEpyjgJdEcPU +V9Da9lWi5IjdMgMTe2tHsba6Hk7LdSMYIv4L+Pn81bbvmenae1HzqrUSFGr0wqIEvVK 5Ry4/fxcfDEfWe1g1kx91cuvgZgPYtwhZF2sQCS0cUY1kJszzTdOVEoU0Y+wJ5wUJc9Q M34A== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l5-20020a170902f68500b001b840b02ee1si9199292plg.496.2023.07.02.10.43.34; Sun, 02 Jul 2023 10:43:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229826AbjGBRhB (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <martin@kaiser.cx>) id 1qG10J-0007s9-RR; Sun, 02 Jul 2023 19:36:55 +0200 From: Martin Kaiser <martin@kaiser.cx> To: Herbert Xu <herbert@gondor.apana.org.au> Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser <martin@kaiser.cx> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770331654129791724?= X-GMAIL-MSGID: =?utf-8?q?1770331654129791724?= |
Series |
hwrng: nomadik - two simple cleanups
|
|
Message
Martin Kaiser
July 2, 2023, 5:35 p.m. UTC
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(-)
Comments
On Sun, Jul 02, 2023 at 07:35:01PM +0200, Martin Kaiser wrote: > 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 All applied. Thanks.