linux/drivers/clk/tegra
Thierry Reding 3c8e77238e clk: tegra: Register the proper number of resets
commit 5e43e25917 upstream.

The number of resets controls is 32 times the number of peripheral
register banks rather than 32 times the number of clocks. This reduces
(drastically) the number of reset controls registered from 10080 (315
clocks * 32) to 224 (6 peripheral register banks * 32).

This also fixes a potential crash because trying to use any of the
excess reset controls (224-10079) would have caused accesses beyond
the array bounds of the peripheral register banks definition array.

Cc: Peter De Schrijver <pdeschrijver@nvidia.com>
Cc: Prashant Gaikwad <pgaikwad@nvidia.com>
Fixes: 6d5b988e7d ("clk: tegra: implement a reset driver")
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-05-06 21:59:18 +02:00
..
clk-audio-sync.c clk: tegra: add Tegra specific clocks 2013-01-28 11:19:07 -07:00
clk-divider.c clk: tegra: use max divider if divider overflows 2014-02-17 16:18:34 +02:00
clk-id.h clk: tegra: fix sdmmc clks on Tegra1x4 2014-02-17 16:18:23 +02:00
clk-periph-gate.c clk: tegra: remove legacy reset APIs 2013-12-11 16:45:07 -07:00
clk-periph.c The first half of the clk framework pull request is made up almost 2014-01-23 18:56:08 -08:00
clk-pll-out.c clk: tegra: add Tegra specific clocks 2013-01-28 11:19:07 -07:00
clk-pll.c clk: tegra: Fix wrong value written to PLLE_AUX 2014-06-07 10:28:15 -07:00
clk-super.c clk: tegra: Implement locking for super clock 2013-02-12 10:29:12 -07:00
clk-tegra-audio.c clk: tegra: move audio clk to common file 2013-11-26 18:46:24 +02:00
clk-tegra-fixed.c clk: tegra: move PMC, fixed clocks to common files 2013-11-26 18:46:49 +02:00
clk-tegra-periph.c clk: tegra: Fix vic03 mux index 2014-02-20 10:45:28 +02:00
clk-tegra-pmc.c clk: tegra: move PMC, fixed clocks to common files 2013-11-26 18:46:49 +02:00
clk-tegra-super-gen4.c clk: tegra: cclk_lp has a pllx/2 divider 2014-02-17 16:18:28 +02:00
clk-tegra20.c clk: tegra: Add missing Tegra20 fuse clks 2014-02-17 16:13:25 +02:00
clk-tegra30.c clk: tegra: remove bogus PCIE_XCLK 2013-12-11 16:45:13 -07:00
clk-tegra114.c clk: tegra: fix sdmmc clks on Tegra1x4 2014-02-17 16:18:23 +02:00
clk-tegra124.c clk: tegra: remove non-existent clocks 2014-05-06 07:59:38 -07:00
clk.c clk: tegra: Register the proper number of resets 2015-05-06 21:59:18 +02:00
clk.h clk: tegra: remove legacy reset APIs 2013-12-11 16:45:07 -07:00
Makefile clk: tegra124: Add support for Tegra124 clocks 2013-11-26 18:46:54 +02:00