]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
greybus: gb-beagleplay: Add error handling for gb_greybus_init
authorWentao Liang <vulab@iscas.ac.cn>
Mon, 20 Jan 2025 14:05:47 +0000 (22:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:22 +0000 (14:39 +0200)
commit6f774f82a7fa3dca70c1fa71b8dc2ae008c4efdc
treeff2a5a00073c368ce3b1fa897d9157840f5625aa
parent372a144dbb961c63c559d6a46a121c79b2ae0d8f
greybus: gb-beagleplay: Add error handling for gb_greybus_init

[ Upstream commit be382372d55d65b5c7e5a523793ca5e403f8c595 ]

Add error handling for the gb_greybus_init(bg) function call
during the firmware reflash process to maintain consistency
in error handling throughout the codebase. If initialization
fails, log an error and return FW_UPLOAD_ERR_RW_ERROR.

Fixes: 0cf7befa3ea2 ("greybus: gb-beagleplay: Add firmware upload API")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Ayush Singh <ayush@beagleboard.org>
Link: https://lore.kernel.org/r/20250120140547.1460-1-vulab@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/greybus/gb-beagleplay.c