Browse Source

qcacld-3.0: Add fiwmare down case in the pld pcie uevent

When the firmware crashes platform driver notifies the driver
through CNSS_FW_DOWN. Since firmware down support is not
present for the PCI bus, The driver flags for target ready
and recovery flags are not getting set resulting in the commands
sent to firmware.

Add the firmware down support for the pci bus.

Change-Id: I20db3698602ea273038a3f024b4e5f61639f6d74
CRs-Fixed: 2338570
Arunk Khandavalli 6 years ago
parent
commit
f9957c0fcf
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core/pld/src/pld_pcie.c

+ 3 - 0
core/pld/src/pld_pcie.c

@@ -194,6 +194,9 @@ static void pld_pcie_uevent(struct pci_dev *pdev, uint32_t status)
 	case CNSS_RECOVERY:
 		data.uevent = PLD_RECOVERY;
 		break;
+	case CNSS_FW_DOWN:
+		data.uevent = PLD_FW_DOWN;
+		break;
 	default:
 		goto out;
 	}