Skip to content

bcm63xx-rng conversion to bcm2835-rng

Florian Fainelli linux-arm-kernel linux-crypto linux-devicetree lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 14 repliesIn review
  2. v112 patches 18 repliesSuperseded

Changes in v2 from the cover letter

- rework the logic about how we manage the optional clock
- use pdev->name for the rng.name member

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12hwrng: bcm2835-rng: Obtain base register via resourcedrivers/char/hw_random/bcm2835-rng.c+10 -103 replies
2/12hwrng: bcm2835-rng: Define a driver private contextdrivers/char/hw_random/bcm2835-rng.c+34 -211 reply
3/12hwrng: bcm2835-rng: Move enabling to hwrng::initdrivers/char/hw_random/bcm2835-rng.c+12 -40 replies
4/12hwrng: bcm2835-rng: Implementation cleanup callbackdrivers/char/hw_random/bcm2835-rng.c+9 -30 replies
5/12hwrng: bcm2835-rng: Use device managed helpersdrivers/char/hw_random/bcm2835-rng.c+1 -121 reply
6/12hwrng: bcm2835-rng: Rework interrupt maskingdrivers/char/hw_random/bcm2835-rng.c+23 -163 replies
7/12hwrng: bcm2835-rng: Manage an optional clockdrivers/char/hw_random/bcm2835-rng.c+16 -13 replies
8/12hwrng: bcm2835-rng: Abstract I/O accessorsdrivers/char/hw_random/bcm2835-rng.c+19 -82 replies
9/12hwrng: bcm2835-rng: Add Broadcom MIPS I/O accessorsdrivers/char/hw_random/bcm2835-rng.c+11 -20 replies
10/12dt-bindings: rng: Incorporate brcm,bcm6368.txt bindingDocumentation/devicetree/bindings/rng/brcm,bcm2835.txt Documentation/devicetree/bindings/rng/brcm,bcm6368.txt+19 -200 replies
11/12hwrng: bcm2835-rng: Enable BCM2835 RNG to work on BCM63xx platformsdrivers/char/hw_random/Kconfig drivers/char/hw_random/bcm2835-rng.c+14 -40 replies
12/12hwrng: bcm63xx-rng: Remove since bcm2835-rng takes overdrivers/char/hw_random/Kconfig drivers/char/hw_random/Makefile drivers/char/hw_random/bcm63xx-rng.c+0 -1681 reply

Reviews trailers per patch

7 of 12 patches have a Reviewed-by or Acked-by.

PatchRob HerringEric AnholtPhilippe Mathieu-Daudé
1/12
2/12R-b
3/12
4/12
5/12R-b
6/12R-b
7/12R-b
8/12R-b R-b
9/12
10/12A-b
11/12
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/12] bcm63xx-rng conversion to bcm2835-rng

Hi,

As it usually happens when there is a fair amount of HW IP block re-use, competing implementations show up. In that case the BCM2835 HWRNG driver and the BCM63xx RNG driver have exactly the same register offsets and this is indeed the same piece of HW.

This patch series first prepares the bcm2835-rng to be more future proof and support newer platforms, and the last part brings in what is necessary to migrate the bcm63xx-rng over to bcm2835-rng. Finally we delete bcm63xx-rng completely.

The reason why BCM2835 RNG was kept over BCM63xx RNG is because the former deals correctly with a warm up count and the number of words available in the FIFO size.

Thanks!

Changes in v2:

- rework the logic about how we manage the optional clock
- use pdev->name for the rng.name member

Florian Fainelli (12):
hwrng: bcm2835-rng: Obtain base register via resource
hwrng: bcm2835-rng: Define a driver private context
hwrng: bcm2835-rng: Move enabling to hwrng::init
hwrng: bcm2835-rng: Implementation cleanup callback
hwrng: bcm2835-rng: Use device managed helpers
hwrng: bcm2835-rng: Rework interrupt masking
hwrng: bcm2835-rng: Manage an optional clock
hwrng: bcm2835-rng: Abstract I/O accessors
hwrng: bcm2835-rng: Add Broadcom MIPS I/O accessors
dt-bindings: rng: Incorporate brcm,bcm6368.txt binding
hwrng: bcm2835-rng: Enable BCM2835 RNG to work on BCM63xx platforms
hwrng: bcm63xx-rng: Remove since bcm2835-rng takes over

 .../devicetree/bindings/rng/brcm,bcm2835.txt       |  22 ++-
 .../devicetree/bindings/rng/brcm,bcm6368.txt       |  17 ---
 drivers/char/hw_random/Kconfig                     |  20 +--
 drivers/char/hw_random/Makefile                    |   1 -
 drivers/char/hw_random/bcm2835-rng.c               | 167 +++++++++++++++------
 drivers/char/hw_random/bcm63xx-rng.c               | 154 -------------------
 6 files changed, 140 insertions(+), 241 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rng/brcm,bcm6368.txt
 delete mode 100644 drivers/char/hw_random/bcm63xx-rng.c
Signature · 1 line
2.9.3