From: Luciano Coelho <coelho@ti.com>
To: "Levi, Shahar" <shahar_levi@ti.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] wl12xx: fixes for 1281/1283 support - New boot sequence
Date: Wed, 09 Mar 2011 10:16:21 +0200 [thread overview]
Message-ID: <1299658581.1816.92.camel@cumari> (raw)
In-Reply-To: <AANLkTi=hswVxfrn-E9gLORiAqBA=2B3dBC77mtBe6W_J@mail.gmail.com>
On Tue, 2011-03-08 at 20:15 +0200, Levi, Shahar wrote:
> On Tue, Mar 8, 2011 at 3:37 PM, Luciano Coelho <coelho@ti.com> wrote:
> > diff --git a/drivers/net/wireless/wl12xx/boot.c b/drivers/net/wireless/wl12xx/boot.c
> > index e0d60ab..ffdcb7e 100644
> > --- a/drivers/net/wireless/wl12xx/boot.c
> > +++ b/drivers/net/wireless/wl12xx/boot.c
> > @@ -533,46 +533,42 @@ static int wl128x_switch_fref(struct wl1271 *wl, bool *is_ref_clk)
> >
> > /* if working on XTAL-only mode go directly to TCXO TO FREF SWITCH */
> > if ((wl->ref_clock == CONF_REF_CLK_38_4_M_XTAL) ||
> > - (wl->ref_clock == CONF_REF_CLK_26_M_XTAL)) {
> > - wl1271_debug(DEBUG_BOOT, "XTAL-only mode go directly to"
> > - " TCXO TO FREF SWITCH");
> I believe that debug should be say in that function that check the ref value.
Sorry, I disagree. This debug message is actually saying what is
happening when the ref_clock value is *_XTAL and what happens cannot be
seen in this part of the code, only in the part that calls this
function.
In fact, I almost removed this debug message completely, because there
are way too many debug messages that are good during implementation, but
shouldn't go out when the implementation is working.
I'll keep it (for now) after the function is called.
> > @@ -788,18 +778,8 @@ int wl1271_load_firmware(struct wl1271 *wl)
> > /* WL1271: The reference driver skips steps 7 to 10 (jumps directly
> > * to upload_fw) */
> >
> > - if (wl->chip.id == CHIP_ID_1283_PG20) {
> > - /*
> > - * Configure SDIO/wSPI DS according to the following table:
> > - * 00 8mA.
> > - * 01 4mA (default).
> > - * 10 6mA.
> > - * 11 2mA.
> > - * Write bits [1:0] of Register 0xd14
> > - * data is in pWlanParams->PlatformConfiguration bits [2:1]
> Those two lines above is redundant. however I believe the comment
> should be stay.
This comment is useless in this part of the code. If it should be
somewhere, it should be where the macros are defined. But even there, I
think it doesn't add any value, because it's so obvious.
> > diff --git a/drivers/net/wireless/wl12xx/boot.h b/drivers/net/wireless/wl12xx/boot.h
> > index daaf0e7..429c926 100644
> > --- a/drivers/net/wireless/wl12xx/boot.h
> > +++ b/drivers/net/wireless/wl12xx/boot.h
> > @@ -125,7 +125,12 @@ struct wl1271_static_data {
> > #define MCS_PLL_N_REG_VAL 0x07
> >
> > #define SDIO_IO_DS 0xd14
> > +
> > +/* SDIO/wSPI DS configuration values */
> > +#define HCI_IO_DS_8MA 0
> > +#define HCI_IO_DS_4MA 1 /* default */
> > #define HCI_IO_DS_6MA 2
> > +#define HCI_IO_DS_2MA 4
> This value should be 3.
Ooops! Good that you noticed, thanks! I'll fix it.
--
Cheers,
Luca.
next prev parent reply other threads:[~2011-03-09 8:16 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-06 14:32 [PATCH 00/15] wl12xx: 1281/1283 support Shahar Levi
2011-03-06 14:32 ` [PATCH 01/15] wl12xx: 1281/1283 support - move IRQ polarity Shahar Levi
2011-03-06 14:32 ` [PATCH 02/15] wl12xx: 1281/1283 support - Add Definitions Shahar Levi
2011-03-06 14:32 ` [PATCH 03/15] wl12xx: 1281/1283 support - Add acx commands Shahar Levi
2011-03-07 12:53 ` [PATCH] wl12xx: fixes for " Luciano Coelho
2011-03-07 12:55 ` Luciano Coelho
2011-03-08 7:57 ` [PATCH v2] " Luciano Coelho
2011-03-08 16:56 ` Levi, Shahar
2011-03-06 14:32 ` [PATCH 04/15] wl12xx: 1281/1283 support - New radio struc & func Shahar Levi
2011-03-06 14:32 ` [PATCH 05/15] wl12xx: 1281/1283 support - Loading FW & NVS Shahar Levi
2011-03-10 21:13 ` Luciano Coelho
2011-03-06 14:32 ` [PATCH 06/15] wl12xx: 1281/1283 support - New boot sequence Shahar Levi
2011-03-08 13:11 ` Luciano Coelho
2011-03-08 18:08 ` Levi, Shahar
2011-03-09 8:12 ` Luciano Coelho
2011-03-08 13:37 ` [PATCH] wl12xx: fixes for " Luciano Coelho
2011-03-08 18:15 ` Levi, Shahar
2011-03-09 8:16 ` Luciano Coelho [this message]
2011-03-06 14:32 ` [PATCH 07/15] wl12xx: 1281/1283 support - Set mem conf & dynamic mem Shahar Levi
2011-03-06 14:32 ` [PATCH 08/15] wl12xx: 1281/1283 support - Improve Tx & Rx path Shahar Levi
2011-03-09 8:41 ` Luciano Coelho
2011-03-06 14:32 ` [PATCH 09/15] wl12xx: 1281/1283 support - Add dummy packet support Shahar Levi
2011-03-06 14:32 ` [PATCH 10/15] wl12xx: 1281/1283 support - Set WiFi & BT cox Shahar Levi
2011-03-09 14:37 ` Luciano Coelho
2011-03-09 17:39 ` Levi, Shahar
2011-03-09 18:15 ` Luciano Coelho
2011-03-06 14:32 ` [PATCH 11/15] wl12xx: 1281/1283 support - Add chip interrupt pacing Shahar Levi
2011-03-06 14:32 ` [PATCH 12/15] wl12xx: 1281/1283 support - Use 1 spare blocks for 128x STA, and 2 for the rest Shahar Levi
2011-03-06 14:32 ` [PATCH 13/15] wl12xx: 1281/1283 support - Use different FW file for AP mode wl127x/wl128x chips Shahar Levi
2011-03-06 14:32 ` [PATCH 14/15] wl12xx: 1281/1283 support - disable TX aggregation for AP mode in wl128x Shahar Levi
[not found] ` <AANLkTik8TYGmg3hekoN546ToRDxi5HJeoq75R29WfSxt@mail.gmail.com>
2011-03-06 15:38 ` Arik Nemtsov
2011-03-06 14:32 ` [PATCH 15/15] wl12xx: 1281/1283 support - enable chip support Shahar Levi
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=1299658581.1816.92.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