Skip to content

hwrng: npcm: add NPCM RNG driver support

Tomer Maimon linux-crypto linux-devicetree lkml openbmc 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesIn review
  2. v22 patches 6 repliesSuperseded
  3. v12 patches 9 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-binding: hwrng: add NPCM RNG documentationDocumentation/devicetree/bindings/rng/nuvoton,npcm-rng.txt+12 -01 reply
2/2hwrng: npcm: add NPCM RNG driverdrivers/char/hw_random/Kconfig drivers/char/hw_random/Makefile drivers/char/hw_random/npcm-rng.c+200 -04 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDaniel ThompsonRob Herring
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] hwrng: npcm: add NPCM RNG driver support

This patch set adds Random Number Generator (RNG) support for the Nuvoton NPCM Baseboard Management Controller (BMC).

The RNG driver we use power consumption when the RNG is not required.

The NPCM RNG driver tested on NPCM750 evaluation board.

Addressed comments from:.
- Daniel Thompson: https://lkml.org/lkml/2019/9/10/352
- Milton Miller II : https://lkml.org/lkml/2019/9/10/847
- Daniel Thompson: https://lkml.org/lkml/2019/9/10/294

Changes since version 2:
- Rearrange wait parameter in npcm_rng_read function.
- Calling pm_runtime_enable function before hwrng_register function called to enable the hwrng before add_early_randomness called.
- Remove quality dt-binding parameter in the driver and documentation.
- Disable CONFIG_PM if devm_hwrng_register failed.
- Remove owner setting in the driver struct.

Changes since version 1:
- Define timout in real-world units.
- Using readl_poll_timeout in rng_read function.
- Honor wait parameter in rng_read function.
- Using local variable instead of #ifndef.
- Remove probe print.

Tomer Maimon (2):
dt-binding: hwrng: add NPCM RNG documentation
hwrng: npcm: add NPCM RNG driver

 .../bindings/rng/nuvoton,npcm-rng.txt         |  12 ++
 drivers/char/hw_random/Kconfig                |  13 ++
 drivers/char/hw_random/Makefile               |   1 +
 drivers/char/hw_random/npcm-rng.c             | 186 ++++++++++++++++++
 4 files changed, 212 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.txt
 create mode 100644 drivers/char/hw_random/npcm-rng.c
Signature · 1 line
2.18.0