From: Luciano Coelho <coelho@ti.com>
To: Shahar Levi <shahar_levi@ti.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] wl12xx: Set correct REF CLK and TCXO CLK values to the FW
Date: Fri, 01 Apr 2011 11:48:54 +0300 [thread overview]
Message-ID: <1301647734.1988.441.camel@cumari> (raw)
In-Reply-To: <1301297691-27665-1-git-send-email-shahar_levi@ti.com>
On Mon, 2011-03-28 at 09:34 +0200, Shahar Levi wrote:
> Set the correct values to the FW of REF CLK and TCXO CLK from
> wl12xx_platform_data to ini_general_params.
>
> Signed-off-by: Shahar Levi <shahar_levi@ti.com>
> ---
Please rephrase the commit message. Say why we need to do this. The
reason is that we don't want to have a mismatch between the information
that is set in the platform data and the NVS, so we override what comes
from the NVS and replace it with what comes from the platform data.
> diff --git a/drivers/net/wireless/wl12xx/cmd.c b/drivers/net/wireless/wl12xx/cmd.c
> index 2468044..beb9f88 100644
> --- a/drivers/net/wireless/wl12xx/cmd.c
> +++ b/drivers/net/wireless/wl12xx/cmd.c
> @@ -129,6 +129,9 @@ int wl1271_cmd_general_parms(struct wl1271 *wl)
> if (gp->tx_bip_fem_auto_detect)
> answer = true;
>
> + /* Set the ref CLK value */
> + gen_parms->general_params.ref_clock = wl->ref_clock;
> +
The comment is too obvious. I think it's better if you say "Override
the REF CLK from the NVS with the one from platform data".
> @@ -168,6 +171,13 @@ int wl128x_cmd_general_parms(struct wl1271 *wl)
> if (gp->tx_bip_fem_auto_detect)
> answer = true;
>
> + /*
> + * Set the ref CLK & TCXO values.
> + * The HW will know which of them is the valid one due to boot setting.
> + */
> + gen_parms->general_params.ref_clock = wl->ref_clock;
> + gen_parms->general_params.tcxo_ref_clock = wl->tcxo_clock;
> +
Same here. Please rewrite the comment. And "The HW will know which
one..." is irrelevant here, please remove.
--
Cheers,
Luca.
next prev parent reply other threads:[~2011-04-01 8:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-28 7:34 [PATCH] wl12xx: Set correct REF CLK and TCXO CLK values to the FW Shahar Levi
2011-04-01 8:48 ` Luciano Coelho [this message]
2011-04-03 8:18 ` Levi, Shahar
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=1301647734.1988.441.camel@cumari \
--to=coelho@ti.com \
--cc=linux-wireless@vger.kernel.org \
--cc=shahar_levi@ti.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox