Browse Source

cnss2: Add code to enable hang data for kiwi

Add code to enable hang data for kiwi.

Change-Id: Idef5d036c0add2f20bd452eb4f91be81dcc90e5e
Mohammed Siddiq 3 years ago
parent
commit
83cc8e3076
1 changed files with 4 additions and 0 deletions
  1. 4 0
      cnss2/pci.c

+ 4 - 0
cnss2/pci.c

@@ -5347,6 +5347,10 @@ static void cnss_pci_send_hang_event(struct cnss_pci_data *pci_priv)
 			length = HANG_DATA_LENGTH;
 		}
 		break;
+	case KIWI_DEVICE_ID:
+		offset = plat_priv->hang_data_addr_offset;
+		length = plat_priv->hang_event_data_len;
+		break;
 	default:
 		cnss_pr_err("Skip Hang Event Data as unsupported Device ID received: %d\n",
 			    pci_priv->device_id);