]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/bcma/main.c
bcma: support for suspend and resume
[mirror_ubuntu-bionic-kernel.git] / drivers / bcma / main.c
index 70c84b95109860205a7ec1d216ef8df58f34ba30..10f92b371e582bf6d371f425b17dd1dfe5629afd 100644 (file)
@@ -240,6 +240,22 @@ int __init bcma_bus_early_register(struct bcma_bus *bus,
        return 0;
 }
 
+#ifdef CONFIG_PM
+int bcma_bus_resume(struct bcma_bus *bus)
+{
+       struct bcma_device *core;
+
+       /* Init CC core */
+       core = bcma_find_core(bus, BCMA_CORE_CHIPCOMMON);
+       if (core) {
+               bus->drv_cc.setup_done = false;
+               bcma_core_chipcommon_init(&bus->drv_cc);
+       }
+
+       return 0;
+}
+#endif
+
 int __bcma_driver_register(struct bcma_driver *drv, struct module *owner)
 {
        drv->drv.name = drv->name;