Jelajahi Sumber

qcacld-3.0: Add WHUNT bus types in pld_lock/unlock_reg_window APIs

Currently pld_lock/unlock_reg_window APIs don't support
WHUNT simulation bus types and treated as error.
Add support for WHUNT simulation buses in lock/unlock
register window APIs.

Change-Id: I1e82d822becaadc9592b693e6ab20331ecb9cbc2
Karthik Kantamneni 5 tahun lalu
induk
melakukan
2d65b47bb3
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      core/pld/src/pld_common.c

+ 4 - 0
core/pld/src/pld_common.c

@@ -1402,6 +1402,8 @@ void pld_lock_reg_window(struct device *dev, unsigned long *flags)
 	case PLD_BUS_TYPE_PCIE:
 		pld_pcie_lock_reg_window(dev, flags);
 		break;
+	case PLD_BUS_TYPE_PCIE_FW_SIM:
+	case PLD_BUS_TYPE_SNOC_FW_SIM:
 	case PLD_BUS_TYPE_SNOC:
 		break;
 	case PLD_BUS_TYPE_SDIO:
@@ -1429,6 +1431,8 @@ void pld_unlock_reg_window(struct device *dev, unsigned long *flags)
 	case PLD_BUS_TYPE_PCIE:
 		pld_pcie_unlock_reg_window(dev, flags);
 		break;
+	case PLD_BUS_TYPE_PCIE_FW_SIM:
+	case PLD_BUS_TYPE_SNOC_FW_SIM:
 	case PLD_BUS_TYPE_SNOC:
 		break;
 	case PLD_BUS_TYPE_SDIO: