aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/spibus
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-11-19 19:25:47 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-11-19 19:25:47 +0000
commit71098608fcdcf3cb9d50282c02bf6165de3a6a56 (patch)
tree8e7c8dbe27ba288246c747dd803c2e949f1da3cd /sys/dev/spibus
parentd4e576c497762675e63edb87e7888b5fe74adacb (diff)
downloadsrc-71098608fcdcf3cb9d50282c02bf6165de3a6a56.tar.gz
src-71098608fcdcf3cb9d50282c02bf6165de3a6a56.zip
Several fixes to these drivers. Note that these two drivers are actually
just two different attachments (EISA and PCI) to a single driver. - Add real locking. Previously these drivers only acquired their lock in their interrupt handler or in the ioctl routine (but too broadly in the latter). No locking was used for the stack calling down into the driver via if_init() or if_start(), for device shutdown or detach. Also, the interrupt handler held the driver lock while calling if_input(). All this stuff should be fixed in the locking changes. - Really fix these drivers to handle if_alloc(). The front-end attachments were using if_initname() before the ifnet was allocated. Fix this by moving some of the duplicated logic from each driver into pdq_ifattach(). While here, make pdq_ifattach() return an error so that the driver just fails to attach if if_alloc() fails rather than panic'ing. Also, defer freeing the ifnet until the driver has stopped using it during detach. - Add a new private timer to drive the watchdog timer. - Pass the softc pointer to the interrupt handlers instead of the device_t so we can avoid the use of device_get_softc() and to better match what other drivers do.
Notes
Notes: svn path=/head/; revision=199542
Diffstat (limited to 'sys/dev/spibus')
0 files changed, 0 insertions, 0 deletions