mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
add debugging to MCI timeout
This commit is contained in:
parent
16b15dfcc0
commit
ab59d9b705
@ -83,10 +83,17 @@ static int ddb_mci_cmd_raw_unlocked(struct mci *state,
|
||||
|
||||
stat = wait_for_completion_timeout(&state->base->completion, HZ);
|
||||
if (stat == 0) {
|
||||
u32 istat = ddblreadl(link, INTERRUPT_STATUS);
|
||||
|
||||
printk("MCI timeout\n");
|
||||
val = ddblreadl(link, MCI_CONTROL);
|
||||
if (val == 0xffffffff)
|
||||
printk("Lost PCIe link!\n");
|
||||
else {
|
||||
printk("DDBridge IRS %08x\n", istat);
|
||||
if (istat & 1)
|
||||
ddblwritel(link, istat & 1, INTERRUPT_ACK);
|
||||
}
|
||||
return -EIO;
|
||||
}
|
||||
if (res && res_len)
|
||||
|
Loading…
Reference in New Issue
Block a user