From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Wed, 9 May 2018 18:12:45 +0000 Subject: [U-Boot] [PATCH][v2] armv8: sec_firmware: Remove JR3 from device tree node in all cases References: <1523530475-23028-1-git-send-email-ruchika.gupta@nxp.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/12/2018 05:53 AM, Ruchika Gupta wrote: > JR3 was getting removed from device tree only if random number generation > was successful. However, if SEC firmware is present,JR3 should be removed > from device tree node irrespective of the random seed generation as > SEC firmware reserves it for it's use. Not removing it in case of random > number generation failure causes the kernel to crash. > > Random number generation was being called twice. This is not required. > If SEC firmware is running, SIP call can be made to the SEC firmware to > get the random number. This call itself would return failure if function > is not supported. Duplicate calling of random number generation function > has been removed > > Signed-off-by: Ruchika Gupta > --- > Changes from v1: > Removed unused variable rand from the sec_firmware_support_hwrng function > Applied to fsl-qoriq master, awaiting upstream. Thanks. York