mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: fix missing max frequency
The last frequency in the local array with all frequencies was missed as the index was used as count. This caused max frequency to be not listed among available frequencies, when few frequencies were configured in BPMPFW-DT. Bug 200381453 Change-Id: I72d000ed1842c41555f2de36209fa4e12188c325 Signed-off-by: Vishruth <vishruthj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1767642 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
ead0dfaaa3
commit
cf2ac655fd
@@ -362,7 +362,7 @@ int gp10b_clk_get_freqs(struct device *dev,
|
||||
if (new_rate == max_rate)
|
||||
break;
|
||||
}
|
||||
freq_counter = i;
|
||||
freq_counter = i + 1;
|
||||
WARN_ON(freq_counter == GP10B_MAX_SUPPORTED_FREQS);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user