drm/vc4: kms: Warn if clk_set_min_rate fails
authorMaxime Ripard <maxime@cerno.tech>
Mon, 13 Jun 2022 14:47:29 +0000 (16:47 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 28 Jun 2022 12:54:50 +0000 (14:54 +0200)
commit7d0648c8773cd16fe16eaa3b4aee04093a6bd085
treefb133dbe5b92190185a78026008f7139e5599cc6
parentda8e393e23efb60eba8959856c7df88f9859f6eb
drm/vc4: kms: Warn if clk_set_min_rate fails

We currently ignore the clk_set_min_rate return code assuming it would
succeed. However, it can fail if we ask for a rate higher than the
current maximum for example.

Since we can't fail in atomic_commit, at least warn on failure.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20220613144800.326124-3-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_kms.c