msm: ipahal: Add uCP exception case for status pkt

Add a new enum for uCP exception pkt status.
Handle the case where this pkt status exception is received.

Change-Id: Ib69e307548efed3482d4636db9161f423c051570
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
This commit is contained in:
Michael Adisumarta 2020-07-01 17:03:58 -07:00 committed by Gerrit - the friendly Code Review server
parent 1e453d39fd
commit a948d7af15
2 changed files with 7 additions and 1 deletions

View File

@ -49,6 +49,8 @@ static const char *ipahal_pkt_status_exception_to_str
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_SW_FILT),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_NAT),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_IPV6CT),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_UCP),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_CSUM),
};
static u16 ipahal_imm_cmd_get_opcode(enum ipahal_imm_cmd_name cmd);
@ -978,6 +980,9 @@ static void ipa_pkt_status_parse(
else
exception_type = IPAHAL_PKT_STATUS_EXCEPTION_NAT;
break;
case 128:
exception_type = IPAHAL_PKT_STATUS_EXCEPTION_UCP;
break;
case 229:
exception_type = IPAHAL_PKT_STATUS_EXCEPTION_CSUM;
break;

View File

@ -1,4 +1,4 @@
/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -444,6 +444,7 @@ enum ipahal_pkt_status_exception {
*/
IPAHAL_PKT_STATUS_EXCEPTION_NAT,
IPAHAL_PKT_STATUS_EXCEPTION_IPV6CT,
IPAHAL_PKT_STATUS_EXCEPTION_UCP,
IPAHAL_PKT_STATUS_EXCEPTION_CSUM,
IPAHAL_PKT_STATUS_EXCEPTION_MAX,
};