mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
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>
This commit is contained in:
parent
3adaf26e7b
commit
704887278b
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ static int cmd_db_debugfs_dump(struct seq_file *seq, void *p)
|
|||
if (!rsc->slv_id)
|
||||
break;
|
||||
|
||||
switch (rsc->slv_id) {
|
||||
switch (le16_to_cpu(rsc->slv_id)) {
|
||||
case CMD_DB_HW_ARC:
|
||||
name = "ARC";
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue