]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: cmd-db: Properly endian swap the slv_id for debugfs
authorStephen Boyd <swboyd@chromium.org>
Fri, 17 Apr 2020 00:06:45 +0000 (17:06 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 20 Apr 2020 06:06:29 +0000 (23:06 -0700)
commit142f4c3f68b1f80ae99fcd245788c8b04e2cb135
tree9df1370ee0861855d1e2b1389bfeab0aff45ded3
parent41f7ba16467dc898562cf76d7de6c4807a0b9efb
soc: qcom: cmd-db: Properly endian swap the slv_id for debugfs

Read the slv_id properly by making sure the 16-bit number is endian
swapped from little endian to CPU native before we read it to figure out
what to print for the human readable name. Otherwise we may just show
that all the elements in the cmd-db are "Unknown" which isn't right.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20200417000645.234693-1-swboyd@chromium.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/cmd-db.c