mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
qcacld-3.0: Return correct value from PLD layer
For APsI pld_get_mhi_state() and pld_is_pci_ep_awake() return proper value for buses other than IPCI where these APIs are not supported. Change-Id: I2dfe8118d29aa2bc75484ff4d708b21eba264350
This commit is contained in:
parent
c9f6534561
commit
f3bbbede3c
1 changed files with 2 additions and 0 deletions
|
|
@ -691,6 +691,7 @@ int pld_get_mhi_state(struct device *dev)
|
|||
case PLD_BUS_TYPE_SNOC:
|
||||
case PLD_BUS_TYPE_SDIO:
|
||||
case PLD_BUS_TYPE_USB:
|
||||
ret = PLD_MHI_STATE_L0;
|
||||
break;
|
||||
case PLD_BUS_TYPE_IPCI:
|
||||
ret = pld_ipci_mhi_state(dev);
|
||||
|
|
@ -1392,6 +1393,7 @@ int pld_is_pci_ep_awake(struct device *dev)
|
|||
case PLD_BUS_TYPE_SNOC:
|
||||
case PLD_BUS_TYPE_SDIO:
|
||||
case PLD_BUS_TYPE_USB:
|
||||
ret = -ENOTSUPP;
|
||||
break;
|
||||
case PLD_BUS_TYPE_IPCI:
|
||||
ret = pld_ipci_is_pci_ep_awake(dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue