mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
memory: tegra: Changes for v5.7-rc1
These patches contain fixes for EMC scaling debugfs support on Tegra20, Tegra30 and Tegra124. -----BEGIN PGP SIGNATURE----- iQJHBAABCAAxFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAl5rtrUTHHRyZWRpbmdA bnZpZGlhLmNvbQAKCRDdI6zXfz6zof8hD/9VPrFPUWfKm/DAUD2n64lg9P7G6hKO zA1ySXHxG0AGm5IlWS3ofq1z2XaKDoRk2LfxtX0tQEkv6zb9Vx8nMo7VHP+Zb1aQ 0tbQ5EpnL1G9GwPtbFc0IVGN6JQh2s35S3ELejVMHmtJpO3AmhgTR+igNyA/OCWn txDu7DaVctMmwNfJ45yGJN5zsEMUpTU5EQBvP51D8lDkosbydJMvBATYpPIi16Ug DGyATZmw8rq8Q8VJY2qndqKFgFXxuo5XqXviMm6GgItGX85s+OfdLBUpKg7awOP9 SAd9dJBT1g45buy3GhHuR3VywP0ZIvDts6NwyX5FHgFGTJHLRONLBFUTuuurkHyY uBlTCmwCr0ITuegDRSRvuUjYoT/HYHuNEZ1aNDk1kOW7fYWePr/TgeJAajapV2Pc DBOOk6IQOOtgvibDy4idj6JH04qjcZ2/R6CLX9tOyfyauK2Bhstn9102svnnpfTZ +R3bBE2V0tsZs60f+iPSMjiFOyVBulegtEyTznQR0Na4QQm6y+HXkSh9UwMaKziH VO/WggBpjsJyjllzivr+ppVcSbhcto1pE8nemeV7U2Dh3riMNbBUM643Mr2PGfil ZrKJWfuC1jhvTgrTpoOBl1YEiGTlqu9M5VtaVlF3PzWRZt3Y32pAPChlwZYRO1kr 7DJzkW1GLPOd0A== =RblZ -----END PGP SIGNATURE----- Merge tag 'tegra-for-5.7-memory' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into arm/drivers memory: tegra: Changes for v5.7-rc1 These patches contain fixes for EMC scaling debugfs support on Tegra20, Tegra30 and Tegra124. * tag 'tegra-for-5.7-memory' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux: memory: tegra: Correct debugfs clk rate-range on Tegra124 memory: tegra: Correct debugfs clk rate-range on Tegra30 memory: tegra: Correct debugfs clk rate-range on Tegra20 Link: https://lore.kernel.org/r/20200313165848.2915133-4-thierry.reding@gmail.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
commit
575c809a2d
|
|
@ -1158,6 +1158,11 @@ static void emc_debugfs_init(struct device *dev, struct tegra_emc *emc)
|
|||
emc->debugfs.max_rate = emc->timings[i].rate;
|
||||
}
|
||||
|
||||
if (!emc->num_timings) {
|
||||
emc->debugfs.min_rate = clk_get_rate(emc->clk);
|
||||
emc->debugfs.max_rate = emc->debugfs.min_rate;
|
||||
}
|
||||
|
||||
err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate,
|
||||
emc->debugfs.max_rate);
|
||||
if (err < 0) {
|
||||
|
|
|
|||
|
|
@ -628,6 +628,11 @@ static void tegra_emc_debugfs_init(struct tegra_emc *emc)
|
|||
emc->debugfs.max_rate = emc->timings[i].rate;
|
||||
}
|
||||
|
||||
if (!emc->num_timings) {
|
||||
emc->debugfs.min_rate = clk_get_rate(emc->clk);
|
||||
emc->debugfs.max_rate = emc->debugfs.min_rate;
|
||||
}
|
||||
|
||||
err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate,
|
||||
emc->debugfs.max_rate);
|
||||
if (err < 0) {
|
||||
|
|
|
|||
|
|
@ -1256,6 +1256,11 @@ static void tegra_emc_debugfs_init(struct tegra_emc *emc)
|
|||
emc->debugfs.max_rate = emc->timings[i].rate;
|
||||
}
|
||||
|
||||
if (!emc->num_timings) {
|
||||
emc->debugfs.min_rate = clk_get_rate(emc->clk);
|
||||
emc->debugfs.max_rate = emc->debugfs.min_rate;
|
||||
}
|
||||
|
||||
err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate,
|
||||
emc->debugfs.max_rate);
|
||||
if (err < 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user