]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: imx: scu: Update error code
authorPeng Fan <peng.fan@nxp.com>
Fri, 17 Oct 2025 01:56:29 +0000 (09:56 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Oct 2025 06:43:47 +0000 (14:43 +0800)
commit27d408697f0ca09806e49ae5e5d3fceae7a671d4
tree57371a37a811d2c37e9a12b6383233b2078d630a
parentea2f83c6aa027d42249fa73e833213c0d919d1fd
firmware: imx: scu: Update error code

IMX_SC_ERR_NOTFOUND should map with -ENOENT, not -EEXIST. -ENODEV makes
more sense for IMX_SC_ERR_NOPOWER, and -ECOMM makes more sense for
IMX_SC_ERR_IPC.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/firmware/imx/imx-scu.c