Loading drivers/net/wireless/cnss2/pci.c +7 −1 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ #define EMULATION_HW 0 #endif #define RAMDUMP_SIZE_DEFAULT 0x420000 #define DEVICE_RDDM_COOKIE 0xCAFECACE static DEFINE_SPINLOCK(pci_link_down_lock); Loading Loading @@ -4094,13 +4095,16 @@ void cnss_get_msi_address(struct device *dev, u32 *msi_addr_low, &control); pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_LO, msi_addr_low); /*return msi high addr only when device support 64 BIT MSI */ /* Return MSI high address only when device supports 64-bit MSI */ if (control & PCI_MSI_FLAGS_64BIT) pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_HI, msi_addr_high); else *msi_addr_high = 0; cnss_pr_dbg("Get MSI low addr = 0x%x, high addr = 0x%x\n", *msi_addr_low, *msi_addr_high); } EXPORT_SYMBOL(cnss_get_msi_address); Loading Loading @@ -4961,6 +4965,8 @@ static int cnss_pci_register_mhi(struct cnss_pci_data *pci_priv) mhi_ctrl->bw_scale = cnss_mhi_bw_scale; mhi_ctrl->rddm_size = pci_priv->plat_priv->ramdump_info_v2.ramdump_size; if (!mhi_ctrl->rddm_size) mhi_ctrl->rddm_size = RAMDUMP_SIZE_DEFAULT; mhi_ctrl->sbl_size = SZ_512K; mhi_ctrl->seg_len = SZ_512K; mhi_ctrl->fbc_download = true; Loading Loading
drivers/net/wireless/cnss2/pci.c +7 −1 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ #define EMULATION_HW 0 #endif #define RAMDUMP_SIZE_DEFAULT 0x420000 #define DEVICE_RDDM_COOKIE 0xCAFECACE static DEFINE_SPINLOCK(pci_link_down_lock); Loading Loading @@ -4094,13 +4095,16 @@ void cnss_get_msi_address(struct device *dev, u32 *msi_addr_low, &control); pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_LO, msi_addr_low); /*return msi high addr only when device support 64 BIT MSI */ /* Return MSI high address only when device supports 64-bit MSI */ if (control & PCI_MSI_FLAGS_64BIT) pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_HI, msi_addr_high); else *msi_addr_high = 0; cnss_pr_dbg("Get MSI low addr = 0x%x, high addr = 0x%x\n", *msi_addr_low, *msi_addr_high); } EXPORT_SYMBOL(cnss_get_msi_address); Loading Loading @@ -4961,6 +4965,8 @@ static int cnss_pci_register_mhi(struct cnss_pci_data *pci_priv) mhi_ctrl->bw_scale = cnss_mhi_bw_scale; mhi_ctrl->rddm_size = pci_priv->plat_priv->ramdump_info_v2.ramdump_size; if (!mhi_ctrl->rddm_size) mhi_ctrl->rddm_size = RAMDUMP_SIZE_DEFAULT; mhi_ctrl->sbl_size = SZ_512K; mhi_ctrl->seg_len = SZ_512K; mhi_ctrl->fbc_download = true; Loading