summaryrefslogtreecommitdiff
path: root/drivers/vdpa/vdpa_user
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2022-10-10 13:00:46 +0300
committerStephen Boyd <sboyd@kernel.org>2022-10-14 23:44:24 +0300
commitc461c677a8cb19026fd06741a23ff32d0759342b (patch)
tree66c49d47eb8fc5cda31e1a7c154d52906a2b54eb /drivers/vdpa/vdpa_user
parent57d849636a04a12713dd3a10a97cb9658ec7edf6 (diff)
downloadlinux-c461c677a8cb19026fd06741a23ff32d0759342b.tar.xz
clk: tegra: Fix Tegra PWM parent clock
Commit 8c193f4714df ("pwm: tegra: Optimize period calculation") updated the period calculation in the Tegra PWM driver and now returns an error if the period requested is less than minimum period supported. This is breaking PWM support on various Tegra platforms. For example, on the Tegra210 Jetson Nano platform this is breaking the PWM fan support and probing the PWM fan driver now fails ... pwm-fan pwm-fan: Failed to configure PWM: -22 pwm-fan: probe of pwm-fan failed with error -22 The problem is that the default parent clock for the PWM on Tegra210 is a 32kHz clock and is unable to support the requested PWM period. Fix PWM support on Tegra20, Tegra30, Tegra114, Tegra124 and Tegra210 by updating the parent clock for the PWM to be the PLL_P. Fixes: 8c193f4714df ("pwm: tegra: Optimize period calculation") Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Robert Eckelmann <longnoserob@gmail.com> # TF101 T20 Tested-by: Antoni Aloy Torrens <aaloytorrens@gmail.com> # TF101 T20 Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # TF201 T30 Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # TF700T T3 Link: https://lore.kernel.org/r/20221010100046.6477-1-jonathanh@nvidia.com Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/vdpa/vdpa_user')
0 files changed, 0 insertions, 0 deletions