Loading drivers/net/wireless/cnss/cnss_sdio.c +3 −3 Original line number Diff line number Diff line Loading @@ -274,7 +274,7 @@ static int cnss_put_hw_resources(struct device *dev) info->cnss_hw_state = false; return ret; return 0; } static int cnss_get_hw_resources(struct device *dev) Loading Loading @@ -678,9 +678,9 @@ int cnss_get_restart_level(void) ssr_info = &cnss_pdata->ssr_info; if (!ssr_info->subsys) return CNSS_RESET_SOC; #ifdef CNSS_COMPLIE_ISSUE_FIX_LATER_IFNEEDED level = subsys_get_restart_level(ssr_info->subsys); #endif switch (level) { case RESET_SOC: return CNSS_RESET_SOC; Loading drivers/soc/qcom/msm_subsystem_restart.c +6 −0 Original line number Diff line number Diff line Loading @@ -328,6 +328,12 @@ static ssize_t system_debug_store(struct device *dev, } static DEVICE_ATTR_RW(system_debug); int subsys_get_restart_level(struct subsys_device *dev) { return dev->restart_level; } EXPORT_SYMBOL(subsys_get_restart_level); static void subsys_set_state(struct subsys_device *subsys, enum subsys_state state) { Loading include/soc/qcom/subsystem_restart.h +7 −1 Original line number Diff line number Diff line /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2014-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2014-2019 2021, The Linux Foundation. All rights reserved. */ #ifndef __SUBSYS_RESTART_H Loading Loading @@ -132,6 +132,7 @@ struct notif_data { #if IS_ENABLED(CONFIG_MSM_SUBSYSTEM_RESTART) extern int subsys_get_restart_level(struct subsys_device *dev); extern int subsystem_restart_dev(struct subsys_device *dev); extern int subsystem_restart(const char *name); extern int subsystem_crashed(const char *name); Loading @@ -157,6 +158,11 @@ static inline void complete_shutdown_ack(struct subsys_desc *desc) struct subsys_device *find_subsys_device(const char *str); #else static inline int subsys_get_restart_level(struct subsys_device *dev) { return 0; } static inline int subsystem_restart_dev(struct subsys_device *dev) { return 0; Loading Loading
drivers/net/wireless/cnss/cnss_sdio.c +3 −3 Original line number Diff line number Diff line Loading @@ -274,7 +274,7 @@ static int cnss_put_hw_resources(struct device *dev) info->cnss_hw_state = false; return ret; return 0; } static int cnss_get_hw_resources(struct device *dev) Loading Loading @@ -678,9 +678,9 @@ int cnss_get_restart_level(void) ssr_info = &cnss_pdata->ssr_info; if (!ssr_info->subsys) return CNSS_RESET_SOC; #ifdef CNSS_COMPLIE_ISSUE_FIX_LATER_IFNEEDED level = subsys_get_restart_level(ssr_info->subsys); #endif switch (level) { case RESET_SOC: return CNSS_RESET_SOC; Loading
drivers/soc/qcom/msm_subsystem_restart.c +6 −0 Original line number Diff line number Diff line Loading @@ -328,6 +328,12 @@ static ssize_t system_debug_store(struct device *dev, } static DEVICE_ATTR_RW(system_debug); int subsys_get_restart_level(struct subsys_device *dev) { return dev->restart_level; } EXPORT_SYMBOL(subsys_get_restart_level); static void subsys_set_state(struct subsys_device *subsys, enum subsys_state state) { Loading
include/soc/qcom/subsystem_restart.h +7 −1 Original line number Diff line number Diff line /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2014-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2014-2019 2021, The Linux Foundation. All rights reserved. */ #ifndef __SUBSYS_RESTART_H Loading Loading @@ -132,6 +132,7 @@ struct notif_data { #if IS_ENABLED(CONFIG_MSM_SUBSYSTEM_RESTART) extern int subsys_get_restart_level(struct subsys_device *dev); extern int subsystem_restart_dev(struct subsys_device *dev); extern int subsystem_restart(const char *name); extern int subsystem_crashed(const char *name); Loading @@ -157,6 +158,11 @@ static inline void complete_shutdown_ack(struct subsys_desc *desc) struct subsys_device *find_subsys_device(const char *str); #else static inline int subsys_get_restart_level(struct subsys_device *dev) { return 0; } static inline int subsystem_restart_dev(struct subsys_device *dev) { return 0; Loading