[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VciOAMX1HWifZ+K9GiVicZRFrwHaGteJFVe1uFrh+qu0w@mail.gmail.com>
Date: Tue, 15 May 2018 22:32:37 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Jeremy Linton <jeremy.linton@....com>
Cc: ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
Sudeep Holla <Sudeep.Holla@....com>,
linux-arm Mailing List <linux-arm-kernel@...ts.infradead.org>,
Lorenzo Pieralisi <Lorenzo.Pieralisi@....com>,
Hanjun Guo <hanjun.guo@...aro.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Will Deacon <Will.Deacon@....com>,
Catalin Marinas <Catalin.Marinas@....com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Mark Rutland <Mark.Rutland@....com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-riscv@...ts.infradead.org,
Xiongfeng Wang <wangxiongfeng2@...wei.com>,
vkilari@...eaurora.org, Al Stone <ahs3@...hat.com>,
Dietmar.Eggemann@....com, Morten.Rasmussen@....com,
Palmer Dabbelt <palmer@...ive.com>,
Len Brown <lenb@...nel.org>,
John Garry <john.garry@...wei.com>, austinwc@...eaurora.org,
tnowicki@...iumnetworks.com, jhugo@...eaurora.org,
Ard Biesheuvel <ard.biesheuvel@...aro.org>
Subject: Re: [PATCH v9 02/12] drivers: base: cacheinfo: setup DT cache
properties early
On Tue, May 15, 2018 at 8:15 PM, Jeremy Linton <jeremy.linton@....com> wrote:
> On 05/11/2018 06:57 PM, Jeremy Linton wrote:
>> - cache_size = of_get_property(this_leaf->of_node, propname, NULL);
>> + cache_size = of_get_property(np, propname, NULL);
>> if (cache_size)
>> this_leaf->size = of_read_number(cache_size, 1);
Can't you switch to of_read_property_uXX() variant here?
>> - line_size = of_get_property(this_leaf->of_node, propname,
>> NULL);
>> + line_size = of_get_property(np, propname, NULL);
Ditto.
>> - nr_sets = of_get_property(this_leaf->of_node, propname, NULL);
>> + nr_sets = of_get_property(np, propname, NULL);
>> if (nr_sets)
>> this_leaf->number_of_sets = of_read_number(nr_sets, 1);
Ditto.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists