forked from mirror/openwrt
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.103 removed upstream patches: generic-backport/220-v6.16-powerpc-boot-fix-build-with-gcc-15.patch [1] generic-backport/847-v6.17-Revert-leds-trigger-netdev-Configure-LED-blink-inter.patch [2] update patch to upstream function change bcm53x/patches-6.6/180-usb-xhci-add-support-for-performing-fake-doorbell.patch changed function xhci_disable_and_free_slot() upstream [3] All other patches auto-refreshed. [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.103&id=93879b3ba967a33834727abf34ea08764339fe0b [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.103&id=c66caf21b1d0a0847adc34d368e3f6753a2cbd53 [3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/usb/host?h=v6.6.103&id=e600de541c37f97482fea2a7a26f186141e7ddea Suggested-by: Leo Barsky <leobrsky@proton.me> Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com> Link: https://github.com/openwrt/openwrt/pull/19898 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
48 lines
1.6 KiB
Diff
48 lines
1.6 KiB
Diff
From 5f7c5e1c0d7a79be144e5efc1f24728ddd7fc25c Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Sat, 5 Nov 2022 20:02:56 +0100
|
|
Subject: [PATCH 1/2] bus: mhi: core: add SBL state callback
|
|
|
|
Add support for SBL state callback in MHI core.
|
|
|
|
It is required for ath11k MHI devices in order to be able to set QRTR
|
|
instance ID in the SBL state so that QRTR instance ID-s dont conflict in
|
|
case of multiple PCI/MHI cards or AHB + PCI/MHI card.
|
|
Setting QRTR instance ID is only possible in SBL state and there is
|
|
currently no way to ensure that we are in that state, so provide a
|
|
callback that the controller can trigger off.
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
drivers/bus/mhi/host/main.c | 1 +
|
|
include/linux/mhi.h | 2 ++
|
|
2 files changed, 3 insertions(+)
|
|
|
|
--- a/drivers/bus/mhi/host/main.c
|
|
+++ b/drivers/bus/mhi/host/main.c
|
|
@@ -916,6 +916,7 @@ int mhi_process_ctrl_ev_ring(struct mhi_
|
|
switch (event) {
|
|
case MHI_EE_SBL:
|
|
st = DEV_ST_TRANSITION_SBL;
|
|
+ mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_EE_SBL_MODE);
|
|
break;
|
|
case MHI_EE_WFW:
|
|
case MHI_EE_AMSS:
|
|
--- a/include/linux/mhi.h
|
|
+++ b/include/linux/mhi.h
|
|
@@ -34,6 +34,7 @@ struct mhi_buf_info;
|
|
* @MHI_CB_SYS_ERROR: MHI device entered error state (may recover)
|
|
* @MHI_CB_FATAL_ERROR: MHI device entered fatal error state
|
|
* @MHI_CB_BW_REQ: Received a bandwidth switch request from device
|
|
+ * @MHI_CB_EE_SBL_MODE: MHI device entered SBL mode
|
|
*/
|
|
enum mhi_callback {
|
|
MHI_CB_IDLE,
|
|
@@ -45,6 +46,7 @@ enum mhi_callback {
|
|
MHI_CB_SYS_ERROR,
|
|
MHI_CB_FATAL_ERROR,
|
|
MHI_CB_BW_REQ,
|
|
+ MHI_CB_EE_SBL_MODE,
|
|
};
|
|
|
|
/**
|