svn commit: r203521 - stable/8/sys/dev/ata/chipsets

Alexander Motin mav at FreeBSD.org
Fri Feb 5 12:07:54 UTC 2010


Author: mav
Date: Fri Feb  5 12:07:53 2010
New Revision: 203521
URL: http://svn.freebsd.org/changeset/base/203521

Log:
  MFC r203033:
  Clear ch->devices, if hard-reset failed.
  This makes hot-plug work better.

Modified:
  stable/8/sys/dev/ata/chipsets/ata-promise.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/ata/chipsets/ata-promise.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-promise.c	Fri Feb  5 11:56:12 2010	(r203520)
+++ stable/8/sys/dev/ata/chipsets/ata-promise.c	Fri Feb  5 12:07:53 2010	(r203521)
@@ -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-stable-8 mailing list