Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/nand Use ONFI_STATUS_WP instead of 0x80.
details: https://anonhg.NetBSD.org/src/rev/b9c0fa44dcf1
branches: trunk
changeset: 818238:b9c0fa44dcf1
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Tue Oct 04 14:47:18 2016 +0000
description:
Use ONFI_STATUS_WP instead of 0x80.
diffstat:
sys/dev/nand/nand.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0701fec69f4c -r b9c0fa44dcf1 sys/dev/nand/nand.c
--- a/sys/dev/nand/nand.c Tue Oct 04 14:43:55 2016 +0000
+++ b/sys/dev/nand/nand.c Tue Oct 04 14:47:18 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nand.c,v 1.24 2016/10/04 14:43:55 kiyohara Exp $ */
+/* $NetBSD: nand.c,v 1.25 2016/10/04 14:47:18 kiyohara Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -34,7 +34,7 @@
/* Common driver for NAND chips implementing the ONFI 2.2 specification */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.24 2016/10/04 14:43:55 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.25 2016/10/04 14:47:18 kiyohara Exp $");
#include "locators.h"
@@ -640,7 +640,7 @@
static bool
nand_check_wp(device_t self)
{
- if (nand_get_status(self) & 0x80)
+ if (nand_get_status(self) & ONFI_STATUS_WP)
return false;
else
return true;
Home |
Main Index |
Thread Index |
Old Index