Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Nov 2010 10:34:19 +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: r215451 - head/sys/dev/ata/chipsets
Message-ID:  <201011181034.oAIAYJxI022377@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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