Re: [ndctl PATCH v5 2/6] libncdtl: Add initial support for NVDIMM_FAMILY_PAPR nvdimm family

2020-06-03 Thread Vaibhav Jain
"Verma, Vishal L" writes: > On Wed, 2020-06-03 at 15:27 +0530, Vaibhav Jain wrote: >> > >> > Two things here: >> > 1. Why not use the new ndctl_bus_has_of_node helper here? and >> > 2. This looks redundant. add_papr_dimm() is only called if >> > ndctl_bus_has_of_node() during add_dimm. >>

Re: [ndctl PATCH v5 2/6] libncdtl: Add initial support for NVDIMM_FAMILY_PAPR nvdimm family

2020-06-03 Thread Verma, Vishal L
On Wed, 2020-06-03 at 15:27 +0530, Vaibhav Jain wrote: > > > > Two things here: > > 1. Why not use the new ndctl_bus_has_of_node helper here? and > > 2. This looks redundant. add_papr_dimm() is only called if > > ndctl_bus_has_of_node() during add_dimm. > Presently we have two different nvdimm

Re: [ndctl PATCH v5 2/6] libncdtl: Add initial support for NVDIMM_FAMILY_PAPR nvdimm family

2020-06-03 Thread Vaibhav Jain
"Verma, Vishal L" writes: > On Sat, 2020-05-30 at 03:35 +0530, Vaibhav Jain wrote: > >> diff --git a/ndctl/lib/libndctl.c b/ndctl/lib/libndctl.c >> index d76dbf7e17de..a52c2e208fbe 100644 >> --- a/ndctl/lib/libndctl.c >> +++ b/ndctl/lib/libndctl.c >> @@ -799,6 +799,28 @@ static void

Re: [ndctl PATCH v5 2/6] libncdtl: Add initial support for NVDIMM_FAMILY_PAPR nvdimm family

2020-06-02 Thread Verma, Vishal L
On Sat, 2020-05-30 at 03:35 +0530, Vaibhav Jain wrote: > diff --git a/ndctl/lib/libndctl.c b/ndctl/lib/libndctl.c > index d76dbf7e17de..a52c2e208fbe 100644 > --- a/ndctl/lib/libndctl.c > +++ b/ndctl/lib/libndctl.c > @@ -799,6 +799,28 @@ static void parse_nfit_mem_flags(struct ndctl_dimm > *dimm,