mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-01 11:36:49 +00:00
b389c3d66f
Manually adapted: bcm27xx/patches-5.15/950-0166-xhci-Use-more-event-ring-segment-table-entries.patch I replaced it with the version from main branch which applies more easily bcm27xx/patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch bcm27xx/patches-5.15/950-0605-xhci-refactor-out-TRBS_PER_SEGMENT-define-in-runtime.patch bcm27xx/patches-5.15/950-0606-usb-xhci-add-VLI_TRB_CACHE_BUG-quirk.patch bcm27xx/patches-5.15/950-0717-usb-xhci-add-a-quirk-for-Superspeed-bulk-OUT-transfe.patch bcm53xx/patches-5.15/180-usb-xhci-add-support-for-performing-fake-doorbell.patch generic/hack-5.15/645-netfilter-connmark-introduce-set-dscpmark.patch Added patch: generic/backport-5.15/777-netfilter-xtables-fix-typo-causing-some-targets-to-not-load-on-IPv6.patch This fixes a bug intoduced in this version. Adapt kernel configuration for newly added option CONFIG_PROC_MEM_ALWAYS_FORCE. Link: https://github.com/openwrt/openwrt/pull/16882 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
26 lines
840 B
Diff
26 lines
840 B
Diff
From d7e520c88cb8e7025c93c809350794711fc94f52 Mon Sep 17 00:00:00 2001
|
|
From: popcornmix <popcornmix@gmail.com>
|
|
Date: Tue, 6 Dec 2016 17:05:39 +0000
|
|
Subject: [PATCH] bcm2835-rng: Avoid initialising if already enabled
|
|
|
|
Avoids the 0x40000 cycles of warmup again if firmware has already used it
|
|
---
|
|
drivers/char/hw_random/bcm2835-rng.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/char/hw_random/bcm2835-rng.c
|
|
+++ b/drivers/char/hw_random/bcm2835-rng.c
|
|
@@ -108,8 +108,10 @@ static int bcm2835_rng_init(struct hwrng
|
|
}
|
|
|
|
/* set warm-up count & enable */
|
|
- rng_writel(priv, RNG_WARMUP_COUNT, RNG_STATUS);
|
|
- rng_writel(priv, RNG_RBGEN, RNG_CTRL);
|
|
+ if (!(rng_readl(priv, RNG_CTRL) & RNG_RBGEN)) {
|
|
+ rng_writel(priv, RNG_WARMUP_COUNT, RNG_STATUS);
|
|
+ rng_writel(priv, RNG_RBGEN, RNG_CTRL);
|
|
+ }
|
|
|
|
return ret;
|
|
}
|