mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
Set status to FWDEVINVAL if probe failed.
This commit is contained in:
parent
f7fa0cbd70
commit
16dbbeec74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114284
@ -1357,23 +1357,20 @@ fw_bus_explore_callback(struct fw_xfer *xfer)
|
||||
if(xfer->resp != 0){
|
||||
printf("node%d: resp=%d addr=0x%x\n",
|
||||
fc->ongonode, xfer->resp, fc->ongoaddr);
|
||||
fc->retry_count++;
|
||||
goto nextnode;
|
||||
goto errnode;
|
||||
}
|
||||
|
||||
if(xfer->send.buf == NULL){
|
||||
printf("node%d: send.buf=NULL addr=0x%x\n",
|
||||
fc->ongonode, fc->ongoaddr);
|
||||
fc->retry_count++;
|
||||
goto nextnode;
|
||||
goto errnode;
|
||||
}
|
||||
sfp = (struct fw_pkt *)xfer->send.buf;
|
||||
|
||||
if(xfer->recv.buf == NULL){
|
||||
printf("node%d: recv.buf=NULL addr=0x%x\n",
|
||||
fc->ongonode, fc->ongoaddr);
|
||||
fc->retry_count++;
|
||||
goto nextnode;
|
||||
goto errnode;
|
||||
}
|
||||
rfp = (struct fw_pkt *)xfer->recv.buf;
|
||||
#if 0
|
||||
@ -1482,6 +1479,10 @@ fw_bus_explore_callback(struct fw_xfer *xfer)
|
||||
fw_xfer_free( xfer);
|
||||
fw_bus_explore(fc);
|
||||
return;
|
||||
errnode:
|
||||
fc->retry_count++;
|
||||
if (fc->ongodev != NULL)
|
||||
fc->ongodev->status = FWDEVINVAL;
|
||||
nextnode:
|
||||
fw_xfer_free( xfer);
|
||||
fc->ongonode++;
|
||||
|
Loading…
Reference in New Issue
Block a user