svn commit: r203033 - head/sys/dev/ata/chipsets

Alexander Motin mav at FreeBSD.org
Tue Jan 26 16:05:49 UTC 2010


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));


More information about the svn-src-all mailing list