From 662394fb30fdbcc89ec387918714aebee6868a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Wed, 4 Sep 2019 19:01:23 +0200 Subject: brcm2708: update to latest patches from RPi foundation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- ...c-sm-cma-Don-t-fail-if-debugfs-calls-fail.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 target/linux/brcm2708/patches-4.19/950-0374-staging-vc-sm-cma-Don-t-fail-if-debugfs-calls-fail.patch (limited to 'target/linux/brcm2708/patches-4.19/950-0374-staging-vc-sm-cma-Don-t-fail-if-debugfs-calls-fail.patch') diff --git a/target/linux/brcm2708/patches-4.19/950-0374-staging-vc-sm-cma-Don-t-fail-if-debugfs-calls-fail.patch b/target/linux/brcm2708/patches-4.19/950-0374-staging-vc-sm-cma-Don-t-fail-if-debugfs-calls-fail.patch new file mode 100644 index 0000000000..3665fad051 --- /dev/null +++ b/target/linux/brcm2708/patches-4.19/950-0374-staging-vc-sm-cma-Don-t-fail-if-debugfs-calls-fail.patch @@ -0,0 +1,37 @@ +From 862386f72ecbeda364637e13ae7da983929f0e39 Mon Sep 17 00:00:00 2001 +From: Dave Stevenson +Date: Fri, 8 Mar 2019 11:09:49 +0000 +Subject: [PATCH 374/782] staging: vc-sm-cma: Don't fail if debugfs calls fail. + +Return codes from debugfs calls should never alter the +flow of the main code. + +Signed-off-by: Dave Stevenson +--- + drivers/staging/vc04_services/vc-sm-cma/vc_sm.c | 8 -------- + 1 file changed, 8 deletions(-) + +--- a/drivers/staging/vc04_services/vc-sm-cma/vc_sm.c ++++ b/drivers/staging/vc04_services/vc-sm-cma/vc_sm.c +@@ -681,13 +681,6 @@ static void vc_sm_connected_init(void) + + /* Create a debug fs directory entry (root). */ + sm_state->dir_root = debugfs_create_dir(VC_SM_DIR_ROOT_NAME, NULL); +- if (!sm_state->dir_root) { +- pr_err("[%s]: failed to create \'%s\' directory entry\n", +- __func__, VC_SM_DIR_ROOT_NAME); +- +- ret = -EPERM; +- goto err_stop_sm_service; +- } + + sm_state->dir_state.show = &vc_sm_cma_global_state_show; + sm_state->dir_state.dir_entry = +@@ -720,7 +713,6 @@ static void vc_sm_connected_init(void) + + err_remove_shared_memory: + debugfs_remove_recursive(sm_state->dir_root); +-err_stop_sm_service: + vc_sm_cma_vchi_stop(&sm_state->sm_handle); + err_failed: + pr_info("[%s]: failed, ret %d\n", __func__, ret); -- cgit v1.2.3