[PATCH] bus: mhi: core: manager all mhi ctrl data in one segment

2020-11-16 Thread carl . yin
From: Carl Yin I test SDX24 and SDX55 modems on Dell-OptiPlex-7060 has 16GB memory. So I set dma_data_width in mhi/pci_generic.c to 37, then get next error: [ 538.338317] mhi :03:00.0: Requested to power ON [ 538.338441] mhi :03:00.0: Power on setup success [ 538.338519] mhi :03

[PATCH v2] bus: mhi: core: Add support MHI EE FP for download firmware

2020-11-02 Thread carl . yin
From: "carl.yin" MHI wwan modems support download firmware to nand or emmc by firehose protocol, process as next: 1. modem boot up and enter EE AMSS, create DIAG channels (4, 5) device 2. user space tool send EDL command via DIAG channel, then modem enter EE EDL 3. boot.c download 'flash

[PATCH v2] bus: mhi: core: Fix null pointer access when parsing MHI configuration

2020-11-02 Thread carl . yin
From: "carl.yin" Functions parse_ev_cfg() and parse_ch_cfg() access mhi_cntrl->mhi_dev before it is set in function mhi_register_controller(), use cntrl_dev instead of mhi_dev. Fixes: 0cbf260820fa ("bus: mhi: core: Add support for registering MHI controllers") Signed-off-by: carl.yin

[PATCH] bus: mhi: core: Add support MHI EE FP for download firmware

2020-10-27 Thread carl . yin
From: "carl.yin" MHI wwan modems support download firmware to nand or emmc by firehose protocol, process as next: 1. wwan modem normal bootup and enter EE AMSS, create mhi DIAG chan device 2. send EDL cmd via DIAG chan, then modem enter EE EDL 3. boot.c download

[PATCH] bus: mhi: core: Introduce sysfs ul chan id for mhi chan device

2020-10-27 Thread carl . yin
ember 2020 +KernelVersion: 5.10 +Contact: Carl Yin +Description: The file holds the uplink chan id of the mhi chan device. + User space software like ModemManager can identify the function of + the mhi chan device. If the mhi device is not a chan device, +

[PATCH] bus: mhi: core: Fix null pointer access

2020-10-26 Thread carl . yin
From: carl function parse_ev_cfg and parse_ch_cfg access mhi_cntrl->mhi_dev before it is set in function mhi_register_controller, use cntrl_dev to instead mhi_dev. Signed-off-by: carl --- drivers/bus/mhi/core/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git