[spinel] allow RCP reset if not multipan architecture (#11277)

This VerifyOrExit will prevent the RCP recovery process from resetting
the RCP. The comment highlights that given a multipan architecture, it
is not viable to reset the RCP once it is declared ready. In
non-multipan architectures, it is still viable and desirable to reset
the RCP as part of recovering it.

See https://github.com/orgs/openthread/discussions/11273
This commit is contained in:
Adam Labbe
2025-02-21 12:00:18 -08:00
committed by GitHub
parent ed7db65f23
commit 6d0c1d4df1
+2
View File
@@ -124,8 +124,10 @@ void SpinelDriver::ResetCoprocessor(bool aSoftwareReset)
bool hardwareReset;
bool resetDone = false;
#if OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE
// Avoid resetting the device twice in a row in Multipan RCP architecture
VerifyOrExit(!mIsCoprocessorReady, resetDone = true);
#endif
mWaitingKey = SPINEL_PROP_LAST_STATUS;