From patchwork Tue Jan 28 11:00:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 11354137 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4B787138C for ; Tue, 28 Jan 2020 11:43:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 33AAB24684 for ; Tue, 28 Jan 2020 11:43:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725903AbgA1LnP (ORCPT ); Tue, 28 Jan 2020 06:43:15 -0500 Received: from viti.kaiser.cx ([85.214.81.225]:39090 "EHLO viti.kaiser.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbgA1LnO (ORCPT ); Tue, 28 Jan 2020 06:43:14 -0500 Received: from dslb-088-068-095-017.088.068.pools.vodafone-ip.de ([88.68.95.17] helo=martin-debian-1.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iwOcQ-0008Dy-Mq; Tue, 28 Jan 2020 12:01:18 +0100 From: Martin Kaiser To: Herbert Xu , PrasannaKumar Muralidharan , NXP Linux Team Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 0/6] imx-rngc - several small fixes Date: Tue, 28 Jan 2020 12:00:56 +0100 Message-Id: <20200128110102.11522-1-martin@kaiser.cx> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This is a set of small fixes for the imx-rngc driver. I tried to clarify the approach for masking/unmasking the interrupt from the rngc. The rngc should be set to auto-seed mode, where it creates a new seed when required. In the probe function, we should check that the rng type is supported by this driver. Thanks for reviewing the patches, Martin Martin Kaiser (6): hwrng: imx-rngc - fix an error path hwrng: imx-rngc - use automatic seeding hwrng: imx-rngc - use devres for registration hwrng: imx-rngc - (trivial) simplify error prints hwrng: imx-rngc - check the rng type hwrng: imx-rngc - simplify interrupt mask/unmask drivers/char/hw_random/imx-rngc.c | 89 ++++++++++++++++++++++++------- 1 file changed, 70 insertions(+), 19 deletions(-)