OSDN Git Service

cnss2: Expose idle restart/shutdown APIs
authorYue Ma <yuem@codeaurora.org>
Thu, 2 May 2019 22:35:16 +0000 (15:35 -0700)
committerGerrit - the friendly Code Review server <code-review@localhost>
Fri, 3 May 2019 17:46:29 +0000 (10:46 -0700)
Interface change to expose idle restart/shutdown APIs for WLAN
driver. This patch is to provide API interface to ease compilation
issues among various branches of kernel and WLAN driver. The actual
implementation will be in a separate patch.

Change-Id: I7f4a0079c32875c362d36c9f794d55609f924198
Signed-off-by: Yue Ma <yuem@codeaurora.org>
drivers/net/wireless/cnss2/main.c
include/net/cnss2.h

index 4a75a29..1da33c2 100644 (file)
@@ -774,6 +774,18 @@ int cnss_power_down(struct device *dev)
 }
 EXPORT_SYMBOL(cnss_power_down);
 
+int cnss_idle_restart(struct device *dev)
+{
+       return 0;
+}
+EXPORT_SYMBOL(cnss_idle_restart);
+
+int cnss_idle_shutdown(struct device *dev)
+{
+       return 0;
+}
+EXPORT_SYMBOL(cnss_idle_shutdown);
+
 static int cnss_get_resources(struct cnss_plat_data *plat_priv)
 {
        int ret = 0;
index 686a13a..eb6908f 100644 (file)
@@ -79,6 +79,9 @@ struct cnss_wlan_driver {
        char *name;
        int  (*probe)(struct pci_dev *pdev, const struct pci_device_id *id);
        void (*remove)(struct pci_dev *pdev);
+       int (*idle_restart)(struct pci_dev *pdev,
+                           const struct pci_device_id *id);
+       int  (*idle_shutdown)(struct pci_dev *pdev);
        int  (*reinit)(struct pci_dev *pdev, const struct pci_device_id *id);
        void (*shutdown)(struct pci_dev *pdev);
        void (*crash_shutdown)(struct pci_dev *pdev);
@@ -212,6 +215,8 @@ extern int cnss_get_soc_info(struct device *dev, struct cnss_soc_info *info);
 extern int cnss_request_bus_bandwidth(struct device *dev, int bandwidth);
 extern int cnss_power_up(struct device *dev);
 extern int cnss_power_down(struct device *dev);
+extern int cnss_idle_restart(struct device *dev);
+extern int cnss_idle_shutdown(struct device *dev);
 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);