瀏覽代碼

cnss2: Add code to enable hang data for kiwi

Add code to enable hang data for kiwi.

Change-Id: Idef5d036c0add2f20bd452eb4f91be81dcc90e5e
Mohammed Siddiq 3 年之前
父節點
當前提交
83cc8e3076
共有 1 個文件被更改,包括 4 次插入0 次删除
  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);