Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Side by Side Diff: drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c

Issue 6488018: brcmfmac: Fix suspend/resume (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/kernel-next.git@chromeos-2.6.37
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 Broadcom Corporation 2 * Copyright (c) 2010 Broadcom Corporation
3 * 3 *
4 * Permission to use, copy, modify, and/or distribute this software for any 4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above 5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies. 6 * copyright notice and this permission notice appear in all copies.
7 * 7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 DHD_PM_RESUME_WAIT_INIT(sdioh_request_byte_wait); 63 DHD_PM_RESUME_WAIT_INIT(sdioh_request_byte_wait);
64 DHD_PM_RESUME_WAIT_INIT(sdioh_request_word_wait); 64 DHD_PM_RESUME_WAIT_INIT(sdioh_request_word_wait);
65 DHD_PM_RESUME_WAIT_INIT(sdioh_request_packet_wait); 65 DHD_PM_RESUME_WAIT_INIT(sdioh_request_packet_wait);
66 DHD_PM_RESUME_WAIT_INIT(sdioh_request_buffer_wait); 66 DHD_PM_RESUME_WAIT_INIT(sdioh_request_buffer_wait);
67 67
68 #define DMA_ALIGN_MASK 0x03 68 #define DMA_ALIGN_MASK 0x03
69 69
70 int sdioh_sdmmc_card_regread(sdioh_info_t *sd, int func, u32 regaddr, 70 int sdioh_sdmmc_card_regread(sdioh_info_t *sd, int func, u32 regaddr,
71 int regsize, u32 *data); 71 int regsize, u32 *data);
72 72
73 void sdioh_sdio_set_host_pm_flags(int flag)
74 {
75 if (sdio_set_host_pm_flags(gInstance->func[1], flag))
76 printk(KERN_ERR "%s: Failed to set pm_flags 0x%08x\n",\
Olof Johansson 2011/03/08 02:35:23 No need for \ at the end. It would be more interes
77 __func__, (unsigned int)flag);
Olof Johansson 2011/03/08 02:35:23 No need to cast flag
78 }
79
73 static int sdioh_sdmmc_card_enablefuncs(sdioh_info_t *sd) 80 static int sdioh_sdmmc_card_enablefuncs(sdioh_info_t *sd)
74 { 81 {
75 int err_ret; 82 int err_ret;
76 u32 fbraddr; 83 u32 fbraddr;
77 u8 func; 84 u8 func;
78 85
79 sd_trace(("%s\n", __func__)); 86 sd_trace(("%s\n", __func__));
80 87
81 /* Get the Card's common CIS address */ 88 /* Get the Card's common CIS address */
82 sd->com_cis_ptr = sdioh_sdmmc_get_cisaddr(sd, SDIOD_CCCR_CISPTR_0); 89 sd->com_cis_ptr = sdioh_sdmmc_get_cisaddr(sd, SDIOD_CCCR_CISPTR_0);
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 1237
1231 int sdioh_start(sdioh_info_t *si, int stage) 1238 int sdioh_start(sdioh_info_t *si, int stage)
1232 { 1239 {
1233 return 0; 1240 return 0;
1234 } 1241 }
1235 1242
1236 int sdioh_stop(sdioh_info_t *si) 1243 int sdioh_stop(sdioh_info_t *si)
1237 { 1244 {
1238 return 0; 1245 return 0;
1239 } 1246 }
OLDNEW
« no previous file with comments | « no previous file | drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698