Search Linux Wireless

Re: [PATCH 1/1] New driver: rtl8723au (mac80211)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Larry Finger <Larry.Finger@xxxxxxxxxxxx> writes:
> Quilt reports the following when this patch is refreshed:
>
> Warning: trailing whitespace in lines 2862,3273,3492,3521 of
> drivers/net/wireless/rtl8xxxu.c

Hi Larry,

I fixed up the trailing whitespaces in v2 (and added a
(setq show-trailing-whitespace t) to my config file).

> I have not analyzed all the temporary manipulations of rtl8xxxu_debug
> to see what you are doing; however, I suggest that you add a module
> parameter so that debugging can be enabled without rebuilding the
> module. That way a user who is using a distro binary can enable
> debugging without the hassle of a full kernel rebuild.

I added a module paramter, and worked around the %@#$%#$%#$ dynamic
debug issues to get the driver to actually print stuff when you set it.
For some reason I was convinced I already had this as a module
parameter.

> Because this driver is under drivers/net, checkpatch.pl adds
> additional tests that may not be used in other trees. For instance, it
> complains when it finds a block comment that starts with a bare
> "/*". What is usually done is to use "/**" instead.

This part I will leave as is.

> I think I understand why some of the "#if 0" blocks are present, but
> others are not clear. For example, I see no value of keeping code that
> is labelled "only for PCIe". Is it your intention to add the RTL8723AE
> to this driver?

I prefer to keep them in place for now, as it makes it easier for me to
debug the tables when I compare them to the tables in the vendor
driver. I will eventually remove those, but it's to early to do that
just yet.

> Running checkpatch.pl on this patch results in total of 24 errors, 99
> warnings, and 105 checks. From your mail exchange with Joe Perches, I
> understand that you will not wish to fix all of these; however, the
> errors should be handled. The fewer of the warnings or checks that are
> left, the better, if only to prevent interference from the script
> kiddies.

I should have run checkpatch on Friday when I posted the first
version. Some of the formatting was due to converting from printk() to
other wrappers.

It's rather disturbing how checkpatch has been turned into a trolling
tool used by the script kiddies to harrass actual development, and to
bump their number of commits in the git log, but I guess there isn't
much to do about it. As always, I very much appreciate real bug reports!

> I like the clean look of the code. That is particularly impressive
> given the look of the original. I wish I had the hardware on which to
> test it. Perhaps I can wedge it into a kernel version that builds and
> runs on my Radxa Rock,

Thanks, I tried hard to keep it clean, even though there were parts of
badness that crept over from the original driver. In particular in the
radio configuration portions.

Cheers,
Jes
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux