Skip to contentSkip to conversation

MHI changes for v6.4

GIT PULL Manivannan Sadhasivam 2 participants 2 messages Apr 17, 2023 – Apr 19, 2023 MHI bus

lore
Share & tools
lore
#0 lore raw

The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6:

Linux 6.3-rc1 (2023-03-05 14:52:03 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git tags/mhi-for-v6.4

for you to fetch changes up to 1d1493bdc25f498468a606a4ece947d155cfa3a9:

bus: mhi: host: Use mhi_tryset_pm_state() for setting fw error state (2023-04-10 21:32:55 +0530)

----------------------------------------------------------------
MHI Host
========

Core
----

- Removed the "mhi_poll()" API as there are no in-kernel users available at the moment.

- Added range check for the CHDBOFF and ERDBOFF registers in case the device reports bad values.

- Fixed the errno for the rest of the range checks to use -ERANGE.

- Modified the event ring handlers to ring the doorbell only if there are any pending elements in the ring to process for the device.

- Removed the check for EE (Execution Environment) while processing the SYS_ERR transition as it creates device recovery issues when SBL (Secondary Bootloader) crashes early.

- Used mhi_tryset_pm_state() API to set the error state instead of open coding if the firmware loading fails. This avoids the race with other pm_state updates.

pci_generic
-----------

- Dropped the dedundant pci_{enable/disable}_pcie_error_reporting() calls from driver probe's error path as the PCI core itself takes care of that now.

- Revered the commit 2d5253a096c6 ("bus: mhi: host: pci_generic: Add a secondary AT port to Telit FN990") as it turned out to be erroneous. This happened due to the patch adding secondary AT port for FN990 getting applied through NET and MHI trees and this caused two commits for the same functionality but one of them ended up wrong.

- Added support for Foxconn T99W510 modem based on SDX24 chipset from Qualcomm.

MHI Endpoint
============

- Demoted the channel not supported error log to debug as not all devices will support all channels defined in MHI spec and this may spam users.

----------------------------------------------------------------
Bjorn Helgaas (1):
bus: mhi: host: pci_generic: Drop redundant pci_enable_pcie_error_reporting()

Jeffrey Hugo (4):
bus: mhi: host: Range check CHDBOFF and ERDBOFF
bus: mhi: host: Use ERANGE for BHIOFF/BHIEOFF range check
bus: mhi: host: Remove duplicate ee check for syserr
bus: mhi: host: Use mhi_tryset_pm_state() for setting fw error state

Manivannan Sadhasivam (2):
bus: mhi: host: Remove mhi_poll() API
bus: mhi: ep: Demote unsupported channel error log to debug

Slark Xiao (2):
bus: mhi: host: pci_generic: Revert "Add a secondary AT port to Telit FN990"
bus: mhi: pci_generic: Add Foxconn T99W510

Vivek Pernamitta (1):
bus: mhi: host: Avoid ringing EV DB if there are no elements to process

 drivers/bus/mhi/ep/main.c          |  4 ++--
 drivers/bus/mhi/host/boot.c        | 16 ++++++++++++----
 drivers/bus/mhi/host/init.c        | 16 ++++++++++++++--
 drivers/bus/mhi/host/main.c        | 25 +++++++------------------
 drivers/bus/mhi/host/pci_generic.c | 28 +++++++++++++++++++---------
 include/linux/mhi.h                |  7 -------
 6 files changed, 54 insertions(+), 42 deletions(-)
Signature · 1 line
மணிவண்ணன் சதாசிவம்
#1 lore raw
Quoted 7 lines · Manivannan Sadhasivam

The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6:

Linux 6.3-rc1 (2023-03-05 14:52:03 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git tags/mhi-for-v6.4

Pulled and pushed out, thanks.

greg k-h