From patchwork Sat Feb 20 18:29:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= X-Patchwork-Id: 12096965 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A18F2C433E0 for ; Sat, 20 Feb 2021 18:32:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 58F5364E44 for ; Sat, 20 Feb 2021 18:32:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 58F5364E44 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=4wgqUrfapTaNGoF7L4kOwMFRT6dRh0CjUWza7lRWOr8=; b=JFN3+4iwxVpjk+bE1HX/dxNLL3 a+NdNZUkb6f/TO89KYGmQ5kvec9qzMaPt/FpSQSbH1F1mcCXSq/q+f+dANXBcNTzbLVFqJ95w+qAA MAgx7yvadqfiSZKGWRYO669Kpx3l9IaV+xMYqb7/4KL77ApaWbYWbz9lAegjUfvl1V3k9btMb5Fti BGhOhXlZ3TDpMfzfhnqvW1SvxBQn3qXRQrV+m0yo6ySx2zdHT3FwHSw2ODvQXk4bU84hYUZzSje3C MmoGwJguFMuO6Vxfxg4XpKYwc2zpS5xQwq62Vr7aG/f0EN81Tn9fxtUg2mLRcXafVIKmr+sERqYb4 5Mr7e33w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lDX0g-0000xU-3n; Sat, 20 Feb 2021 18:29:42 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lDX0d-0000x9-Ar for linux-arm-kernel@lists.infradead.org; Sat, 20 Feb 2021 18:29:40 +0000 Received: by mail-wm1-x332.google.com with SMTP id w4so9840818wmi.4 for ; Sat, 20 Feb 2021 10:29:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=6hWDTEdBAXwx+lO4Qg45K9E7WWGnRAxPBEtbtmemIXY=; b=GG9eJKfYJsmV/mlV/H+/A8relxB+8IhsUxXDHYFDWub62SPeIwOJrz2FWJUsB53XIU DXv1bmRKJQidzIxsrXic1x4VFiOZ4st5ZaoHzo9ZCoMvgaLRpFwlL9WhhmceqDVG2UcK OyooWMrTPLpHuqRNy4YWHm17iGp4siBhe6rxPhSKkXIrQGIQS1UnNsTr1Mdougbxq9BX RI08Z6Lpr98Lc15i/KfZ7RTuA7GKRYitaFjnHkBiL+v6NMdOSDWTg04FDjr8M9NzOp+t sRqE8TZzjSplj3TXXpQ6nsaeEKueaOu3ZfPMwlzHuUnn3cD1MOKwfudFtr3oegKWmSKv G1UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=6hWDTEdBAXwx+lO4Qg45K9E7WWGnRAxPBEtbtmemIXY=; b=dd4U1icnF3Ak4h5BGdHzVM+IFQM8u4nCftwAxaui7waxpS8dvvz8rwI78SJCaiOXYK jd+m6IX8lL8rsfJhft2k9bNAcKpel/xYCcek5+ywzWgVZx0BPciLr1UNKPAkN3gFXl3A tpddGJaVIHnJETkvy95xam+tKKs34L+gUceJiZIThqJwtcjyRy6KyEjqyLUc/OR+wES3 aaltaaKx33ZYjpF6k1XDTsStVPceln+FAL/0FXzgk/Qys+mgG1/YlWwpUQkY7swWHwvU LXM+mYwwJxCjKpVQT6/2Esj8eqKwIv643wVw2wSOZ/mVK3U8MHWOP7ohwC43sUnc9BSY dWPg== X-Gm-Message-State: AOAM532+O8ATluIVJSHHYLN9SR6GixgaA95TdlWQA6ZuAWIWIZCnXS1j 95WO5HuC1XACTLUhYjgrXBE= X-Google-Smtp-Source: ABdhPJwOD0GvdhATabqqxveaXLZg4sDfX87LYDDwtZqkQNmfiy8UKmnnWeOXSalXHUQDxLvZWWEv8Q== X-Received: by 2002:a1c:9d51:: with SMTP id g78mr13750396wme.5.1613845778047; Sat, 20 Feb 2021 10:29:38 -0800 (PST) Received: from skynet.lan (23.red-2-137-25.dynamicip.rima-tde.net. [2.137.25.23]) by smtp.gmail.com with ESMTPSA id w81sm18038448wmb.3.2021.02.20.10.29.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Feb 2021 10:29:37 -0800 (PST) From: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= To: mpm@selenic.com, herbert@gondor.apana.org.au, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, Julia.Lawall@inria.fr, noltari@gmail.com, f.fainelli@gmail.com, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] hwrng: iproc: set quality to 1000 Date: Sat, 20 Feb 2021 19:29:35 +0100 Message-Id: <20210220182935.11247-1-noltari@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210220_132939_393593_0262FD13 X-CRM114-Status: GOOD ( 11.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This allows khwrngd to make use of iproc-rng200. Signed-off-by: Álvaro Fernández Rojas --- drivers/char/hw_random/iproc-rng200.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/iproc-rng200.c b/drivers/char/hw_random/iproc-rng200.c index 01583faf9893..e49868dd9b96 100644 --- a/drivers/char/hw_random/iproc-rng200.c +++ b/drivers/char/hw_random/iproc-rng200.c @@ -199,6 +199,7 @@ static int iproc_rng200_probe(struct platform_device *pdev) priv->rng.read = iproc_rng200_read; priv->rng.init = iproc_rng200_init; priv->rng.cleanup = iproc_rng200_cleanup; + priv->rng.quality = 1000; /* Register driver */ ret = devm_hwrng_register(dev, &priv->rng);