Re: [PATCH] STAGING: brcm80211 keep power on in suspend state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 17, 2011 at 07:12:42PM -0700, Grant Grundler wrote:
>  static int sdioh_sdmmc_card_enablefuncs(sdioh_info_t *sd)
>  {
>  	int err_ret;
> diff --git a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
> index 9e74beb..ba1c152 100644
> --- a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
> +++ b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
> @@ -1973,6 +1973,8 @@ static s32 wl_cfg80211_resume(struct wiphy *wiphy)
>  
>  static s32 wl_cfg80211_suspend(struct wiphy *wiphy)
>  {
> +	void sdioh_sdio_set_host_pm_flags(int flag);
> +

Let's not put the function declaration here...  Better at the top of the
file with all the others.

regards,
dan carpenter

>  	struct wl_priv *wl = wiphy_to_wl(wiphy);
>  	struct net_device *ndev = wl_to_ndev(wl);
>  	s32 err = 0;
> @@ -1988,6 +1990,8 @@ static s32 wl_cfg80211_suspend(struct wiphy *wiphy)
>  	clear_bit(WL_STATUS_SCANNING, &wl->status);
>  	clear_bit(WL_STATUS_SCAN_ABORTING, &wl->status);
>  
> +	sdioh_sdio_set_host_pm_flags(MMC_PM_KEEP_POWER);
> +
>  	return err;
>  }

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux