[flashrom] [PATCH] Fix a bitmask in it87spi_probe.

Joshua Roys roysjosh at gmail.com
Sun Aug 29 17:07:39 CEST 2010


Hello,

I think the first shift should be a 0 since the one below it is 1,
then 2, then 3, etc.

Signed-off-by: Joshua Roys <roysjosh at gmail.com>

Thanks,

Josh
-------------- next part --------------
From 3ae3e68527b84bb2de0fed0629824e9f7c08a885 Mon Sep 17 00:00:00 2001
From: Joshua Roys <roysjosh at gmail.com>
Date: Sun, 29 Aug 2010 11:00:39 -0400
Subject: [PATCH] Fix a bitmask in it87spi_probe.

Signed-off-by: Joshua Roys <roysjosh at gmail.com>
---
 it87spi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/it87spi.c b/it87spi.c
index ed6bae5..496c321 100644
--- a/it87spi.c
+++ b/it87spi.c
@@ -116,7 +116,7 @@ static uint16_t it87spi_probe(uint16_t port)
 		return 1;
 	}
 	msg_pdbg("Serial flash segment 0x%08x-0x%08x %sabled\n",
-		 0xFFFE0000, 0xFFFFFFFF, (tmp & 1 << 1) ? "en" : "dis");
+		 0xFFFE0000, 0xFFFFFFFF, (tmp & 1 << 0) ? "en" : "dis");
 	msg_pdbg("Serial flash segment 0x%08x-0x%08x %sabled\n",
 		 0x000E0000, 0x000FFFFF, (tmp & 1 << 1) ? "en" : "dis");
 	msg_pdbg("Serial flash segment 0x%08x-0x%08x %sabled\n",
-- 
1.7.2.2



More information about the flashrom mailing list