htc.c (de4fb176622d54a82ea3ceb7362392aaf5ff0b5a) | htc.c (ba9177fcef21fa98406e73c472b5ac2eb4ec5f31) |
---|---|
1// SPDX-License-Identifier: BSD-3-Clause-Clear 2/* 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 */ 5#include <linux/skbuff.h> 6#include <linux/ctype.h> 7 8#include "debug.h" --- 258 unchanged lines hidden (view full) --- 267 spin_unlock_bh(&htc->tx_lock); 268 if (!ep_tx_complete) { 269 dev_kfree_skb_any(skb); 270 return; 271 } 272 ep_tx_complete(htc->ab, skb); 273} 274 | 1// SPDX-License-Identifier: BSD-3-Clause-Clear 2/* 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 */ 5#include <linux/skbuff.h> 6#include <linux/ctype.h> 7 8#include "debug.h" --- 258 unchanged lines hidden (view full) --- 267 spin_unlock_bh(&htc->tx_lock); 268 if (!ep_tx_complete) { 269 dev_kfree_skb_any(skb); 270 return; 271 } 272 ep_tx_complete(htc->ab, skb); 273} 274 |
275static void ath11k_htc_wakeup_from_suspend(struct ath11k_base *ab) 276{ 277 ath11k_dbg(ab, ATH11K_DBG_BOOT, "boot wakeup from suspend is received\n"); 278} 279 |
|
275void ath11k_htc_rx_completion_handler(struct ath11k_base *ab, 276 struct sk_buff *skb) 277{ 278 int status = 0; 279 struct ath11k_htc *htc = &ab->htc; 280 struct ath11k_htc_hdr *hdr; 281 struct ath11k_htc_ep *ep; 282 u16 payload_len; --- 88 unchanged lines hidden (view full) --- 371 break; 372 case ATH11K_HTC_MSG_SEND_SUSPEND_COMPLETE: 373 ath11k_htc_suspend_complete(ab, true); 374 break; 375 case ATH11K_HTC_MSG_NACK_SUSPEND: 376 ath11k_htc_suspend_complete(ab, false); 377 break; 378 case ATH11K_HTC_MSG_WAKEUP_FROM_SUSPEND_ID: | 280void ath11k_htc_rx_completion_handler(struct ath11k_base *ab, 281 struct sk_buff *skb) 282{ 283 int status = 0; 284 struct ath11k_htc *htc = &ab->htc; 285 struct ath11k_htc_hdr *hdr; 286 struct ath11k_htc_ep *ep; 287 u16 payload_len; --- 88 unchanged lines hidden (view full) --- 376 break; 377 case ATH11K_HTC_MSG_SEND_SUSPEND_COMPLETE: 378 ath11k_htc_suspend_complete(ab, true); 379 break; 380 case ATH11K_HTC_MSG_NACK_SUSPEND: 381 ath11k_htc_suspend_complete(ab, false); 382 break; 383 case ATH11K_HTC_MSG_WAKEUP_FROM_SUSPEND_ID: |
384 ath11k_htc_wakeup_from_suspend(ab); |
|
379 break; 380 default: 381 ath11k_warn(ab, "ignoring unsolicited htc ep0 event %ld\n", 382 FIELD_GET(HTC_MSG_MESSAGEID, msg->msg_svc_id)); 383 break; 384 } 385 goto out; 386 } --- 442 unchanged lines hidden --- | 385 break; 386 default: 387 ath11k_warn(ab, "ignoring unsolicited htc ep0 event %ld\n", 388 FIELD_GET(HTC_MSG_MESSAGEID, msg->msg_svc_id)); 389 break; 390 } 391 goto out; 392 } --- 442 unchanged lines hidden --- |