mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
add acheck for PCIe link lost in case of MCI timeout
This commit is contained in:
parent
1d4fa8f5a3
commit
da39fb4c0d
@ -84,6 +84,9 @@ static int ddb_mci_cmd_raw_unlocked(struct mci *state,
|
||||
stat = wait_for_completion_timeout(&state->base->completion, HZ);
|
||||
if (stat == 0) {
|
||||
printk("MCI timeout\n");
|
||||
val = ddblreadl(link, MCI_CONTROL);
|
||||
if (val == 0xffffffff)
|
||||
printk("Lost PCIe link!\n");
|
||||
return -EIO;
|
||||
}
|
||||
if (res && res_len)
|
||||
|
Loading…
Reference in New Issue
Block a user