Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4031d52 authored by Sonny Rao's avatar Sonny Rao Committed by Benjamin Herrenschmidt
Browse files

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: default avatarSonny Rao <sonnyrao@us.ibm.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 4a5cbf17
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -79,8 +79,9 @@ enum {
	BSR_16   = 1,
	BSR_64   = 2,
	BSR_128  = 3,
	BSR_UNKNOWN = 4,
	BSR_MAX = 5,
	BSR_4096 = 4,
	BSR_UNKNOWN = 5,
	BSR_MAX  = 6,
};

static unsigned bsr_types[BSR_MAX];
@@ -218,9 +219,11 @@ static int bsr_add_node(struct device_node *bn)
		case 128:
			cur->bsr_type = BSR_128;
			break;
		case 4096:
			cur->bsr_type = BSR_4096;
			break;
		default:
			cur->bsr_type = BSR_UNKNOWN;
			printk(KERN_INFO "unknown BSR size %d\n",cur->bsr_bytes);
		}

		cur->bsr_num = bsr_types[cur->bsr_type];