svn commit: r215776 - stable/8/sys/dev/ata
Alexander Motin
mav at FreeBSD.org
Tue Nov 23 21:40:21 UTC 2010
Author: mav
Date: Tue Nov 23 21:40:21 2010
New Revision: 215776
URL: http://svn.freebsd.org/changeset/base/215776
Log:
MFC r215453:
Even if we are skipping SATA hard reset - set power management bits in
SControl register. This should make things more consistent.
Modified:
stable/8/sys/dev/ata/ata-sata.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/ata-sata.c
==============================================================================
--- stable/8/sys/dev/ata/ata-sata.c Tue Nov 23 21:36:56 2010 (r215775)
+++ stable/8/sys/dev/ata/ata-sata.c Tue Nov 23 21:40:21 2010 (r215776)
@@ -153,8 +153,12 @@ ata_sata_phy_reset(device_t dev, int por
if (quick) {
if (ata_sata_scr_read(ch, port, ATA_SCONTROL, &val))
return (0);
- if ((val & ATA_SC_DET_MASK) == ATA_SC_DET_IDLE)
+ if ((val & ATA_SC_DET_MASK) == ATA_SC_DET_IDLE) {
+ ata_sata_scr_write(ch, port, ATA_SCONTROL,
+ ATA_SC_DET_IDLE | ((ch->pm_level > 0) ? 0 :
+ ATA_SC_IPM_DIS_PARTIAL | ATA_SC_IPM_DIS_SLUMBER));
return ata_sata_connect(ch, port, quick);
+ }
}
if (bootverbose) {
More information about the svn-src-stable
mailing list