linux/drivers/clk/tegra
Thierry Reding 2bab5a658a 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: Luis Henriques <luis.henriques@canonical.com>
History 2015-05-06 10:24:16 +01: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 xusb_hs_src clock hierarchy 2014-05-22 22:14:52 -07:00
clk-periph-gate.c clk: tegra: remove legacy reset APIs 2013-12-11 16:45:07 -07:00
clk-periph.c clk: tegra: Staticize tegra_clk_periph_no_gate_ops 2014-02-23 14:46:05 -08:00
clk-pll-out.c clk: tegra: add Tegra specific clocks 2013-01-28 11:19:07 -07:00
clk-pll.c Merge branch 'clk-fixes' into clk-next 2014-05-28 00:15:10 -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 xusb_hs_src clock hierarchy 2014-05-22 22:14:52 -07: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: Initialize xusb clocks 2014-05-22 22:14:52 -07:00
clk-tegra124.c clk: tegra: Initialize xusb clocks 2014-05-22 22:14:52 -07:00
clk.c clk: tegra: Register the proper number of resets 2015-05-06 10:24:16 +01: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