aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
diff options
context:
space:
mode:
authorFrancesco Dolcini <[email protected]>2023-07-28 22:26:39 +0000
committerStephen Boyd <[email protected]>2023-08-05 01:10:21 +0000
commitdd1df82ce27a05c7cf0bc5387978412e35fbdaaf (patch)
treeee7ef3fb933f0a6a541202afe81ee1a6927f70f3 /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
parentMerge tag 'clk-meson-fixes-v6.5-1' of https://github.com/BayLibre/clk-meson i... (diff)
downloadkernel-dd1df82ce27a05c7cf0bc5387978412e35fbdaaf.tar.gz
kernel-dd1df82ce27a05c7cf0bc5387978412e35fbdaaf.zip
clk: keystone: syscon-clk: Fix audio refclk
Audio REFCLK's are not working correctly, trying to use them lead to the following errors: [ 6.575277] of_clk_hw_onecell_get: invalid index 4294934528 [ 6.581515] wm8904 1-001a: Failed to get MCLK [ 6.586290] wm8904: probe of 1-001a failed with error -2 The issue is that Audio REFCLK has #clock-cells = 0 [1], while the driver is registering those clocks assuming they have one cells. Fix this by registering the clock with of_clk_hw_simple_get() when there is only one instance, e.g. "audio_refclk". [1] Documentation/devicetree/bindings/clock/ti,am62-audio-refclk.yaml Fixes: 6acab96ee337 ("clk: keystone: syscon-clk: Add support for audio refclk") Signed-off-by: Francesco Dolcini <[email protected]> Link: https://lore.kernel.org/r/[email protected] [[email protected]: Simplify if-return-else logic] Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions