Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1148425lqt; Fri, 7 Jun 2024 09:15:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1KJ57baNVU0pL+j0moMom+NoNJ2d05ylVu7HZKjdOs/vRcMaS2DAxPJ1BvieCYi0FnJ3lAewf0RUVjWHyfKG5FsoyzbQUb2OxgXiyCg== X-Google-Smtp-Source: AGHT+IGpkS7YONl2/Tb+bxIZMzi8Jd5SfnBtut79iidQTDebHU1BCrcBQBq1kqZLiG8Mk1FIj4FW X-Received: by 2002:a05:6358:6f04:b0:19f:1149:ad9c with SMTP id e5c5f4694b2df-19f1fd02b9emr405185555d.2.1717776928197; Fri, 07 Jun 2024 09:15:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717776928; cv=pass; d=google.com; s=arc-20160816; b=SuiIH1b2j1sa7VU/oDQBMfBoWUvUkOpeC+kS8lojzRkde6LYvXFM9XzKQ7Rlf4K39P anu5nvFqUfXvZ5GBWzy7DRWcyJE6eEI/zXTnzgbSGQEXqo8H6IKouuOBrlgirP3a0GjA zmBDHhXkVuB31ByQekGeP2tNyzKlHsCrpCI/cwofwTaC3v6poiFwXS23KZH5YUgTF8BE JMbcB9FCM5Tk9U0i67SbuSt4heNpNJpf++E6U9wInFoV/JOlwoWgHs5JZKZQrDVHgNxP Q00hwJLPBD1Y+VsSKReLwb65b3sC7tFQBF1lxD09lxwHECyYMGwK2tyxpxiP5vlrUTeG UbfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=XQoepMshHik00V0BYyWwSxgPBNWsHQAq0EV3uoiMvJo=; fh=7qaclMdLuFrtJM3snyxwcsDAxVytyDLa2qNuM7N8icY=; b=EEujR1kqMlp3/C2h5ew1dTbWu86uQLVRY+FaHh2TrCeki+iy22QsWWOZ1NLYFRq2cz GZ53OHYcgmLaDNzeqQ+cFcAKpC7pGdHJJ8SiCHYKh+jBEzgzbDyKBKXMSHxmbIlvHsTy wsQ/AFYZWg+gwMdc8o/lMRbSj7bcoQB9IZ7Ne/U/bI6Qx56sSQEiN/PG8uyJmEpSTwu2 h07rrUXU2KA/xDcikX5RkLkb0r0kOz8eMwqhecFehsTUReqKPGloVhGQEXOfusjFcnRC VUxnlqBDLs+SuCxRJGm+hqO3k4DkAcy8PsGTTY1OOte8WAPFix0nwbHUgm4WvT1QaeUw LheQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=siH9tGIN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4851-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4851-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04fa45d62si41791946d6.584.2024.06.07.09.15.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 09:15:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4851-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=siH9tGIN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4851-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4851-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AD9ED1C22111 for ; Fri, 7 Jun 2024 16:15:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A305433CB; Fri, 7 Jun 2024 16:15:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="siH9tGIN" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE3131850AA for ; Fri, 7 Jun 2024 16:15:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717776923; cv=none; b=JRJNK916NMMMQYSbqYXRukcSam7Wxqp0mnlY15sdSV9i6rj4DaHAhwGNtzu1Oi2S9SYArE7YTZ56RJOfsABm7qSb40AKnerPYh5D7Esmeg/qn7/OLWnhkJETGKImZrHQ+kaoF9XbUdD+BLU4ZCZSaebaiNCNTg4GK6Op+w9sWEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717776923; c=relaxed/simple; bh=EVU9N0licjs0UeJIOtiEuJJs/gF6eA2Qsud/PZcHqMY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qg7Kod4R/o2YsLYwCiCcvt65+AflNL1VGUX8bZE2lp7DqO8Qtjxpj4Qb2knFlVvpdY9r6rkaINyCFFo51Yxs+ifOjeO2COoaMYZZ3BqMndkTfOMpuzoB/G5mclkHnORvF8M9cWTgnf87CSfPPaVfwGCcM9fxJ6rfvZ5teQ1ltDU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=siH9tGIN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F9DCC2BBFC; Fri, 7 Jun 2024 16:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717776922; bh=EVU9N0licjs0UeJIOtiEuJJs/gF6eA2Qsud/PZcHqMY=; h=Date:From:To:List-Id:Cc:Subject:In-Reply-To:References:From; b=siH9tGINYS+RQSfGXjlHx2/ykdX/Teg1wxvSW1B/kiE5GxbUG0UjZD04NOgfBDVEr wg1etkPy8l9TMT8JZmkCCxlhT15Llg1swybG3uGyxX9AcvRgnePzfPQwibUVsYRECg 4jk7AR24YxQgy3bNzBCRXCg+EENGe1kffAbEBt8/4nlCL7cKhIMGlP5x6W8129E2qO 76R6oyoEsyrXu5tWZ5EQeRTgR7sEejG4j8vcpnK3PoZ18OPPsQwRDl3uMw8vmvyWMz q+F5J0XtamCzxiDvKegkF9t9nEsu28kCP3PE0Tw1kc9bpemzf+qJa173vXHEXLd7NG Fve3WFN9OfOZw== Date: Fri, 7 Jun 2024 18:15:16 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Herbert Xu Cc: Gregory CLEMENT , Arnd Bergmann , soc@kernel.org, arm@kernel.org, Andy Shevchenko , Hans de Goede , Ilpo =?UTF-8?B?SsOkcnZpbmVu?= , Olivia Mackall , Greg Kroah-Hartman , linux-crypto@vger.kernel.org Subject: Re: [PATCH v11 6/8] platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG Message-ID: <20240607181516.72edb60a@dellmb> In-Reply-To: References: <20240605161851.13911-1-kabel@kernel.org> <20240605161851.13911-7-kabel@kernel.org> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 7 Jun 2024 18:30:24 +0800 Herbert Xu wrote: > On Wed, Jun 05, 2024 at 06:18:49PM +0200, Marek Beh=C3=BAn wrote: > > > > +static int omnia_trng_read(struct hwrng *rng, void *data, size_t max, = bool wait) > > +{ > > + struct omnia_mcu *mcu =3D (struct omnia_mcu *)rng->priv; =20 >=20 > Please don't cast rng->priv in this manner. Please take a look at > drivers/char/hw_random/bcm2835-rng.c for how it should be done. >=20 > Thanks, THX, prepared for next version.