Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2010 16:05:49 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r203033 - head/sys/dev/ata/chipsets
Message-ID:  <201001261605.o0QG5nRk036991@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue Jan 26 16:05:49 2010
New Revision: 203033
URL: http://svn.freebsd.org/changeset/base/203033

Log:
  Clear ch->devices, if hard-reset failed.
  This makes hot-plug work nicely.
  
  HW donated by:	James R. Van Artsdalen

Modified:
  head/sys/dev/ata/chipsets/ata-promise.c

Modified: head/sys/dev/ata/chipsets/ata-promise.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-promise.c	Tue Jan 26 15:29:53 2010	(r203032)
+++ head/sys/dev/ata/chipsets/ata-promise.c	Tue Jan 26 16:05:49 2010	(r203033)
@@ -821,7 +821,8 @@ ata_promise_mio_reset(device_t dev)
 		    device_printf(dev, "promise_mio_reset devices=%08x\n",
 		    		  ch->devices);
 
-	    }
+	    } else
+		ch->devices = 0;
 
 	    /* reset and enable plug/unplug intr */
 	    ATA_OUTL(ctlr->r_res2, 0x060, (0x00000011 << ch->unit));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001261605.o0QG5nRk036991>