From patchwork Thu May 20 11:35:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12269751 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=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 691A4C43461 for ; Thu, 20 May 2021 11:39:12 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 2B8F361090 for ; Thu, 20 May 2021 11:39:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B8F361090 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QUq2MzDeDQXJt73c+eDPu1rNSOy9/yXfg/LrzWYrRYY=; b=bKFE1T4XuDO+lbz5YqsxzNxDwI Puctm0m99BJEqMnTEwj/MYWfWwArnIh7RjkC6AzKWFO8EmXIjvQmsJsOVyhacl0E0GSPb/I7Xci9K wiX07YD6aM1rSWWmutIc21uzc2SHogep/74DSUEmxI7cHMcaoJqUu+o8qxaUcdad7rcWM3i+c5H7l NPn73sm7eHvyKv7pkbFeuJ6biSU9FjKh10twitHbEZFqvZV21MyXD39AL+xdhYzXaVfCChtUPC8ye ZxaVyhNAJgVHZjZZppw5u8f2zNuuelL6qhT8btRkuG0TpLhvHZQ6ZZABxOX319MFZp+VSvWY69PK9 jX8X3W4w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljgzh-000WRL-2V; Thu, 20 May 2021 11:37:38 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljgxk-000Vkn-OX for linux-arm-kernel@desiato.infradead.org; Thu, 20 May 2021 11:35:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=8NZnA7V+z/EHW9keu1iVSVZG84qryZ9Vb6MgLmI5Xdk=; b=KCcfg3EnemNaghLesY0HuAcMMR ws2LdFiotE+3HOjU7DMrD5YcXK8PSnjCBdR/ZtZxvvtRoHzfp9/1W1hbN/oZYVHEwffkvd0rOHsfO MSwNXFIVRonvs7/BcBTXsd6XoU9jVuFRuOBYXbd7cJRcq92fMo8lE8nzR/qXGsXkcKlof4uUlt4R+ SlfBB0tP8OzGDAGAOPoW5PAw3C1TvgR/hDiaHvv7ndKvlnEhTKccH85MR+rhvSfCaZ+fHLGvwfgte bE2xwHqv734CfKaw7U78vDDQCLlpDCxGSFFD00KeUJIQ75nqrkp42bagmm6g9w6w8LSMZ6jK3j3u8 dELiiZoQ==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljgxi-00GFvg-Cm for linux-arm-kernel@lists.infradead.org; Thu, 20 May 2021 11:35:35 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id EBB236139A; Thu, 20 May 2021 11:35:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621510534; bh=+OylOm4Xj8hBbMUtVil2h9pLATRR6MkYlmUTGrTyvwk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dd2G9td5G8U2vepQ8ECKHyqFX2sgaknt7JBZMpDznOWe2eHaYjRaUssw9mQBdcwOJ o1UyU/ws56UB0xma4x5fRaSAoVDPxVG00Ld0atahY+rNsdz0XcHpo45sEm1+o+cefj dnoBGEoBQKkHwEYtHxVeLFoWVDj0EzEx//xUn4EYhc588GJ30X/XPi5FmThhk0l7C7 I+nbPW+OjNjn+kcz586nO9D4VW1YgsWQ4sfDj/dJ3l6oeUHX4HV9OdYbAqhd9xNe77 BhXtjIy/nvojQPjQ9QYrNi3D5ymuCnjPI1xbWWKKUM7egx328CU3i2YeGrMCNKywJS w7MeVDJhjuhdA== Received: by pali.im (Postfix) id ADE929D1; Thu, 20 May 2021 13:35:33 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Gregory CLEMENT , Andrew Lunn Cc: =?utf-8?q?Marek_Beh=C3=BAn?= , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 mvebu 4/4] firmware: turris-mox-rwtm: show message about HWRNG registration Date: Thu, 20 May 2021 13:35:20 +0200 Message-Id: <20210520113520.32240-5-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210520113520.32240-1-pali@kernel.org> References: <20210308153703.23097-1-kabel@kernel.org> <20210520113520.32240-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210520_043534_477107_BEEFB192 X-CRM114-Status: GOOD ( 10.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 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 Currently it is hard to determinate if on Armada 3720 device is HWRNG by running kernel accessible or not. So print information message into dmesg when HWRNG is available and registration was successful. Signed-off-by: Pali Rohár Fixes: 389711b37493 ("firmware: Add Turris Mox rWTM firmware driver") Reviewed-by: Andrew Lunn --- drivers/firmware/turris-mox-rwtm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/firmware/turris-mox-rwtm.c b/drivers/firmware/turris-mox-rwtm.c index 3ef9687dddca..1cf4f1087492 100644 --- a/drivers/firmware/turris-mox-rwtm.c +++ b/drivers/firmware/turris-mox-rwtm.c @@ -542,6 +542,8 @@ static int turris_mox_rwtm_probe(struct platform_device *pdev) goto free_channel; } + dev_info(dev, "HWRNG successfully registered\n"); + return 0; free_channel: