Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp64503pxa; Fri, 21 Aug 2020 00:58:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS3bMZB5DfSWwMldwMzqzvdM3DI2E42gNAnzaBjHcp0YOrQJkdx/KnB8Bdn+2p3fjRHAIu X-Received: by 2002:a17:906:7698:: with SMTP id o24mr1793342ejm.182.1597996714436; Fri, 21 Aug 2020 00:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597996714; cv=none; d=google.com; s=arc-20160816; b=l5/K4ExtgfSrCwd1fOVur/oZVuxrPU/lm09EkQ34exdeINP4MhtoQJ+JdWPfzvJstT zAij3U/N6zXcMZCyVCz/FFu1o+MTMnQqgESWXbYmdOnMRwPL6fa3QwNmZ9Qe294ZWdvi 0QBLe2vs/6H/7dBVj+kfLMu+FxV+ks+FLRiE1ign/86BuTKp9S3f+Zlq8/7mEAkrz1Ev RU4884/tDvmm87K9tLoDmXX5XPMisqKQ4T/g8O3W45EvgOzmGlmY/gzArvPuIdVQ6aYc XKfAj7ZB8YVcsfkpD2aHuNgLUqnzGzCcu+gp+rrRtJ3JRfoYLpRS9YL9aV30lmphdS3c pYmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1Rbh0I2v1fmU2fpv0+OKU1dkMHOBq0k80+fKSSXOsN0=; b=ohs+8Zy2/pWY05VPD54TW37nceESpOVTMiqOBr8Vxzod2vJGqvpzksHbQ4j9HXjTK7 8F8/7175YXlZz+wpAoXbLY7vj/gN9I/lS9odzK40buiuGW6/kH0PSxJVOGO8BfJcio0W n1inXYOnCeK5jTTLuFJjyuDQ2ZcfMVpuSLSsRFl/26G4330lmU18b35wUIJ1uszKhG1A TObpTQQlc/GBmxv81H+5GKAWQ/QNaRSnY+/2gdVmYTHPMRHtm/4nBSBnS1WMbihAFLkF J+hHQfx9vnRHXgrWmTi+UBhZHiAS+9lqtzOKyE8WRd0CGZG4aqtUndiKhDnN2UqqI8or pEvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si598501ejy.458.2020.08.21.00.58.10; Fri, 21 Aug 2020 00:58:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726806AbgHUH5z (ORCPT + 99 others); Fri, 21 Aug 2020 03:57:55 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:49998 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728377AbgHUH5p (ORCPT ); Fri, 21 Aug 2020 03:57:45 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1k91vX-00040i-77; Fri, 21 Aug 2020 17:57:32 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 21 Aug 2020 17:57:31 +1000 Date: Fri, 21 Aug 2020 17:57:31 +1000 From: Herbert Xu To: Jorge Ramirez-Ortiz Cc: sumit.garg@linaro.org, jens.wiklander@linaro.org, mpm@selenic.com, arnd@arndb.de, ricardo@foundries.io, mike@foundries.io, gregkh@linuxfoundation.org, op-tee@lists.trustedfirmware.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3 1/2] hwrng: optee: handle unlimited data rates Message-ID: <20200821075731.GI25143@gondor.apana.org.au> References: <20200806100010.20509-1-jorge@foundries.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200806100010.20509-1-jorge@foundries.io> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Aug 06, 2020 at 12:00:09PM +0200, Jorge Ramirez-Ortiz wrote: > Data rates of MAX_UINT32 will schedule an unnecessary one jiffy > timeout on the call to msleep. Avoid this scenario by using 0 as the > unlimited data rate. > > Signed-off-by: Jorge Ramirez-Ortiz > Reviewed-by: Sumit Garg > --- > drivers/char/hw_random/optee-rng.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt