summaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>2020-07-01 09:22:35 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-16 05:00:23 +0200
commit8c26ab72663b4affc31e47cdf77d61d0172d1033 (patch)
treed25de724c701d72d41217ffab44d739e35f86c41 /drivers/nvdimm
parentpowerpc/pmem: Avoid the barrier in flush routines (diff)
downloadlinux-8c26ab72663b4affc31e47cdf77d61d0172d1033.tar.xz
linux-8c26ab72663b4affc31e47cdf77d61d0172d1033.zip
powerpc/pmem: Initialize pmem device on newer hardware
With kernel now supporting new pmem flush/sync instructions, we can now enable the kernel to initialize the device. On P10 these devices would appear with a new compatible string. For PAPR device we have compatible "ibm,pmemory-v2" and for OF pmem device we have compatible "pmem-region-v2" Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200701072235.223558-8-aneesh.kumar@linux.ibm.com
Diffstat (limited to 'drivers/nvdimm')
-rw-r--r--drivers/nvdimm/of_pmem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvdimm/of_pmem.c b/drivers/nvdimm/of_pmem.c
index 6826a274a1f1..10dbdcdfb9ce 100644
--- a/drivers/nvdimm/of_pmem.c
+++ b/drivers/nvdimm/of_pmem.c
@@ -90,6 +90,7 @@ static int of_pmem_region_remove(struct platform_device *pdev)
static const struct of_device_id of_pmem_region_match[] = {
{ .compatible = "pmem-region" },
+ { .compatible = "pmem-region-v2" },
{ },
};