Unlock the fxp driver lock before calling fxp_poll() to avoid recursing on

the lock when using DEVICE_POLLING.

Tested by:	Robin P. Blanchard <Robin.Blanchard@gactr.uga.edu>
Reviewed by:	njl
This commit is contained in:
John Baldwin 2003-07-11 20:49:36 +00:00
parent 00041cf539
commit c660bdfa66
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117454

View file

@ -1550,8 +1550,8 @@ fxp_intr(void *xsc)
if (ether_poll_register(fxp_poll, ifp)) {
/* disable interrupts */
CSR_WRITE_1(sc, FXP_CSR_SCB_INTRCNTL, FXP_SCB_INTR_DISABLE);
fxp_poll(ifp, 0, 1);
FXP_UNLOCK(sc);
fxp_poll(ifp, 0, 1);
return;
}
#endif