This patch just replaces hard coded values with existing
DRCONF flags while procesing detected LMBs from the device
tree. This does not change any functionality.
Signed-off-by: Anshuman Khandual <redacted>
---
arch/powerpc/kernel/prom.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
@@ -476,9 +476,10 @@ static int __init early_init_dt_scan_drconf_memory(unsigned long node)flags=of_read_number(&dm[3],1);/* skip DRC index, pad, assoc. list index, flags */dm+=4;-/* skip this block if the reserved bit is set in flags (0x80)-oriftheblockisnotassignedtothispartition(0x8)*/-if((flags&0x80)||!(flags&0x8))+/* skip this block if the reserved bit is set in flags+oriftheblockisnotassignedtothispartition*/+if((flags&DRCONF_MEM_RESERVED)||+!(flags&DRCONF_MEM_ASSIGNED))continue;size=memblock_size;rngs=1;
DRCONF flags while procesing detected LMBs from the device
tree. This does not change any functionality.
Signed-off-by: Anshuman Khandual <redacted>
---
arch/powerpc/kernel/prom.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
@@ -476,9 +476,10 @@ static int __init early_init_dt_scan_drconf_memory(unsigned long node)flags=of_read_number(&dm[3],1);/* skip DRC index, pad, assoc. list index, flags */dm+=4;-/* skip this block if the reserved bit is set in flags (0x80)-oriftheblockisnotassignedtothispartition(0x8)*/-if((flags&0x80)||!(flags&0x8))+/* skip this block if the reserved bit is set in flags+oriftheblockisnotassignedtothispartition*/+if((flags&DRCONF_MEM_RESERVED)||+!(flags&DRCONF_MEM_ASSIGNED))continue;size=memblock_size;rngs=1;
Yeah I rewrote it as:
Replace hard coded values with existing DRCONF flags while procesing
detected LMBs from the device tree. Does not change any functionality.
cheers
Yeah I rewrote it as:
Replace hard coded values with existing DRCONF flags while procesing
detected LMBs from the device tree. Does not change any functionality.
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2015-08-13 01:44:25
On Thu, 2015-06-08 at 13:05:07 UTC, Anshuman Khandual wrote:
This patch just replaces hard coded values with existing
DRCONF flags while procesing detected LMBs from the device
tree. This does not change any functionality.
Signed-off-by: Anshuman Khandual <redacted>