]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Explicitly call twe_done() to poll the hardware when looping in
authorjhb <jhb@FreeBSD.org>
Wed, 5 Sep 2012 14:31:58 +0000 (14:31 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 5 Sep 2012 14:31:58 +0000 (14:31 +0000)
commitaad2e450e0f65634b50e2001c5c291417dadff7f
tree80c8952471e6fbacdd3c66d353e46cf8dcbb8deb
parentdac91f5998c1d33695196e636176f5634af60f74
- Explicitly call twe_done() to poll the hardware when looping in
  twe_start() to simulate the behavior on 4.x where the driver dropped
  spl to allow interrupts to run to free up space in the command
  queue.  Be careful to only poll if we are going to make at least
  one more attempt to queue the current command.  Also, when polling,
  be careful to not call twe_startio() to queue more commands to avoid
  recursion.
- Move the buffer for formatting AEN messages into the softc instead of
  using a single driver-wide static buffer.

Requested by: scottl (1)
Tested by: Mike Tancsa @ Sentex
sys/dev/twe/twe.c
sys/dev/twe/twevar.h