[RFC PATCH 02/11] coresight: add CoreSight TMC driver
From: Linus Walleij <hidden>
Date: 2014-07-07 10:53:15
Also in:
lkml
From: Linus Walleij <hidden>
Date: 2014-07-07 10:53:15
Also in:
lkml
On Tue, Jun 17, 2014 at 1:12 AM, Mathieu Poirier [off-list ref] wrote:
On 3 June 2014 03:09, Linus Walleij [off-list ref] wrote:quoted
On Fri, May 30, 2014 at 3:43 PM, [off-list ref] wrote:
quoted
quoted
+ int read_count;Can this really be negative?It is useful for debugging, as an example see "tmc_release()". If the count drops below '0' there is obviously a problem. Do you see a cost in keeping this as an 'int'? What do you advise here?
No big deal, keep it.
quoted
This struct overall could use some kerneldoc.Would writing a comment for each field qualify?
Like above the struct, see Documentation/kernel-doc-nano-HOWTO.txt
quoted
quoted
+ drvdata->base = devm_ioremap(dev, res->start, resource_size(res));Use devm_ioremap_resource() instead.I'm working on it.
Bet it's fininshed now ;-) Yours, Linus Walleij