summaryrefslogtreecommitdiff
path: root/drivers/slimbus
diff options
context:
space:
mode:
authorSagar Dharia <sdharia@codeaurora.org>2015-11-17 14:15:20 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:16:53 -0700
commit1389ff19f5cf0065ed996a5394da051823debb9b (patch)
tree88021041e708ca4eade97807a4cd5a3c13461f68 /drivers/slimbus
parent9daf459220e197f8d470e55fc31b4f449c614f42 (diff)
slim: msm: Fix the instance number being sent to ADSP
Every bus instance can have 2 NGD devices. Fix the instance number determination based on NGD device-id. Change-Id: I515f4f09d58a7abc0c0322ca714b88fb847a0909 Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
Diffstat (limited to 'drivers/slimbus')
-rw-r--r--drivers/slimbus/slim-msm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/slimbus/slim-msm.c b/drivers/slimbus/slim-msm.c
index 03862d283f90..e17a5c7857b8 100644
--- a/drivers/slimbus/slim-msm.c
+++ b/drivers/slimbus/slim-msm.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -1541,7 +1541,7 @@ int msm_slim_qmi_init(struct msm_slim_ctrl *dev, bool apps_is_master)
}
/* Instance is 0 based */
- req.instance = dev->ctrl.nr - 1;
+ req.instance = (dev->ctrl.nr >> 1);
req.mode_valid = 1;
/* Mode indicates the role of the ADSP */