Received: by 2002:a05:7412:1492:b0:e2:908c:2ebd with SMTP id s18csp749378rdh; Tue, 22 Aug 2023 09:32:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEB3v9duPaUOpMr0Wvc1fn7hftRDWvJlYYb1KbZL7ZV1Q0D1JevJWc3vh63VptqxoJEE1iy X-Received: by 2002:a17:906:3199:b0:99b:dca9:5b8f with SMTP id 25-20020a170906319900b0099bdca95b8fmr8083799ejy.56.1692721934368; Tue, 22 Aug 2023 09:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692721934; cv=none; d=google.com; s=arc-20160816; b=rJTH0ZfwY/vKFrDRcvhBO6IAFi9lAJ5OTMorrW8rZHLKsqh4n1xZ5wBlKaZvVwqy59 T3vaGnJFd/MuBYSox5/1UEopalZwIuPHNfi3eiJPH/8gh0fAWJrPyOYxl0iN7vzubiaz zjiBj7k9AWqdd2PpJQfzEL1MjX7j1PmH9aQ/twe1AayQDWXYq00gJB9HXC1uEYB4NML6 tqBCZs0tK/pRz0keiCMzLkE/NSU5vUc+LpTLJF35LOXDfxnaI7oxqSxAA95VSgfWuiiL ziL1bp/FzUzbVlzHwWqmWuxVcODt5frMOAXV3Wk8LQLLZxlD3t4hwKRbJeff92YVsQPS HIOg== 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=RXgu0mz6qVzgK+k7nGXaqdBc9hRcng8aloXut6kVOdM=; fh=dVfXhkbP60ZT4KVr26y6imwTSq8xUCJNaPCgpFL70HA=; b=CbiE48ba9l2DPcAD6vJMWQNuObaKXw9msvoG/eQb/uG4hkJompdl6Jrj1syJD68CzB DIKhoPB1sPm0LsT+30zbzCt17R+udPXIIazL+VqNR1xJYSj86oO27DPqVuZUHRf/G3yH MZIER4YqkFRklfu24S3N6RfBbP6Qu6S9kQmDBYZsRImN2CGP+ns8BWFoxcWW9XpDqAlc GAhvSU1WzRqgmMjOPNa05mNeVpuTWD75Qxm4JshSnr/x2OXJiujv6PR9/iSHKrdsYTyK lMjiod/tp/FTZHw2ezJDWMPe/3WsPja441w0cwvGS0tXjBj2T0kdRp7eIATQIY+gvUPK pnoQ== 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 bi20-20020a170906a25400b0099bca8453f0si7447368ejb.764.2023.08.22.09.31.44; Tue, 22 Aug 2023 09:32:14 -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 S237074AbjHVP2h (ORCPT + 99 others); Tue, 22 Aug 2023 11:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237067AbjHVP2h (ORCPT ); Tue, 22 Aug 2023 11:28:37 -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 B37C1CDA; Tue, 22 Aug 2023 08:28:35 -0700 (PDT) Received: from pd956d63d.dip0.t-ipconnect.de ([217.86.214.61] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1qYTJ1-0006li-E0; Tue, 22 Aug 2023 17:28:31 +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/3] hwrng: imx-rngc - use polling instead of interrupt Date: Tue, 22 Aug 2023 17:25:50 +0200 Message-Id: <20230822152553.190858-1-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 polling and wait actively for the self test and the initial seeding of the rngc to complete. This is much simpler than using an interrupt and a completion. Also, there's nothing we can do in parallel while self test or initial seeding are running. Martin Kaiser (3): hwrng: imx-rngc - use polling to detect end of self test hwrng: imx-rngc - read status register for error checks hwrng: imx-rngc - use polling to wait for end of seeding drivers/char/hw_random/imx-rngc.c | 96 ++++++------------------------- 1 file changed, 16 insertions(+), 80 deletions(-) -- 2.39.2