mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Marek Behún" <kabel@kernel.org>
To: Josef Schlehofer <pepe.schlehofer@gmail.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
	 "David S. Miller" <davem@davemloft.net>,
	Thorsten Blum <blum@kernel.org>,
	linux-crypto@vger.kernel.org,  linux-i2c@vger.kernel.org,
	linux-kernel@vger.kernel.org, Marius Dinu <m95d@psihoexpert.ro>
Subject: Re: [PATCH] crypto: atmel-i2c - find the bus speed behind an I2C mux
Date: Mon, 2 Nov 2026 15:48:41 +0100	[thread overview]
Message-ID: <auieEHLkx76881ZL@solitude> (raw)
In-Reply-To: <20261029082616.53365-1-pepe.schlehofer@gmail.com>

Acked-by: Marek Behún <kabel@kernel.org>

But I would suggest not using this driver on Omnia for TRNG.

If you need TRNG, just use the one provided by the turris-omnia-mcu driver.
Upgrade your MCU firmware with the omnia-mcutool utility.

Why?

The Atmel SHA204A TRNG needs to update a part of its random seed in EEPROM
everytime it goes to sleep. Unless proper power management is implemented in
the driver, it will go to sleep 1.3 seconds after each wakeup.

The EEPROM is rated for ~100 000 cycles before it wears out.

Since proper power management is not implemented in the driver now, if you
enable this driver and read the TRNG continuosly, you can wear the EEPROM in
several days.

Marek

  reply	other threads:[~2026-11-02 14:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29  8:26 Josef Schlehofer
2026-11-02 14:48 ` Marek Behún [this message]
2026-11-02 17:01   ` Josef Schlehofer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=auieEHLkx76881ZL@solitude \
    --to=kabel@kernel.org \
    --cc=blum@kernel.org \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m95d@psihoexpert.ro \
    --cc=pepe.schlehofer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®