Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp632016lqd; Wed, 24 Apr 2024 12:02:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcpLGd92t6xCKLEZNW1qqYd0NIqAlNhALB1tp2Nra2r4dT8/vd/xdN/E1COZrXYfkWow8oKsiOSsX0MP5PGBIUPFWdtwJ/zdthtDzGLg== X-Google-Smtp-Source: AGHT+IFkrVMOZGzddUGr6O7ib+uTAxj0pUEtBrO/rLWO7daUjCTy62OOe4Nex5pLf6IyNYmMN2ug X-Received: by 2002:a17:902:c40f:b0:1e5:5ccd:30e1 with SMTP id k15-20020a170902c40f00b001e55ccd30e1mr3347593plk.65.1713985344588; Wed, 24 Apr 2024 12:02:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713985344; cv=pass; d=google.com; s=arc-20160816; b=N/qeIgdLtnh7BqXRWN2TvVckNO7g2exMC6JinlCWpXusLEw/6RQ9D0RbNr4CCAMqOp XBoG922owKFAxiJLncrwL2UwM6/x5jST7HXYxtPyVHBczLQemuqcR9oTMaopKfCH/3si jl50E95xaEktePLCmOhm/yEsKkiWJydEYWFhCTRYrdASjFUMyy/ga/JqiVEYlke43ILi tSZB6zIcY4xtlE62GzloTWoquTjoZO0/3S79lBFZoFtd8MrE8aq6UCYBZ8w6vRv5bfGA HY1jonu4sF4RCHW6f3MTJN0MCbQy90g/alt2xONx7q8+gCGYgTMabCdwLHlkIhf3vLEP B7rQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date; bh=kYLE2mltA9Gd+A0Rqa+mJx7lki2OpnvtNj7svvGIjS4=; fh=+xMXiYvvyxWnylPpvGJGHxO5AdE0tqn17q7/q2XRASo=; b=J+u/ymZ2kQ+YVkkAPUm+9YgEuQxTDhCO13HyGvPVLBdcGrATw/uWvNd72u8rAFLuR6 9E2npSkm9yzF7iUjvLN0Uwin6iKb+YinOS+JmA/sURjWqylN7gegpD9Q+dOJjHi2iB74 zx8BNfKLbC05Zno3T0SByK+q+q4pkzgScVytMndXUyokGckshrPwI1ebE2B3f9LHS85C rZ0WyKf8brlBq/TRd+GisPspbbrpagRyoSAn8pjKtNNcr9NBmachkHhEabidfJ0h6Szp 07E8MrUckQixqEoFphpO+h+PryTa0H4Plz2hdAnb007EyOZFoRmIPC/dd2GXMiEir/5y Hm/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-crypto+bounces-3827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m1-20020a170902f64100b001e7903300edsi11714683plg.558.2024.04.24.12.02.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 12:02:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-crypto+bounces-3827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3827-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EA587B24A4D for ; Wed, 24 Apr 2024 18:35:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8FB115E9B; Wed, 24 Apr 2024 18:35:39 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 6FFF2256A for ; Wed, 24 Apr 2024 18:35:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713983739; cv=none; b=PrwyFOPYe7gES13Y82SiH7OFMC+Z8QNQ7b6pPFhHv3+fihFW6k0MyVHMM5yFxt+StiKIBHpo6Y+6CzvJPOzXvdlEhPFrFCr9ht1Z8F0Gs2lhv4+mDmzod8dfr66paJduXZ08+tQ7Hd6xlBaKmtJGz/uDm0b13TaLN0eIJqCzE9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713983739; c=relaxed/simple; bh=oDZwQgImVeCUBxSbmPb2CBIkIdZOlgHbROb7BGHgqwM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Unw4lZZbTd+oKr/BJqIcQCYMach7VOkJoxzW+Kh3TuFl0mt3AGpx9FHCE/A7vTm0ivJO9/g6F2GVrBo+JV4X271ry8asUky/bBUKhWZslxVW9iU+XosPXPfi4ol6HfaVZKHyEI1jBcTUpckn0wOsFggZEl/28sBxtRg/C9Hj41o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=fail smtp.mailfrom=kernel.org; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org X-CSE-ConnectionGUID: dgM5GxlxSIG7Cbs7QhbJNw== X-CSE-MsgGUID: vg6EnTS1S+GAsiORfMPzvQ== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9796655" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9796655" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:35:38 -0700 X-CSE-ConnectionGUID: PL6o4XGlQHu3UA7PuDzwZQ== X-CSE-MsgGUID: yLUAZd31TGylQKKUnt41cg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="29436829" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:35:34 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rzhSt-00000000kZV-3POF; Wed, 24 Apr 2024 21:35:31 +0300 Date: Wed, 24 Apr 2024 21:35:31 +0300 From: Andy Shevchenko To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Gregory CLEMENT , Arnd Bergmann , soc@kernel.org, arm@kernel.org, Hans de Goede , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Olivia Mackall , Herbert Xu , Greg Kroah-Hartman , linux-crypto@vger.kernel.org Subject: Re: [PATCH v7 6/9] platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG Message-ID: References: <20240424173809.7214-1-kabel@kernel.org> <20240424173809.7214-7-kabel@kernel.org> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240424173809.7214-7-kabel@kernel.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Apr 24, 2024 at 07:38:05PM +0200, Marek Beh?n wrote: > Add support for true random number generator provided by the MCU. > New Omnia boards come without the Atmel SHA204-A chip. Instead the > crypto functionality is provided by new microcontroller, which has > a TRNG peripheral. ... > + /* If someone else cleared the TRNG interrupt but did not read the > + * entropy, a new interrupt won't be generated, and entropy collection > + * will be stuck. Ensure an interrupt will be generated by executing > + * the collect entropy command (and discarding the result). > + */ /* * Note, the above style is solely for net subsystem. The * others should use the usual one, like in this example. */ -- With Best Regards, Andy Shevchenko