aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2011-10-05 05:23:33 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-11-11 05:50:55 -0500
commit8e8ddb2b8d19a952e1dff7a2a8a9d606e52fc3e3 (patch)
treebf5387a9f4707642838d83a071835695e62ee6d7 /drivers/net/wireless
parentb4be8959c2cca0a0d3136f9d3bf06a52252911f4 (diff)
ath6kl: move htc_hif to hif.c
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath6kl/Makefile2
-rw-r--r--drivers/net/wireless/ath/ath6kl/hif.c (renamed from drivers/net/wireless/ath/ath6kl/htc_hif.c)59
-rw-r--r--drivers/net/wireless/ath/ath6kl/htc.c20
-rw-r--r--drivers/net/wireless/ath/ath6kl/htc_hif.h22
-rw-r--r--drivers/net/wireless/ath/ath6kl/sdio.c4
5 files changed, 54 insertions, 53 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/Makefile b/drivers/net/wireless/ath/ath6kl/Makefile
index 8f7a0d1c290c..707069303550 100644
--- a/drivers/net/wireless/ath/ath6kl/Makefile
+++ b/drivers/net/wireless/ath/ath6kl/Makefile
@@ -23,7 +23,7 @@
23 23
24obj-$(CONFIG_ATH6KL) := ath6kl.o 24obj-$(CONFIG_ATH6KL) := ath6kl.o
25ath6kl-y += debug.o 25ath6kl-y += debug.o
26ath6kl-y += htc_hif.o 26ath6kl-y += hif.o
27ath6kl-y += htc.o 27ath6kl-y += htc.o
28ath6kl-y += bmi.o 28ath6kl-y += bmi.o
29ath6kl-y += cfg80211.o 29ath6kl-y += cfg80211.o
diff --git a/drivers/net/wireless/ath/ath6kl/htc_hif.c b/drivers/net/wireless/ath/ath6kl/hif.c
index e9d34509a861..629e16cdce32 100644
--- a/drivers/net/wireless/ath/ath6kl/htc_hif.c
+++ b/drivers/net/wireless/ath/ath6kl/hif.c
@@ -24,7 +24,8 @@
24 24
25#define ATH6KL_TIME_QUANTUM 10 /* in ms */ 25#define ATH6KL_TIME_QUANTUM 10 /* in ms */
26 26
27static int ath6kldev_cp_scat_dma_buf(struct hif_scatter_req *req, bool from_dma) 27static int ath6kl_hif_cp_scat_dma_buf(struct hif_scatter_req *req,
28 bool from_dma)
28{ 29{
29 u8 *buf; 30 u8 *buf;
30 int i; 31 int i;
@@ -46,12 +47,12 @@ static int ath6kldev_cp_scat_dma_buf(struct hif_scatter_req *req, bool from_dma)
46 return 0; 47 return 0;
47} 48}
48 49
49int ath6kldev_rw_comp_handler(void *context, int status) 50int ath6kl_hif_rw_comp_handler(void *context, int status)
50{ 51{
51 struct htc_packet *packet = context; 52 struct htc_packet *packet = context;
52 53
53 ath6kl_dbg(ATH6KL_DBG_HTC_RECV, 54 ath6kl_dbg(ATH6KL_DBG_HTC_RECV,
54 "ath6kldev_rw_comp_handler (pkt:0x%p , status: %d\n", 55 "ath6kl_hif_rw_comp_handler (pkt:0x%p , status: %d\n",
55 packet, status); 56 packet, status);
56 57
57 packet->status = status; 58 packet->status = status;
@@ -60,7 +61,7 @@ int ath6kldev_rw_comp_handler(void *context, int status)
60 return 0; 61 return 0;
61} 62}
62 63
63static int ath6kldev_proc_dbg_intr(struct ath6kl_device *dev) 64static int ath6kl_hif_proc_dbg_intr(struct ath6kl_device *dev)
64{ 65{
65 u32 dummy; 66 u32 dummy;
66 int status; 67 int status;
@@ -82,7 +83,7 @@ static int ath6kldev_proc_dbg_intr(struct ath6kl_device *dev)
82} 83}
83 84
84/* mailbox recv message polling */ 85/* mailbox recv message polling */
85int ath6kldev_poll_mboxmsg_rx(struct ath6kl_device *dev, u32 *lk_ahd, 86int ath6kl_hif_poll_mboxmsg_rx(struct ath6kl_device *dev, u32 *lk_ahd,
86 int timeout) 87 int timeout)
87{ 88{
88 struct ath6kl_irq_proc_registers *rg; 89 struct ath6kl_irq_proc_registers *rg;
@@ -131,7 +132,7 @@ int ath6kldev_poll_mboxmsg_rx(struct ath6kl_device *dev, u32 *lk_ahd,
131 * Target failure handler will be called in case of 132 * Target failure handler will be called in case of
132 * an assert. 133 * an assert.
133 */ 134 */
134 ath6kldev_proc_dbg_intr(dev); 135 ath6kl_hif_proc_dbg_intr(dev);
135 } 136 }
136 137
137 return status; 138 return status;
@@ -141,7 +142,7 @@ int ath6kldev_poll_mboxmsg_rx(struct ath6kl_device *dev, u32 *lk_ahd,
141 * Disable packet reception (used in case the host runs out of buffers) 142 * Disable packet reception (used in case the host runs out of buffers)
142 * using the interrupt enable registers through the host I/F 143 * using the interrupt enable registers through the host I/F
143 */ 144 */
144int ath6kldev_rx_control(struct ath6kl_device *dev, bool enable_rx) 145int ath6kl_hif_rx_control(struct ath6kl_device *dev, bool enable_rx)
145{ 146{
146 struct ath6kl_irq_enable_reg regs; 147 struct ath6kl_irq_enable_reg regs;
147 int status = 0; 148 int status = 0;
@@ -168,7 +169,7 @@ int ath6kldev_rx_control(struct ath6kl_device *dev, bool enable_rx)
168 return status; 169 return status;
169} 170}
170 171
171int ath6kldev_submit_scat_req(struct ath6kl_device *dev, 172int ath6kl_hif_submit_scat_req(struct ath6kl_device *dev,
172 struct hif_scatter_req *scat_req, bool read) 173 struct hif_scatter_req *scat_req, bool read)
173{ 174{
174 int status = 0; 175 int status = 0;
@@ -186,13 +187,13 @@ int ath6kldev_submit_scat_req(struct ath6kl_device *dev,
186 } 187 }
187 188
188 ath6kl_dbg((ATH6KL_DBG_HTC_RECV | ATH6KL_DBG_HTC_SEND), 189 ath6kl_dbg((ATH6KL_DBG_HTC_RECV | ATH6KL_DBG_HTC_SEND),
189 "ath6kldev_submit_scat_req, entries: %d, total len: %d mbox:0x%X (mode: %s : %s)\n", 190 "ath6kl_hif_submit_scat_req, entries: %d, total len: %d mbox:0x%X (mode: %s : %s)\n",
190 scat_req->scat_entries, scat_req->len, 191 scat_req->scat_entries, scat_req->len,
191 scat_req->addr, !read ? "async" : "sync", 192 scat_req->addr, !read ? "async" : "sync",
192 (read) ? "rd" : "wr"); 193 (read) ? "rd" : "wr");
193 194
194 if (!read && scat_req->virt_scat) { 195 if (!read && scat_req->virt_scat) {
195 status = ath6kldev_cp_scat_dma_buf(scat_req, false); 196 status = ath6kl_hif_cp_scat_dma_buf(scat_req, false);
196 if (status) { 197 if (status) {
197 scat_req->status = status; 198 scat_req->status = status;
198 scat_req->complete(dev->ar->htc_target, scat_req); 199 scat_req->complete(dev->ar->htc_target, scat_req);
@@ -207,13 +208,13 @@ int ath6kldev_submit_scat_req(struct ath6kl_device *dev,
207 scat_req->status = status; 208 scat_req->status = status;
208 if (!status && scat_req->virt_scat) 209 if (!status && scat_req->virt_scat)
209 scat_req->status = 210 scat_req->status =
210 ath6kldev_cp_scat_dma_buf(scat_req, true); 211 ath6kl_hif_cp_scat_dma_buf(scat_req, true);
211 } 212 }
212 213
213 return status; 214 return status;
214} 215}
215 216
216static int ath6kldev_proc_counter_intr(struct ath6kl_device *dev) 217static int ath6kl_hif_proc_counter_intr(struct ath6kl_device *dev)
217{ 218{
218 u8 counter_int_status; 219 u8 counter_int_status;
219 220
@@ -232,12 +233,12 @@ static int ath6kldev_proc_counter_intr(struct ath6kl_device *dev)
232 * the debug assertion counter interrupt. 233 * the debug assertion counter interrupt.
233 */ 234 */
234 if (counter_int_status & ATH6KL_TARGET_DEBUG_INTR_MASK) 235 if (counter_int_status & ATH6KL_TARGET_DEBUG_INTR_MASK)
235 return ath6kldev_proc_dbg_intr(dev); 236 return ath6kl_hif_proc_dbg_intr(dev);
236 237
237 return 0; 238 return 0;
238} 239}
239 240
240static int ath6kldev_proc_err_intr(struct ath6kl_device *dev) 241static int ath6kl_hif_proc_err_intr(struct ath6kl_device *dev)
241{ 242{
242 int status; 243 int status;
243 u8 error_int_status; 244 u8 error_int_status;
@@ -282,7 +283,7 @@ static int ath6kldev_proc_err_intr(struct ath6kl_device *dev)
282 return status; 283 return status;
283} 284}
284 285
285static int ath6kldev_proc_cpu_intr(struct ath6kl_device *dev) 286static int ath6kl_hif_proc_cpu_intr(struct ath6kl_device *dev)
286{ 287{
287 int status; 288 int status;
288 u8 cpu_int_status; 289 u8 cpu_int_status;
@@ -436,21 +437,21 @@ static int proc_pending_irqs(struct ath6kl_device *dev, bool *done)
436 437
437 if (MS(HOST_INT_STATUS_CPU, host_int_status)) { 438 if (MS(HOST_INT_STATUS_CPU, host_int_status)) {
438 /* CPU Interrupt */ 439 /* CPU Interrupt */
439 status = ath6kldev_proc_cpu_intr(dev); 440 status = ath6kl_hif_proc_cpu_intr(dev);
440 if (status) 441 if (status)
441 goto out; 442 goto out;
442 } 443 }
443 444
444 if (MS(HOST_INT_STATUS_ERROR, host_int_status)) { 445 if (MS(HOST_INT_STATUS_ERROR, host_int_status)) {
445 /* Error Interrupt */ 446 /* Error Interrupt */
446 status = ath6kldev_proc_err_intr(dev); 447 status = ath6kl_hif_proc_err_intr(dev);
447 if (status) 448 if (status)
448 goto out; 449 goto out;
449 } 450 }
450 451
451 if (MS(HOST_INT_STATUS_COUNTER, host_int_status)) 452 if (MS(HOST_INT_STATUS_COUNTER, host_int_status))
452 /* Counter Interrupt */ 453 /* Counter Interrupt */
453 status = ath6kldev_proc_counter_intr(dev); 454 status = ath6kl_hif_proc_counter_intr(dev);
454 455
455out: 456out:
456 /* 457 /*
@@ -479,7 +480,7 @@ out:
479} 480}
480 481
481/* interrupt handler, kicks off all interrupt processing */ 482/* interrupt handler, kicks off all interrupt processing */
482int ath6kldev_intr_bh_handler(struct ath6kl *ar) 483int ath6kl_hif_intr_bh_handler(struct ath6kl *ar)
483{ 484{
484 struct ath6kl_device *dev = ar->htc_target->dev; 485 struct ath6kl_device *dev = ar->htc_target->dev;
485 int status = 0; 486 int status = 0;
@@ -504,7 +505,7 @@ int ath6kldev_intr_bh_handler(struct ath6kl *ar)
504 return status; 505 return status;
505} 506}
506 507
507static int ath6kldev_enable_intrs(struct ath6kl_device *dev) 508static int ath6kl_hif_enable_intrs(struct ath6kl_device *dev)
508{ 509{
509 struct ath6kl_irq_enable_reg regs; 510 struct ath6kl_irq_enable_reg regs;
510 int status; 511 int status;
@@ -552,7 +553,7 @@ static int ath6kldev_enable_intrs(struct ath6kl_device *dev)
552 return status; 553 return status;
553} 554}
554 555
555int ath6kldev_disable_intrs(struct ath6kl_device *dev) 556int ath6kl_hif_disable_intrs(struct ath6kl_device *dev)
556{ 557{
557 struct ath6kl_irq_enable_reg regs; 558 struct ath6kl_irq_enable_reg regs;
558 559
@@ -571,7 +572,7 @@ int ath6kldev_disable_intrs(struct ath6kl_device *dev)
571} 572}
572 573
573/* enable device interrupts */ 574/* enable device interrupts */
574int ath6kldev_unmask_intrs(struct ath6kl_device *dev) 575int ath6kl_hif_unmask_intrs(struct ath6kl_device *dev)
575{ 576{
576 int status = 0; 577 int status = 0;
577 578
@@ -583,29 +584,29 @@ int ath6kldev_unmask_intrs(struct ath6kl_device *dev)
583 * target "soft" resets. The ATH6KL interrupt enables reset back to an 584 * target "soft" resets. The ATH6KL interrupt enables reset back to an
584 * "enabled" state when this happens. 585 * "enabled" state when this happens.
585 */ 586 */
586 ath6kldev_disable_intrs(dev); 587 ath6kl_hif_disable_intrs(dev);
587 588
588 /* unmask the host controller interrupts */ 589 /* unmask the host controller interrupts */
589 ath6kl_hif_irq_enable(dev->ar); 590 ath6kl_hif_irq_enable(dev->ar);
590 status = ath6kldev_enable_intrs(dev); 591 status = ath6kl_hif_enable_intrs(dev);
591 592
592 return status; 593 return status;
593} 594}
594 595
595/* disable all device interrupts */ 596/* disable all device interrupts */
596int ath6kldev_mask_intrs(struct ath6kl_device *dev) 597int ath6kl_hif_mask_intrs(struct ath6kl_device *dev)
597{ 598{
598 /* 599 /*
599 * Mask the interrupt at the HIF layer to avoid any stray interrupt 600 * Mask the interrupt at the HIF layer to avoid any stray interrupt
600 * taken while we zero out our shadow registers in 601 * taken while we zero out our shadow registers in
601 * ath6kldev_disable_intrs(). 602 * ath6kl_hif_disable_intrs().
602 */ 603 */
603 ath6kl_hif_irq_disable(dev->ar); 604 ath6kl_hif_irq_disable(dev->ar);
604 605
605 return ath6kldev_disable_intrs(dev); 606 return ath6kl_hif_disable_intrs(dev);
606} 607}
607 608
608int ath6kldev_setup(struct ath6kl_device *dev) 609int ath6kl_hif_setup(struct ath6kl_device *dev)
609{ 610{
610 int status = 0; 611 int status = 0;
611 612
@@ -634,7 +635,7 @@ int ath6kldev_setup(struct ath6kl_device *dev)
634 ath6kl_dbg(ATH6KL_DBG_TRC, 635 ath6kl_dbg(ATH6KL_DBG_TRC,
635 "hif interrupt processing is sync only\n"); 636 "hif interrupt processing is sync only\n");
636 637
637 status = ath6kldev_disable_intrs(dev); 638 status = ath6kl_hif_disable_intrs(dev);
638 639
639fail_setup: 640fail_setup:
640 return status; 641 return status;
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c
index 9a9eae56af91..b29670839371 100644
--- a/drivers/net/wireless/ath/ath6kl/htc.c
+++ b/drivers/net/wireless/ath/ath6kl/htc.c
@@ -482,7 +482,7 @@ static void ath6kl_htc_tx_bundle(struct htc_endpoint *endpoint,
482 ath6kl_dbg(ATH6KL_DBG_HTC_SEND, 482 ath6kl_dbg(ATH6KL_DBG_HTC_SEND,
483 "send scatter total bytes: %d , entries: %d\n", 483 "send scatter total bytes: %d , entries: %d\n",
484 scat_req->len, scat_req->scat_entries); 484 scat_req->len, scat_req->scat_entries);
485 ath6kldev_submit_scat_req(target->dev, scat_req, false); 485 ath6kl_hif_submit_scat_req(target->dev, scat_req, false);
486 486
487 if (status) 487 if (status)
488 break; 488 break;
@@ -1620,7 +1620,7 @@ static int ath6kl_htc_rx_bundle(struct htc_target *target,
1620 scat_req->len = len; 1620 scat_req->len = len;
1621 scat_req->scat_entries = i; 1621 scat_req->scat_entries = i;
1622 1622
1623 status = ath6kldev_submit_scat_req(target->dev, scat_req, true); 1623 status = ath6kl_hif_submit_scat_req(target->dev, scat_req, true);
1624 1624
1625 if (!status) 1625 if (!status)
1626 *n_pkt_fetched = i; 1626 *n_pkt_fetched = i;
@@ -1865,7 +1865,7 @@ int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
1865 1865
1866 if (target->htc_flags & HTC_OP_STATE_STOPPING) { 1866 if (target->htc_flags & HTC_OP_STATE_STOPPING) {
1867 ath6kl_warn("host is going to stop blocking receiver for htc_stop\n"); 1867 ath6kl_warn("host is going to stop blocking receiver for htc_stop\n");
1868 ath6kldev_rx_control(target->dev, false); 1868 ath6kl_hif_rx_control(target->dev, false);
1869 } 1869 }
1870 } 1870 }
1871 1871
@@ -1875,7 +1875,7 @@ int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
1875 */ 1875 */
1876 if (target->rx_st_flags & HTC_RECV_WAIT_BUFFERS) { 1876 if (target->rx_st_flags & HTC_RECV_WAIT_BUFFERS) {
1877 ath6kl_warn("host has no rx buffers blocking receiver to prevent overrun\n"); 1877 ath6kl_warn("host has no rx buffers blocking receiver to prevent overrun\n");
1878 ath6kldev_rx_control(target->dev, false); 1878 ath6kl_hif_rx_control(target->dev, false);
1879 } 1879 }
1880 *num_pkts = n_fetched; 1880 *num_pkts = n_fetched;
1881 1881
@@ -1893,7 +1893,7 @@ static struct htc_packet *htc_wait_for_ctrl_msg(struct htc_target *target)
1893 struct htc_frame_hdr *htc_hdr; 1893 struct htc_frame_hdr *htc_hdr;
1894 u32 look_ahead; 1894 u32 look_ahead;
1895 1895
1896 if (ath6kldev_poll_mboxmsg_rx(target->dev, &look_ahead, 1896 if (ath6kl_hif_poll_mboxmsg_rx(target->dev, &look_ahead,
1897 HTC_TARGET_RESPONSE_TIMEOUT)) 1897 HTC_TARGET_RESPONSE_TIMEOUT))
1898 return NULL; 1898 return NULL;
1899 1899
@@ -2001,7 +2001,7 @@ int ath6kl_htc_add_rxbuf_multiple(struct htc_target *target,
2001 2001
2002 if (rx_unblock && !(target->htc_flags & HTC_OP_STATE_STOPPING)) 2002 if (rx_unblock && !(target->htc_flags & HTC_OP_STATE_STOPPING))
2003 /* TODO : implement a buffer threshold count? */ 2003 /* TODO : implement a buffer threshold count? */
2004 ath6kldev_rx_control(target->dev, true); 2004 ath6kl_hif_rx_control(target->dev, true);
2005 2005
2006 return status; 2006 return status;
2007} 2007}
@@ -2340,7 +2340,7 @@ int ath6kl_htc_start(struct htc_target *target)
2340 int status; 2340 int status;
2341 2341
2342 /* Disable interrupts at the chip level */ 2342 /* Disable interrupts at the chip level */
2343 ath6kldev_disable_intrs(target->dev); 2343 ath6kl_hif_disable_intrs(target->dev);
2344 2344
2345 target->htc_flags = 0; 2345 target->htc_flags = 0;
2346 target->rx_st_flags = 0; 2346 target->rx_st_flags = 0;
@@ -2365,7 +2365,7 @@ int ath6kl_htc_start(struct htc_target *target)
2365 return status; 2365 return status;
2366 2366
2367 /* unmask interrupts */ 2367 /* unmask interrupts */
2368 status = ath6kldev_unmask_intrs(target->dev); 2368 status = ath6kl_hif_unmask_intrs(target->dev);
2369 2369
2370 if (status) 2370 if (status)
2371 ath6kl_htc_stop(target); 2371 ath6kl_htc_stop(target);
@@ -2385,7 +2385,7 @@ void ath6kl_htc_stop(struct htc_target *target)
2385 * function returns all pending HIF I/O has completed, we can 2385 * function returns all pending HIF I/O has completed, we can
2386 * safely flush the queues. 2386 * safely flush the queues.
2387 */ 2387 */
2388 ath6kldev_mask_intrs(target->dev); 2388 ath6kl_hif_mask_intrs(target->dev);
2389 2389
2390 ath6kl_htc_flush_txep_all(target); 2390 ath6kl_htc_flush_txep_all(target);
2391 2391
@@ -2428,7 +2428,7 @@ void *ath6kl_htc_create(struct ath6kl *ar)
2428 2428
2429 reset_ep_state(target); 2429 reset_ep_state(target);
2430 2430
2431 status = ath6kldev_setup(target->dev); 2431 status = ath6kl_hif_setup(target->dev);
2432 2432
2433 if (status) 2433 if (status)
2434 goto fail_create_htc; 2434 goto fail_create_htc;
diff --git a/drivers/net/wireless/ath/ath6kl/htc_hif.h b/drivers/net/wireless/ath/ath6kl/htc_hif.h
index 171ad63d89b0..5572c23b46f1 100644
--- a/drivers/net/wireless/ath/ath6kl/htc_hif.h
+++ b/drivers/net/wireless/ath/ath6kl/htc_hif.h
@@ -74,19 +74,19 @@ struct ath6kl_device {
74 struct ath6kl *ar; 74 struct ath6kl *ar;
75}; 75};
76 76
77int ath6kldev_setup(struct ath6kl_device *dev); 77int ath6kl_hif_setup(struct ath6kl_device *dev);
78int ath6kldev_unmask_intrs(struct ath6kl_device *dev); 78int ath6kl_hif_unmask_intrs(struct ath6kl_device *dev);
79int ath6kldev_mask_intrs(struct ath6kl_device *dev); 79int ath6kl_hif_mask_intrs(struct ath6kl_device *dev);
80int ath6kldev_poll_mboxmsg_rx(struct ath6kl_device *dev, 80int ath6kl_hif_poll_mboxmsg_rx(struct ath6kl_device *dev,
81 u32 *lk_ahd, int timeout); 81 u32 *lk_ahd, int timeout);
82int ath6kldev_rx_control(struct ath6kl_device *dev, bool enable_rx); 82int ath6kl_hif_rx_control(struct ath6kl_device *dev, bool enable_rx);
83int ath6kldev_disable_intrs(struct ath6kl_device *dev); 83int ath6kl_hif_disable_intrs(struct ath6kl_device *dev);
84 84
85int ath6kldev_rw_comp_handler(void *context, int status); 85int ath6kl_hif_rw_comp_handler(void *context, int status);
86int ath6kldev_intr_bh_handler(struct ath6kl *ar); 86int ath6kl_hif_intr_bh_handler(struct ath6kl *ar);
87 87
88/* Scatter Function and Definitions */ 88/* Scatter Function and Definitions */
89int ath6kldev_submit_scat_req(struct ath6kl_device *dev, 89int ath6kl_hif_submit_scat_req(struct ath6kl_device *dev,
90 struct hif_scatter_req *scat_req, bool read); 90 struct hif_scatter_req *scat_req, bool read);
91 91
92#endif /*ATH6KL_H_ */ 92#endif /*ATH6KL_H_ */
diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c
index 9b8ee1f53787..5b1df82c391c 100644
--- a/drivers/net/wireless/ath/ath6kl/sdio.c
+++ b/drivers/net/wireless/ath/ath6kl/sdio.c
@@ -420,7 +420,7 @@ static void __ath6kl_sdio_write_async(struct ath6kl_sdio *ar_sdio,
420 req->request); 420 req->request);
421 context = req->packet; 421 context = req->packet;
422 ath6kl_sdio_free_bus_req(ar_sdio, req); 422 ath6kl_sdio_free_bus_req(ar_sdio, req);
423 ath6kldev_rw_comp_handler(context, status); 423 ath6kl_hif_rw_comp_handler(context, status);
424 } 424 }
425} 425}
426 426
@@ -457,7 +457,7 @@ static void ath6kl_sdio_irq_handler(struct sdio_func *func)
457 */ 457 */
458 sdio_release_host(ar_sdio->func); 458 sdio_release_host(ar_sdio->func);
459 459
460 status = ath6kldev_intr_bh_handler(ar_sdio->ar); 460 status = ath6kl_hif_intr_bh_handler(ar_sdio->ar);
461 sdio_claim_host(ar_sdio->func); 461 sdio_claim_host(ar_sdio->func);
462 atomic_set(&ar_sdio->irq_handling, 0); 462 atomic_set(&ar_sdio->irq_handling, 0);
463 WARN_ON(status && status != -ECANCELED); 463 WARN_ON(status && status != -ECANCELED);