Re: [RFC PATCH] of: base: add support to get machine model name

2016-11-17 Thread Arnd Bergmann
On Thursday, November 17, 2016 2:08:30 PM CET Sudeep Holla wrote: > On 17/11/16 13:50, Arnd Bergmann wrote: > > On Thursday, November 17, 2016 11:50:50 AM CET Sudeep Holla wrote: > >> Currently platforms/drivers needing to get the machine model name are > >> replicating the same snippet of code.

Re: [RFC PATCH] of: base: add support to get machine model name

2016-11-17 Thread Sudeep Holla
On 17/11/16 14:13, Arnd Bergmann wrote: On Thursday, November 17, 2016 2:08:30 PM CET Sudeep Holla wrote: On 17/11/16 13:50, Arnd Bergmann wrote: On Thursday, November 17, 2016 11:50:50 AM CET Sudeep Holla wrote: Currently platforms/drivers needing to get the machine model name are

Re: [RFC PATCH] of: base: add support to get machine model name

2016-11-17 Thread Sudeep Holla
On 17/11/16 13:50, Arnd Bergmann wrote: On Thursday, November 17, 2016 11:50:50 AM CET Sudeep Holla wrote: Currently platforms/drivers needing to get the machine model name are replicating the same snippet of code. In some case, the OF reference counting is either missing or incorrect. This

Re: [RFC PATCH] of: base: add support to get machine model name

2016-11-17 Thread Arnd Bergmann
On Thursday, November 17, 2016 11:50:50 AM CET Sudeep Holla wrote: > Currently platforms/drivers needing to get the machine model name are > replicating the same snippet of code. In some case, the OF reference > counting is either missing or incorrect. > > This patch adds support to read the

[RFC PATCH] of: base: add support to get machine model name

2016-11-17 Thread Sudeep Holla
Currently platforms/drivers needing to get the machine model name are replicating the same snippet of code. In some case, the OF reference counting is either missing or incorrect. This patch adds support to read the machine model name either using the "model" or the "compatible" property in the