From: Hauke Mehrtens Date: Sun, 6 Jun 2010 09:11:56 +0000 (+0200) Subject: compat-wireless: deactivate libertas sdio suspend for < 2.6.34 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4216b3d18f04635e96f694c2505daa4556a8766c;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: deactivate libertas sdio suspend for < 2.6.34 libertas sdio suspend and resume depends on some new features of the sdio framework in kernel 2.6.34. Signed-off-by: Hauke Mehrtens --- diff --git a/patches/29-libertas_sdio_no_suspend.patch b/patches/29-libertas_sdio_no_suspend.patch new file mode 100644 index 000000000000..f5dc993d01fe --- /dev/null +++ b/patches/29-libertas_sdio_no_suspend.patch @@ -0,0 +1,34 @@ +Starting with commit 66fceb69b72ff7e9cd8da2ca70033982d5376e0e +"libertas: Added callback functions to support SDIO suspend/resume." +libertas uses new functions from the in kernel sdio framework for +suspend and resume that are not backported. + +--- a/drivers/net/wireless/libertas/if_sdio.c ++++ b/drivers/net/wireless/libertas/if_sdio.c +@@ -1212,6 +1212,7 @@ static void if_sdio_remove(struct sdio_f + lbs_deb_leave(LBS_DEB_SDIO); + } + ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) + static int if_sdio_suspend(struct device *dev) + { + struct sdio_func *func = dev_to_sdio_func(dev); +@@ -1266,15 +1267,18 @@ static const struct dev_pm_ops if_sdio_p + .suspend = if_sdio_suspend, + .resume = if_sdio_resume, + }; ++#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) */ + + static struct sdio_driver if_sdio_driver = { + .name = "libertas_sdio", + .id_table = if_sdio_ids, + .probe = if_sdio_probe, + .remove = if_sdio_remove, ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) + .drv = { + .pm = &if_sdio_pm_ops, + }, ++#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) */ + }; + + /*******************************************************************/