- Detect full of DMA channel correctly.
This commit is contained in:
parent
7c558d080c
commit
6a3f229e17
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118289
@ -295,14 +295,13 @@ fwe_init(void *arg)
|
||||
fc = fwe->fd.fc;
|
||||
#define START 0
|
||||
if (fwe->dma_ch < 0) {
|
||||
xferq = NULL;
|
||||
for (i = START; i < fc->nisodma; i ++) {
|
||||
xferq = fc->ir[i];
|
||||
if ((xferq->flag & FWXFERQ_OPEN) == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
if (xferq == NULL) {
|
||||
if (i >= fc->nisodma) {
|
||||
printf("no free dma channel\n");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user