浏览代码

powerpc/BSR: add 4096 byte BSR size

Add a 4096 byte BSR size which will be used on new machines.  Also, remove
the warning when we run into an unknown size, as this can spam the kernel
log excessively.

Signed-off-by: Sonny Rao <sonnyrao@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Sonny Rao 16 年之前
父节点
当前提交
e4031d52c5
共有 1 个文件被更改,包括 10 次插入7 次删除
  1. 10 7
      drivers/char/bsr.c

+ 10 - 7
drivers/char/bsr.c

@@ -75,12 +75,13 @@ static struct class *bsr_class;
 static int bsr_major;
 static int bsr_major;
 
 
 enum {
 enum {
-	BSR_8   = 0,
-	BSR_16  = 1,
-	BSR_64  = 2,
-	BSR_128 = 3,
-	BSR_UNKNOWN = 4,
-	BSR_MAX = 5,
+	BSR_8    = 0,
+	BSR_16   = 1,
+	BSR_64   = 2,
+	BSR_128  = 3,
+	BSR_4096 = 4,
+	BSR_UNKNOWN = 5,
+	BSR_MAX  = 6,
 };
 };
 
 
 static unsigned bsr_types[BSR_MAX];
 static unsigned bsr_types[BSR_MAX];
@@ -218,9 +219,11 @@ static int bsr_add_node(struct device_node *bn)
 		case 128:
 		case 128:
 			cur->bsr_type = BSR_128;
 			cur->bsr_type = BSR_128;
 			break;
 			break;
+		case 4096:
+			cur->bsr_type = BSR_4096;
+			break;
 		default:
 		default:
 			cur->bsr_type = BSR_UNKNOWN;
 			cur->bsr_type = BSR_UNKNOWN;
-			printk(KERN_INFO "unknown BSR size %d\n",cur->bsr_bytes);
 		}
 		}
 
 
 		cur->bsr_num = bsr_types[cur->bsr_type];
 		cur->bsr_num = bsr_types[cur->bsr_type];