forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'openwrt:main' into BPI-R4-NIC-BE14
- Loading branch information
Showing
48 changed files
with
721 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-6.1 = .106 | ||
LINUX_KERNEL_HASH-6.1.106 = 3773c9052c7ba7432e8337ca84bee115c1a94ccef9d62b72b99ae30c4cd5f80f | ||
LINUX_VERSION-6.1 = .107 | ||
LINUX_KERNEL_HASH-6.1.107 = f43229d1d73011fa0a37400320a26972946f8ff295c404c31c0dd0407228b0e8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-6.6 = .47 | ||
LINUX_KERNEL_HASH-6.6.47 = d43376c9e9eaa92bb1b926054bd160d329c58a62d64bd65fe1222c11c6564f50 | ||
LINUX_VERSION-6.6 = .48 | ||
LINUX_KERNEL_HASH-6.6.48 = 6b16df7b2aba3116b78fdfd8aea0b6cd7abe8f0cb699b04a66d3169141772029 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
package/network/config/ltq-vdsl-vr11-app/patches/201-orderly-shutdown.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
Try to perform an orderly shutdown via L3 request before the connection | ||
is stopped on exit. | ||
|
||
--- a/src/dsl_cpe_control.c | ||
+++ b/src/dsl_cpe_control.c | ||
@@ -7252,15 +7252,58 @@ static DSL_boolean_t DSL_CPE_DebugAndTes | ||
#endif /* defined(DSL_DEBUG_TOOL_INTERFACE) || defined(INCLUDE_DSL_CPE_DTI_SUPPORT) */ | ||
#endif /* defined(INCLUDE_DSL_JSON_PARSING) && (INCLUDE_DSL_JSON_PARSING == 1) */ | ||
|
||
+DSL_CPE_STATIC DSL_void_t DSL_CPE_EnableConnection(void) | ||
+{ | ||
+ DSL_Error_t nRet = DSL_SUCCESS; | ||
+ DSL_int_t nDevice = 0; | ||
+ DSL_G997_PowerManagementStateForcedTrigger_t sPowerManagementStateForcedTrigger; | ||
+ | ||
+ for (nDevice = 0; nDevice < DSL_CPE_DSL_ENTITIES; ++nDevice) | ||
+ { | ||
+ memset(&sPowerManagementStateForcedTrigger, 0x0, | ||
+ sizeof(DSL_G997_PowerManagementStateForcedTrigger_t)); | ||
+ sPowerManagementStateForcedTrigger.data.nPowerManagementState = DSL_G997_PMSF_L3_TO_L0; | ||
+ | ||
+ nRet = (DSL_Error_t)DSL_CPE_Ioctl( | ||
+ DSL_CPE_GetGlobalContext()->fd[nDevice], | ||
+ DSL_FIO_G997_POWER_MANAGEMENT_STATE_FORCED_TRIGGER, | ||
+ (DSL_int_t)&sPowerManagementStateForcedTrigger); | ||
+ | ||
+ if (nRet < DSL_SUCCESS) | ||
+ { | ||
+ DSL_CCA_DEBUG(DSL_CCA_DBG_ERR, (DSL_CPE_PREFIX | ||
+ "Transition to L0 state (%d) failed!, nRet = %d!" | ||
+ DSL_CPE_CRLF, nDevice, sPowerManagementStateForcedTrigger.accessCtl.nReturn)); | ||
+ } | ||
+ } | ||
+} | ||
+ | ||
DSL_CPE_STATIC DSL_void_t DSL_CPE_ShutdownConnection(void) | ||
{ | ||
DSL_Error_t nRet = DSL_SUCCESS; | ||
DSL_int_t nDevice = 0; | ||
+ DSL_G997_PowerManagementStateForcedTrigger_t sPowerManagementStateForcedTrigger; | ||
DSL_AutobootConfig_t sAutobootCfg; | ||
DSL_AutobootControl_t sAutobootCtl; | ||
|
||
for (nDevice = 0; nDevice < DSL_CPE_DSL_ENTITIES; ++nDevice) | ||
{ | ||
+ memset(&sPowerManagementStateForcedTrigger, 0x0, | ||
+ sizeof(DSL_G997_PowerManagementStateForcedTrigger_t)); | ||
+ sPowerManagementStateForcedTrigger.data.nPowerManagementState = DSL_G997_PMSF_LX_TO_L3; | ||
+ | ||
+ nRet = (DSL_Error_t)DSL_CPE_Ioctl( | ||
+ DSL_CPE_GetGlobalContext()->fd[nDevice], | ||
+ DSL_FIO_G997_POWER_MANAGEMENT_STATE_FORCED_TRIGGER, | ||
+ (DSL_int_t)&sPowerManagementStateForcedTrigger); | ||
+ | ||
+ if (nRet < DSL_SUCCESS) | ||
+ { | ||
+ DSL_CCA_DEBUG(DSL_CCA_DBG_ERR, (DSL_CPE_PREFIX | ||
+ "Transition to L3 state (%d) failed!, nRet = %d!" | ||
+ DSL_CPE_CRLF, nDevice, sPowerManagementStateForcedTrigger.accessCtl.nReturn)); | ||
+ } | ||
+ | ||
g_bWaitBeforeConfigWrite[nDevice] = DSL_TRUE; | ||
g_bWaitBeforeLinkActivation[nDevice] = DSL_TRUE; | ||
g_bWaitBeforeRestart[nDevice] = DSL_TRUE; | ||
@@ -8318,6 +8361,8 @@ DSL_int_t dsl_cpe_daemon ( | ||
#endif /* defined(INCLUDE_DSL_JSON_PARSING) && (INCLUDE_DSL_JSON_PARSING == 1) */ | ||
} | ||
|
||
+ DSL_CPE_EnableConnection(); | ||
+ | ||
#ifdef INCLUDE_DSL_CPE_CLI_SUPPORT | ||
#ifndef DSL_CPE_REMOVE_PIPE_SUPPORT | ||
if (DSL_CPE_Pipe_Init (pCtrlCtx) == DSL_ERROR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.