summaryrefslogtreecommitdiff
path: root/drivers/char/diag/diagfwd_mhi.c (follow)
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'msm8998/lineage-20' into lineage-20Raghuram Subramani2024-10-17
| | | | Change-Id: I126075a330f305c85f8fe1b8c9d408f368be95d1
* diag: mhi: Fix error handling for DCI channel failureChris Lew2017-07-20
| | | | | | | | | Not all targets support the DCI channel over MHI. Fix error handling to only cleanup the failing device if MHI registration fails. Change-Id: I5ba23d69bc1fa3c08468d930f5f50151bfcd5bc0 Signed-off-by: Chris Lew <clew@codeaurora.org>
* diag: mhi: Remove unnecessary sanity checkChris Lew2017-07-20
| | | | | | | | | On an MHI down notification, the enabled state is set to 0 before flushing the workqueue and buffers. This sanity check conflicts with the down notification. Remove unneeded sanity check. Change-Id: I6bedc353187bee907775347009e0d4157b0e35e2 Signed-off-by: Chris Lew <clew@codeaurora.org>
* diag: Convert diag bridge as a platform devSujeev Dias2017-07-20
| | | | | | | | In order to support DT on DIAG, convert diag bridge driver to platform driver. Change-Id: I0ddecc06d9b4845d822799f3cff942789d1441c6 Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
* diag: Add support for mhi shutdown notificationSreelakshmi Gownipalli2017-05-16
| | | | | | | | Add support for mhi shutdown notification to clear the diag mhi states. Change-Id: I4760c0f23bfc81280f45b5a5173492341d003adf Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
* mhi: core: Add support for multiple MHI devicesSujeev Dias2017-03-11
| | | | | | | | | | | | | 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>
* diag: Call diagmem_exit only if the mempool is initializedSreelakshmi Gownipalli2016-11-14
| | | | | | | | | | Call diagmem_exit in diag_mhi_exit only if the memory pool is initialized earlier. If diag bridge initialization fails allow diag apps to still communicate to other processors without unloading the diag driver. Change-Id: I0eb8b9a357f172984612175d1b03dd872df91b6f Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
* diag: Add error handler to free buffers when fwd failsChris Lew2016-08-25
| | | | | | | | | | Forwarding the data from the MHI layer can fail if USB or MD is not connected. This change adds an error case to free the buffers if forwarding the data fails. CRs-Fixed: 1054875 Change-Id: I49ef2a32ffd731ab2875c941c9d11155f2aba9e2 Signed-off-by: Chris Lew <clew@codeaurora.org>
* diag: Fix possible kernel addresses leakManoj Prabhu B2016-05-19
| | | | | | | | | This patch addresses kernel addresses leak by changing the format specifier to adhere to the kptr_restrict system setting. CRs-Fixed: 987013 Change-Id: I32649a26f54d96c56d80aa2a1bd5f5d9dd0dd9d3 Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
* diag: Enable Diag over MHISreelakshmi Gownipalli2016-03-23
| | | | | | | Make changes to support diag over MHI. Change-Id: I6a1ff44da275c12144c0a83dbb317a00487f62be Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
* diag: Add snap shot of diag driverSreelakshmi Gownipalli2016-03-23
Add snap shot of diag driver Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>