Merge "mhi: core: fix sequence for new transfer"

This commit is contained in:
Linux Build Service Account 2017-11-22 19:51:24 -08:00 committed by Gerrit - the friendly Code Review server
commit 501dbd9ee7
3 changed files with 2 additions and 2 deletions

View file

@ -641,7 +641,6 @@ int bhi_probe(struct mhi_device_ctxt *mhi_dev_ctxt)
image += to_copy;
}
fw_table->sequence++;
release_firmware(firmware);
/* allocate memory and setup rddm table */
@ -662,7 +661,6 @@ int bhi_probe(struct mhi_device_ctxt *mhi_dev_ctxt)
rddm_table->bhie_mem_info[i].phys_addr;
sg_dma_len(itr) = size;
}
rddm_table->sequence++;
} else {
/* out of memory for rddm, not fatal error */
mhi_log(mhi_dev_ctxt, MHI_MSG_INFO,

View file

@ -459,6 +459,7 @@ static int mhi_plat_probe(struct platform_device *pdev)
return r;
}
INIT_WORK(&bhi_ctxt->fw_load_work, bhi_firmware_download);
bhi_ctxt->fw_table.sequence = 1;
}
mhi_dev_ctxt->flags.bb_required =

View file

@ -1898,6 +1898,7 @@ int mhi_register_device(struct mhi_device *mhi_device,
if (mhi_device->support_rddm) {
mhi_dev_ctxt->bhi_ctxt.support_rddm = true;
mhi_dev_ctxt->bhi_ctxt.rddm_size = mhi_device->rddm_size;
mhi_dev_ctxt->bhi_ctxt.rddm_table.sequence = 1;
mhi_log(mhi_dev_ctxt, MHI_MSG_INFO,
"Device support rddm of size:0x%lx bytes\n",