All of lore.kernel.org
 help / color / mirror / Atom feed
From: michael.williamson@criticallink.com (Michael Williamson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4] davinci: Support various speedgrades for MityDSP-L138 and MityARM-1808 SoMs
Date: Tue, 04 Jan 2011 07:23:42 -0500	[thread overview]
Message-ID: <4D23114E.20003@criticallink.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB593024816DB2A@dbde02.ent.ti.com>

On 1/4/2011 4:35 AM, Nori, Sekhar wrote:

> On Mon, Jan 03, 2011 at 18:51:45, Michael Williamson wrote:
>> For the MityDSP-L138/MityARM-1808 SoMs, the speed grade can be determined
>> from the part number string read from the factory configuration block on
>> the on-board I2C PROM.  Configure the maximum CPU speed based on this
>> information.
>>
>> This patch was tested using a MityDSP-L138 and MityARM-1808 at various
>> speedgrades.  Also, for code coverage, a bogus configuration was tested
>> as well as a configuration having an unknown part number.
> 
> Thanks for the extensive testing. This looks good to me, except,
> a whitespace nit below. But otherwise:
> 
> Reviewed-by: Sekhar Nori <nsekhar@ti.com>
> 
>> +#ifdef CONFIG_CPU_FREQ
>> +static void mityomapl138_cpufreq_init(const char *partnum)
>> +{
>> +	int i, ret;
>> +
>> +	for (i = 0; partnum && i < ARRAY_SIZE(mityomapl138_pn_info); i++) {
>> +		/*
>> +		 * the part number has additional characters beyond what is
>> +		 * stored in the table.  This information is not needed for
>> +		 * determining the speed grade, and would require several
>> +		 * more table entries.  Only check the first N characters
>> +		 * for a match.
>> +		 */
>> +		if (!strncmp(partnum, mityomapl138_pn_info[i].part_no,
>> +			strlen(mityomapl138_pn_info[i].part_no))) {
>> +			da850_max_speed = mityomapl138_pn_info[i].max_freq;
>> +			break;
> 
> The indentation here makes it look like strlen is part of if()
> body. May be you can indent it substantially to the right. I will
> leave it to your judgment.
> 
> Thanks,
> Sekhar



I will align the strlen up to the partnum argument above and resubmit.

Thanks for the review.

-Mike

      reply	other threads:[~2011-01-04 12:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-03 13:21 [PATCH v4] davinci: Support various speedgrades for MityDSP-L138 and MityARM-1808 SoMs Michael Williamson
2011-01-04  9:35 ` Nori, Sekhar
2011-01-04 12:23   ` Michael Williamson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D23114E.20003@criticallink.com \
    --to=michael.williamson@criticallink.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.