Perform a hard reset on cards when the command fails. This should help

those people that have cards that become wedged when a bogus command is
issued that are too wedged to have a soft reset help.
This commit is contained in:
Warner Losh 1998-09-30 00:10:44 +00:00
parent b5cf6d7984
commit 6a04333133
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39795

View File

@ -55,7 +55,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: aha.c,v 1.3 1998/09/17 00:08:29 gibbs Exp $
* $Id: aha.c,v 1.4 1998/09/29 06:50:21 imp Exp $
*/
#include <sys/param.h>
@ -1588,7 +1588,7 @@ aha_cmd(struct aha_softc *aha, aha_op_t opcode, u_int8_t *params,
CMD_REG_BUSY|DIAG_FAIL|DIAG_ACTIVE)) != 0
|| (status & (HA_READY|INIT_REQUIRED))
!= (HA_READY|INIT_REQUIRED)) {
ahareset(aha, /*hard_reset*/FALSE);
ahareset(aha, /*hard_reset*/TRUE);
}
return (EINVAL);
}