Skip to content

Trigger reset if firmware status is abnormal when

Chris Lu linux-bluetooth linux-mediatek lkml 1 version Applied

Status from this message: This series was applied to bluetooth/bluetooth-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3Bluetooth: btmtk: improve mt79xx firmware setup retry flowdrivers/bluetooth/btmtk.c+6 -01 replyApplied
2/3Bluetooth: btmtk: add status check in mt79xx firmware setupdrivers/bluetooth/btmtk.c+8 -20 repliesApplied
3/3Bluetooth: btmtk: Add reset mechanism if downloading firmware faileddrivers/bluetooth/btmtk.c drivers/bluetooth/btmtk.h+7 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/3] Trigger reset if firmware status is abnormal when

When the device unexpectedly restarts during previous firmware download process, it can cause mt79xx firmware status to be abnormal in the next attempt. In this case, a reset should be performed to ensure everything starts afresh.

These changes include:
1. Optimizing the handling after the download function retry is exhausted, a reset should be performed.
2. Another download firmware command also needs to check status , and if an unexpected status occurs, trigger a reset.
3. Adding a flag "BTMTK_FIRMWARE_DL_RETRY": if download firmware process enters the reset mechanism, this flag will be set. After a successful setup, the flag will be cleared. If the flag is already set, no further reset attempts will be made to avoid endless reset retries.

Chris Lu (3):
Bluetooth: btmtk: improve mt79xx firmware setup retry flow
Bluetooth: btmtk: add status check in mt79xx firmware setup
Bluetooth: btmtk: Add reset mechanism if downloading firmware failed

 drivers/bluetooth/btmtk.c | 21 +++++++++++++++++++--
 drivers/bluetooth/btmtk.h |  1 +
 2 files changed, 20 insertions(+), 2 deletions(-)
Signature · 1 line
2.45.2