From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1D0BC433F5 for ; Tue, 26 Oct 2021 22:42:42 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 42EF06044F for ; Tue, 26 Oct 2021 22:42:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 42EF06044F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 672DD80607; Wed, 27 Oct 2021 00:42:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="mSSTd01e"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BD9E583535; Wed, 27 Oct 2021 00:42:09 +0200 (CEST) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 57015834F1 for ; Wed, 27 Oct 2021 00:42:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72f.google.com with SMTP id bj31so697471qkb.2 for ; Tue, 26 Oct 2021 15:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=TtINjRQV4QvnzBHhwJxtUzu/F96J4xM5QBHRGIN+WfY=; b=mSSTd01e4I5dfLSeUaVYN66LiyGNvy2rceZTEV2N5Uaj6zq3VMos7I3JkVv+7UK+ZT UkOr53z5kUQKBKun9nWTq23orEHZ1wBSg1ZKUlMdSFWmRu/IfCebzWsWEUtsG0reWwpD nkHvUdSMIcY12RVOexyYSflE01oXoYN3Y8EBI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TtINjRQV4QvnzBHhwJxtUzu/F96J4xM5QBHRGIN+WfY=; b=uwhL/r9bIL5k4tor+cLgK3vwfhBhEr6oYL73dzu8eG+HDaOmmBODcdLnmoJTZJPUFJ by5P8QSFzGw+A8GRZ+hWFgawHx+Ns6ty8LzDyuuLPymHAVFQboS9nbCH5yhdOwAe0wlx MgkdlEXP/HPctjnHntfl7dnwZmwFLj4iyAx2D41i5HzzmgzIKp1zFnm4Ge31NQG3xUyM LdOwAa2M3bT5uI88sfu4TXINujgquLTbtc3+5oZ40lQu5USjOSOG5aF/tdbKP3TczHvH ER+IfhlW7WDIjXyriQ70Dn6HUG5lijh2ZjEtIl1MNaC0benrH5vPlMVCi/7aRyH5hbc/ HWLQ== X-Gm-Message-State: AOAM532fc2+8m/yy6Nkd1SxYUqWR3zPIH6gcGc3nK+PMOjshmNhCueIV 5XJiaXPg7p6kmgMTWam1quAjtg== X-Google-Smtp-Source: ABdhPJyhxc971gYdAyKylomckfH5DItRLUbtcVMOfgOlcba13sV50szYH+FiQ9CoOd5/9gNYgcQayQ== X-Received: by 2002:a05:620a:2481:: with SMTP id i1mr21447426qkn.286.1635288121040; Tue, 26 Oct 2021 15:42:01 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-0044-6cb5-81ac-bb0c.res6.spectrum.com. [2603:6081:7b01:cbda:44:6cb5:81ac:bb0c]) by smtp.gmail.com with ESMTPSA id c15sm11201794qkg.60.2021.10.26.15.42.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 15:42:00 -0700 (PDT) Date: Tue, 26 Oct 2021 18:41:58 -0400 From: Tom Rini To: Patrick Delaunay Cc: u-boot@lists.denx.de, Matthias Brugger , Torsten Duwe , Rasmus Villemoes , Simon Glass , U-Boot STM32 Subject: Re: [PATCH] lib: uuid: fix the test on RNG device presence Message-ID: <20211026224158.GN8284@bill-the-cat> References: <20211022170544.1.Ib218a8a747f99cab44c3fac6af649f17f003b2e2@changeid> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6CiRFyVmOOJ3DkBX" Content-Disposition: inline In-Reply-To: <20211022170544.1.Ib218a8a747f99cab44c3fac6af649f17f003b2e2@changeid> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --6CiRFyVmOOJ3DkBX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 22, 2021 at 05:05:47PM +0200, Patrick Delaunay wrote: > Correct the test on RNG device presence,when ret is equal to 0, > before to call dm_rng_read function. >=20 > Without this patch the RNG device is not used when present (when ret =3D= =3D 0) > or a data abort occurs in dm_rng_read when CONFIG_DM_RNG is activated but > the RNG device is not present in device tree (ret !=3D 0 and devp =3D NUL= L). >=20 > Fixes: 92fdad28cfdf ("lib: uuid: use RNG device if present") > CC: Matthias Brugger > CC: Torsten Duwe > Signed-off-by: Patrick Delaunay > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! --=20 Tom --6CiRFyVmOOJ3DkBX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmF4hDYACgkQFHw5/5Y0 tyyIcgv/eV9zOkABp3ydZBjZR++dPbDj1PIUR1LHdg74X9SLwatAJ7TJ3ECi0wyN KqJXV5j/tIgw2V/HsRsBLxwXq84CompUvxhAKSlxN6DaQ0qYpl/+tMXdyknQ099f hMfeWkQCQE4Sq0ymKN3oev/EozaVwaE5zHKXDT84MIFYH18BjASYl1RUj1UCBhiT 7OJN25xBrqDa1az0WdMRAC1Aj/0kquYROYpvrUIbLHWLhaXcu10TGB28dD/levq3 IIbYe6eKJUS2873HpR8DgH9kzH1buTGjfg9+ptE+qUJdJFGYp4IxbH00Z3aCKPjr sv87mGdcDO+YNiLTWASGHioZaoSrSmqBcnnkWh4+7GJtHcKywU5zmAID/xdShbND 8RkJ5nP+SMa9ZeCIZYuO/mzGi8HJDqzzxco6MvIdwRQ+2Zqs8CnpKQ5woiZfoBFE tufivz510srwUdLgrJ2lJEOjNcoDPrQJSCDUx7/7dzCfCAfQUUYaM7SZOL13F7xc JFMkCXNC =qCT1 -----END PGP SIGNATURE----- --6CiRFyVmOOJ3DkBX--