summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorSujeev Dias <sdias@codeaurora.org>2016-11-22 12:56:27 -0800
committerSujeev Dias <sdias@codeaurora.org>2017-03-11 11:50:50 -0800
commit2583f4c5d6f2cecef46021b9cd94273e53ac7c60 (patch)
tree22f5d4e31f06425d3eb2a25bb9403e228a954387 /drivers/char
parentb1fa567f04d748960d94b7a58949bd8e12ea4465 (diff)
mhi: core: Add support for multiple MHI devices
In order to support multiple MHI devices connected to same host we have, re-organize struct mhi_device_ctxt such that all information related to device is included inside struct mhi_device_ctxt. Created an abstract power management layer to operate MHI in bus master, and slave mode. PCIe bus, device, slot are extracted from DT to identify physical device. CRs-Fixed: 1086301 Change-Id: I27a12b7412db75e4843794d80146ca7475b02fdc Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/diag/diagfwd_mhi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/diag/diagfwd_mhi.c b/drivers/char/diag/diagfwd_mhi.c
index df26e2522baf..8b0e1f32bdc5 100644
--- a/drivers/char/diag/diagfwd_mhi.c
+++ b/drivers/char/diag/diagfwd_mhi.c
@@ -665,8 +665,7 @@ static int diag_mhi_register_ch(int id, struct diag_mhi_ch_t *ch)
atomic_set(&(ch->opened), 0);
ctxt = SET_CH_CTXT(id, ch->type);
ch->client_info.mhi_client_cb = mhi_notifier;
- return mhi_register_channel(&ch->hdl, ch->chan, 0, &ch->client_info,
- (void *)(uintptr_t)ctxt);
+ return mhi_register_channel(&ch->hdl, NULL);
}
int diag_mhi_init()