cnss2: Add one MSI vector support
Some platforms can't meet the number of MSI interrupt vectors that wlan driver requires. Add one MSI interrupt vector support. If CONFIG_ONE_MSI_VECTOR is not defined, wlan driver fails to load if reuired MSI vector allocation fails. It is current behavior. If CONFIG_ONE_MSI_VECTOR is defined, firstly it will allocate multiple MSI vectors based on MSI config. If MSI vector allocation fails, it fallbacks to one MSI vector automatically. Change-Id: I813f7ddf678ecf405e573f3bc72af3e758d1c96d CRs-Fixed: 3312670
This commit is contained in:

committed by
Madan Koyyalamudi

parent
e3b36fcd46
commit
fe37b559b9
@@ -270,6 +270,7 @@ extern int cnss_get_user_msi_assignment(struct device *dev, char *user_name,
|
||||
uint32_t *user_base_data,
|
||||
uint32_t *base_vector);
|
||||
extern int cnss_get_msi_irq(struct device *dev, unsigned int vector);
|
||||
extern bool cnss_is_one_msi(struct device *dev);
|
||||
extern void cnss_get_msi_address(struct device *dev, uint32_t *msi_addr_low,
|
||||
uint32_t *msi_addr_high);
|
||||
extern int cnss_wlan_hw_enable(void);
|
||||
|
Reference in New Issue
Block a user