[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Mon, 7 Jul 2014 12:53:10 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Mathieu Poirier <mathieu.poirier@...aro.org>
Cc: Will Deacon <will.deacon@....com>,
Arve Hjønnevåg <arve@...roid.com>,
John Stultz <john.stultz@...aro.org>,
Pratik Patel <pratikp@...eaurora.org>,
Vikas Varshney <varshney@...com>, Al Grant <Al.Grant@....com>,
Jonas Svennebring <jonas.svennebring@...gotech.com>,
James King <james.king@...aro.org>,
Panchaxari Prasannamurthy Tumkur
<panchaxari.prasannamurthy@...aro.org>,
Arnd Bergmann <arnd@...aro.org>,
Marcin Jabrzyk <marcin.jabrzyk@...il.com>,
r.sengupta@...sung.com, Robert Marklund <robbelibobban@...il.com>,
Patch Tracking <patches@...aro.org>,
Russell King - ARM Linux <linux@....linux.org.uk>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Daniel Thompson <daniel.thompson@...aro.org>
Subject: Re: [RFC PATCH 02/11] coresight: add CoreSight TMC driver
On Tue, Jun 17, 2014 at 1:12 AM, Mathieu Poirier
<mathieu.poirier@...aro.org> wrote:
> On 3 June 2014 03:09, Linus Walleij <linus.walleij@...aro.org> wrote:
>> On Fri, May 30, 2014 at 3:43 PM, <mathieu.poirier@...aro.org> wrote:
>>> + 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.
>> 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
>>> + 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists