Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ata KNF. No functional change.
details: https://anonhg.NetBSD.org/src/rev/184fccf280b1
branches: trunk
changeset: 353516:184fccf280b1
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed May 10 08:46:39 2017 +0000
description:
KNF. No functional change.
diffstat:
sys/dev/ata/sata_subr.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 2b945c0248ca -r 184fccf280b1 sys/dev/ata/sata_subr.c
--- a/sys/dev/ata/sata_subr.c Wed May 10 08:02:37 2017 +0000
+++ b/sys/dev/ata/sata_subr.c Wed May 10 08:46:39 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sata_subr.c,v 1.21 2013/04/03 17:15:07 bouyer Exp $ */
+/* $NetBSD: sata_subr.c,v 1.22 2017/05/10 08:46:39 msaitoh Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
* Common functions for Serial ATA.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sata_subr.c,v 1.21 2013/04/03 17:15:07 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sata_subr.c,v 1.22 2017/05/10 08:46:39 msaitoh Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -85,14 +85,15 @@
uint32_t scontrol, sstatus;
int i;
- /* bring the PHYs online.
+ /*
+ * bring the PHYs online.
* The work-around for errata #1 of the Intel GD31244 says that we must
* write 0 to the port first to be sure of correctly initializing
* the device. It doesn't hurt for other devices.
*/
bus_space_write_4(sata_t, scontrol_r, 0, 0);
scontrol = SControl_IPM_NONE | SControl_SPD_ANY | SControl_DET_INIT;
- bus_space_write_4 (sata_t, scontrol_r, 0, scontrol);
+ bus_space_write_4(sata_t, scontrol_r, 0, scontrol);
ata_delay(50, "sataup", flags);
scontrol &= ~SControl_DET_INIT;
Home |
Main Index |
Thread Index |
Old Index