mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mfd: rtsx_pcr: Fix MSI enable error handling
pci_enable_msi() can return failure with both positive and negative integers -- it returns 0 for success -- but is only tested here for "if (ret < 0)". This causes us to try to use MSI on the RTS5249 SD reader in the Dell XPS 11 when enabling MSI failed, causing: [ 1.737110] rtsx_pci: probe of 0000:05:00.0 failed with error -110 Cc: stable <[email protected]> Reported-by: D. Jared Dominguez <[email protected]> Tested-by: D. Jared Dominguez <[email protected]> Signed-off-by: Chris Ball <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
6a71f38dd8
commit
5152970538
1 changed files with 1 additions and 1 deletions
|
|
@ -1197,7 +1197,7 @@ static int rtsx_pci_probe(struct pci_dev *pcidev,
|
|||
pcr->msi_en = msi_en;
|
||||
if (pcr->msi_en) {
|
||||
ret = pci_enable_msi(pcidev);
|
||||
if (ret < 0)
|
||||
if (ret)
|
||||
pcr->msi_en = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue