[PATCH 0/2] staging: most: dim2: fix error handling in fsl_mx6_enable

From: Artem Lytkin

Date: Mon Feb 16 2026 - 15:19:34 EST


Fix error handling issues in fsl_mx6_enable() in the DIM2 driver.

Patch 1 fixes a real bug: the return value of clk_prepare_enable()
for the PLL clock is not checked, while the same call for the MLB
clock is properly checked earlier in the function.

Patch 2 addresses review feedback from Dan Carpenter on an earlier
attempt to fix this function [1]: replace IS_ERR_OR_NULL() with
IS_ERR(), use dev_err_probe() to propagate actual error codes and
handle probe deferral correctly.

[1] https://lore.kernel.org/linux-staging/ZLUnW2CrhFMBCCa1@moroto/

Artem Lytkin (2):
staging: most: dim2: check return value of clk_prepare_enable for PLL
staging: most: dim2: fix error handling in fsl_mx6_enable

drivers/staging/most/dim2/dim2.c | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)

--
2.43.0