Thread (87 messages) 87 messages, 13 authors, 2023-08-10

Re: [PATCH v4 20/21] firmware: qcom_scm: Refactor code to support multiple download mode

From: Andy Shevchenko <hidden>
Date: 2023-06-30 09:28:53
Also in: linux-arm-msm, linux-devicetree, linux-doc, linux-gpio, linux-hardening, linux-remoteproc, lkml

On Fri, Jun 30, 2023 at 8:25 AM Pavan Kondeti [off-list ref] wrote:
On Wed, Jun 28, 2023 at 06:04:47PM +0530, Mukesh Ojha wrote:
...
quoted
+static int set_download_mode(const char *val, const struct kernel_param *kp)
+{
+     u32 old = download_mode;
+     int ret;
+
+     ret = sysfs_match_string(download_mode_name, val);
+     if (ret < 0) {
quoted
+             download_mode = old;
Why is this old variable needed at all?
quoted
+             pr_err("qcom_scm: unknown download mode: %s\n", val);
+             return -EINVAL;
+     }
minor nit: %s/-EINVAL/ret
quoted
+     download_mode = ret;
+     if (__scm)
+             qcom_scm_set_download_mode(download_mode);
+
+     return 0;
+}

-- 
With Best Regards,
Andy Shevchenko

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help