|
@@ -187,6 +187,12 @@ static inline void pld_pcie_link_down(struct device *dev)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+static inline int pld_pcie_get_reg_dump(struct device *dev, uint8_t *buf,
|
|
|
+ uint32_t len)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
static inline int pld_pcie_is_fw_down(struct device *dev)
|
|
|
{
|
|
|
return 0;
|
|
@@ -500,6 +506,21 @@ static inline void pld_pcie_link_down(struct device *dev)
|
|
|
cnss_pci_link_down(dev);
|
|
|
}
|
|
|
|
|
|
+#if ((LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)) && \
|
|
|
+ (LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)))
|
|
|
+static inline int pld_pcie_get_reg_dump(struct device *dev, uint8_t *buf,
|
|
|
+ uint32_t len)
|
|
|
+{
|
|
|
+ return cnss_pci_get_reg_dump(dev, buf, len);
|
|
|
+}
|
|
|
+#else
|
|
|
+static inline int pld_pcie_get_reg_dump(struct device *dev, uint8_t *buf,
|
|
|
+ uint32_t len)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
static inline int pld_pcie_is_fw_down(struct device *dev)
|
|
|
{
|
|
|
return cnss_pci_is_device_down(dev);
|