cnss2: Skip any adsp operation if DRV not supported

At the auto platform, DRV feature is not applicable.
So do not issue any DRV related operation from cnss2
side, which may cause the RC PHY not ready in the LPM
case.

Change-Id: Iefae9a885c1adc289da518d65a2974e127bdf359
CRs-Fixed: 3419811
Cette révision appartient à :
Chaoli Zhou
2023-03-07 10:16:20 +08:00
révisé par Madan Koyyalamudi
Parent 597155d64e
révision 74ebfcdb0a
3 fichiers modifiés avec 22 ajouts et 11 suppressions

Voir le fichier

@@ -6359,7 +6359,7 @@ static int cnss_pci_register_mhi(struct cnss_pci_data *pci_priv)
}
/* MHI satellite driver only needs to connect when DRV is supported */
if (cnss_pci_is_drv_supported(pci_priv))
if (cnss_pci_get_drv_supported(pci_priv))
cnss_mhi_controller_set_base(pci_priv, bar_start);
/* BW scale CB needs to be set after registering MHI per requirement */
@@ -6748,6 +6748,9 @@ static int cnss_pci_probe(struct pci_dev *pci_dev,
if (ret)
goto unregister_ramdump;
/* update drv support flag */
cnss_pci_update_drv_supported(pci_priv);
ret = cnss_reg_pci_event(pci_priv);
if (ret) {
cnss_pr_err("Failed to register PCI event, err = %d\n", ret);