Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79363022 authored by Sujeev Dias's avatar Sujeev Dias Committed by Gerrit - the friendly Code Review server
Browse files

mhi: core: add a separate callback handler for downlink DTR channel



As part of boot up sequence, some external modems transfer
initial device settings to host due to legacy requirements.
Since we cannot prevent this, silently accept the packets
and discard it.

CRs-Fixed: 2238249
Change-Id: I5d8be63fe54b86fa9d5cbf9a70288eab9f6f2fe4
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent 61fc79fb
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -119,7 +119,12 @@ long mhi_ioctl(struct mhi_device *mhi_dev, unsigned int cmd, unsigned long arg)
}
EXPORT_SYMBOL(mhi_ioctl);

static void mhi_dtr_xfer_cb(struct mhi_device *mhi_dev,
static void mhi_dtr_dl_xfer_cb(struct mhi_device *mhi_dev,
			       struct mhi_result *mhi_result)
{
}

static void mhi_dtr_ul_xfer_cb(struct mhi_device *mhi_dev,
			       struct mhi_result *mhi_result)
{
	struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl;
@@ -163,8 +168,8 @@ static struct mhi_driver mhi_dtr_driver = {
	.id_table = mhi_dtr_table,
	.remove = mhi_dtr_remove,
	.probe = mhi_dtr_probe,
	.ul_xfer_cb = mhi_dtr_xfer_cb,
	.dl_xfer_cb = mhi_dtr_xfer_cb,
	.ul_xfer_cb = mhi_dtr_ul_xfer_cb,
	.dl_xfer_cb = mhi_dtr_dl_xfer_cb,
	.driver = {
		.name = "MHI_DTR",
		.owner = THIS_MODULE,