mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-11 05:12:12 -05:00
qcacld-3.0: Add PLD support to check if FW is down for PCIe bus
Support to check if FW is down or not for PCIe bus in PLD layer. Change-Id: Ic09607016c430a1c4ec6c30f9b29b1ab52b4c885 CRs-fixed: 2268026
This commit is contained in:
parent
ade36d6ffb
commit
9c0e4800ea
2 changed files with 12 additions and 0 deletions
|
|
@ -1494,6 +1494,8 @@ int pld_is_fw_down(struct device *dev)
|
|||
ret = pld_snoc_is_fw_down(dev);
|
||||
break;
|
||||
case PLD_BUS_TYPE_PCIE:
|
||||
ret = pld_pcie_is_fw_down(dev);
|
||||
break;
|
||||
case PLD_BUS_TYPE_SDIO:
|
||||
case PLD_BUS_TYPE_USB:
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -140,6 +140,11 @@ static inline void pld_pcie_link_down(struct device *dev)
|
|||
{
|
||||
}
|
||||
|
||||
static inline int pld_pcie_is_fw_down(struct device *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int pld_pcie_athdiag_read(struct device *dev, uint32_t offset,
|
||||
uint32_t memtype, uint32_t datalen,
|
||||
uint8_t *output)
|
||||
|
|
@ -270,6 +275,11 @@ static inline void pld_pcie_link_down(struct device *dev)
|
|||
cnss_pci_link_down(dev);
|
||||
}
|
||||
|
||||
static inline int pld_pcie_is_fw_down(struct device *dev)
|
||||
{
|
||||
return cnss_pci_is_device_down(dev);
|
||||
}
|
||||
|
||||
static inline int pld_pcie_athdiag_read(struct device *dev, uint32_t offset,
|
||||
uint32_t memtype, uint32_t datalen,
|
||||
uint8_t *output)
|
||||
|
|
|
|||
Loading…
Reference in a new issue