Loading drivers/net/wireless/cnss2/pci.c +13 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ #define FW_ASSERT_TIMEOUT 5000 static DEFINE_SPINLOCK(pci_link_down_lock); static DEFINE_SPINLOCK(pci_reg_window_lock); static unsigned int pci_link_down_panic; module_param(pci_link_down_panic, uint, 0600); Loading Loading @@ -251,6 +252,18 @@ int cnss_pci_is_device_down(struct device *dev) } EXPORT_SYMBOL(cnss_pci_is_device_down); void cnss_pci_lock_reg_window(struct device *dev, unsigned long *flags) { spin_lock_bh(&pci_reg_window_lock); } EXPORT_SYMBOL(cnss_pci_lock_reg_window); void cnss_pci_unlock_reg_window(struct device *dev, unsigned long *flags) { spin_unlock_bh(&pci_reg_window_lock); } EXPORT_SYMBOL(cnss_pci_unlock_reg_window); int cnss_pci_call_driver_probe(struct cnss_pci_data *pci_priv) { int ret = 0; Loading include/net/cnss2.h +3 −0 Original line number Diff line number Diff line Loading @@ -213,6 +213,9 @@ extern void cnss_request_pm_qos(struct device *dev, u32 qos_val); extern void cnss_remove_pm_qos(struct device *dev); extern void cnss_lock_pm_sem(struct device *dev); extern void cnss_release_pm_sem(struct device *dev); extern void cnss_pci_lock_reg_window(struct device *dev, unsigned long *flags); extern void cnss_pci_unlock_reg_window(struct device *dev, unsigned long *flags); extern int cnss_wlan_pm_control(struct device *dev, bool vote); extern int cnss_auto_suspend(struct device *dev); extern int cnss_auto_resume(struct device *dev); Loading Loading
drivers/net/wireless/cnss2/pci.c +13 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ #define FW_ASSERT_TIMEOUT 5000 static DEFINE_SPINLOCK(pci_link_down_lock); static DEFINE_SPINLOCK(pci_reg_window_lock); static unsigned int pci_link_down_panic; module_param(pci_link_down_panic, uint, 0600); Loading Loading @@ -251,6 +252,18 @@ int cnss_pci_is_device_down(struct device *dev) } EXPORT_SYMBOL(cnss_pci_is_device_down); void cnss_pci_lock_reg_window(struct device *dev, unsigned long *flags) { spin_lock_bh(&pci_reg_window_lock); } EXPORT_SYMBOL(cnss_pci_lock_reg_window); void cnss_pci_unlock_reg_window(struct device *dev, unsigned long *flags) { spin_unlock_bh(&pci_reg_window_lock); } EXPORT_SYMBOL(cnss_pci_unlock_reg_window); int cnss_pci_call_driver_probe(struct cnss_pci_data *pci_priv) { int ret = 0; Loading
include/net/cnss2.h +3 −0 Original line number Diff line number Diff line Loading @@ -213,6 +213,9 @@ extern void cnss_request_pm_qos(struct device *dev, u32 qos_val); extern void cnss_remove_pm_qos(struct device *dev); extern void cnss_lock_pm_sem(struct device *dev); extern void cnss_release_pm_sem(struct device *dev); extern void cnss_pci_lock_reg_window(struct device *dev, unsigned long *flags); extern void cnss_pci_unlock_reg_window(struct device *dev, unsigned long *flags); extern int cnss_wlan_pm_control(struct device *dev, bool vote); extern int cnss_auto_suspend(struct device *dev); extern int cnss_auto_resume(struct device *dev); Loading