From: Stanislaw Gruszka <sgruszka@redhat.com>
To: "Chen, Chien-Chia" <machen@suse.com>
Cc: users@rt2x00.serialmonkey.com, kevin.chou@mediatek.com,
linux-wireless@vger.kernel.org
Subject: Re: [rt2x00-users] [PATCH] rt2x00 : fix rt3290 resuming failed.
Date: Thu, 19 Jul 2012 16:54:31 +0200 [thread overview]
Message-ID: <20120719145430.GA4231@redhat.com> (raw)
In-Reply-To: <1342667903-27314-1-git-send-email-machen@suse.com>
On Thu, Jul 19, 2012 at 11:18:23AM +0800, Chen, Chien-Chia wrote:
> + if (rt2x00_rt(rt2x00dev,RT3290)){
Please add space after a comma.
> + retval = rt2800_enable_wlan_rt3290(rt2x00dev);
> + if (retval)
> + return -EBUSY;
> + }
Since we enabling device here, it's probably not needed to do this on
rt2800pci_probe_hw, or I'm wrong?
> + if ((rt2x00_get_field32(reg, PLL_LD) == 1) &&
> + (rt2x00_get_field32(reg, XTAL_RDY) == 1))
> + break;
Use proper coding style here (see below). Seems you did not copy this
function from rt2800pci.c, but take it form other source, so it could
miss some other changes as well.
> +
> + rt2800_register_write(rt2x00dev, 0x58, 0x018);
> + udelay(REGISTER_BUSY_DELAY);
> + rt2800_register_write(rt2x00dev, 0x58, 0x418);
> + udelay(REGISTER_BUSY_DELAY);
> + rt2800_register_write(rt2x00dev, 0x58, 0x618);
We really like to know what those black magic numbers mean.
> - if (rt2x00_get_field32(reg, PLL_LD) &&
> - rt2x00_get_field32(reg, XTAL_RDY))
> - break;
Here is how above part should look like.
Stanislaw
next prev parent reply other threads:[~2012-07-19 14:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-19 3:18 [rt2x00-users] [PATCH] rt2x00 : fix rt3290 resuming failed Chen, Chien-Chia
2012-07-19 11:51 ` Helmut Schaa
2012-07-19 11:57 ` Ivo Van Doorn
2012-07-19 14:54 ` Stanislaw Gruszka [this message]
2012-07-23 7:01 ` Matt Chen
2012-07-23 11:24 ` Stanislaw Gruszka
2012-07-23 12:35 ` Matt Chen
2012-07-24 6:24 ` Matt Chen
2012-07-24 7:21 ` Kevin Chou (周庭昱)
-- strict thread matches above, loose matches on Subject: below --
2012-07-27 7:03 Chen, Chien-Chia
2012-07-27 10:18 ` Stanislaw Gruszka
2012-07-27 14:22 ` Matt Chen
2012-07-30 7:33 ` Stanislaw Gruszka
2012-07-30 8:09 ` Matt Chen
2012-07-18 8:40 [rt2x00-users][PATCH] " Chen, Chien-Chia
2012-07-18 11:21 ` [rt2x00-users] [PATCH] " Henning Heinold
2012-07-18 14:29 ` Matt Chen
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=20120719145430.GA4231@redhat.com \
--to=sgruszka@redhat.com \
--cc=kevin.chou@mediatek.com \
--cc=linux-wireless@vger.kernel.org \
--cc=machen@suse.com \
--cc=users@rt2x00.serialmonkey.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;
as well as URLs for NNTP newsgroup(s).