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

Alexander Motin mav at FreeBSD.org
Thu Nov 18 10:34:19 UTC 2010


Author: mav
Date: Thu Nov 18 10:34:18 2010
New Revision: 215451
URL: http://svn.freebsd.org/changeset/base/215451

Log:
  Record that there is no devices if SATA reset found none.

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

Modified: head/sys/dev/ata/chipsets/ata-via.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-via.c	Thu Nov 18 08:32:47 2010	(r215450)
+++ head/sys/dev/ata/chipsets/ata-via.c	Thu Nov 18 10:34:18 2010	(r215451)
@@ -463,6 +463,8 @@ ata_via_sata_reset(device_t dev)
 		devs = 1;
 	if (devs)
 		ata_generic_reset(dev);
+	else
+		ch->devices = 0;
 }
 
 static int


More information about the svn-src-head mailing list