Re: [PATCH] staging: rtl8723au : remove goto & return error directly

2015-05-07 Thread Jes Sorensen
Joe Perches writes: > On Thu, 2015-05-07 at 10:08 -0400, Jes Sorensen wrote: >> Dan Carpenter writes: >> > On Thu, May 07, 2015 at 08:03:06AM -0400, Jes Sorensen wrote: >> >> NACK! >> > SHOUTING! >> It's normal to write NACK in upper case > &g

Re: [PATCH] staging: rtl8723au: remove redundant initialization

2015-05-12 Thread Jes Sorensen
t; 1 file changed, 1 insertion(+), 1 deletion(-) Looks fine to me Acked-by: Jes Sorensen ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: rtl8723au : remove goto & return error directly

2015-05-12 Thread Jes Sorensen
"Gujulan Elango, Hari Prasath (H.)" writes: > On Thu, May 07, 2015 at 10:09:59AM -0400, Jes Sorensen wrote: >> "Gujulan Elango, Hari Prasath (H.)" writes: >> > On Thu, May 07, 2015 at 03:19:34PM +0300, Dan Carpenter wrote: >> >> On Thu, Ma

Re: [PATCH] Staging: unisys: fix function declaration format in visorchipset.c

2015-05-18 Thread Jes Sorensen
Wim de With writes: > This is a patch that fixes the function declarations in > visorbus/visorchipset.c by removing newlines after the function return > type This patch doesn't fix things, it makes things worse! If you want to post patches to this, do it properly and check the output first. NAC

Re: [PATCH 1/1] drivers: staging: unisys: visorbus: visorchipset.c: private functions should be declared static

2015-05-24 Thread Jes Sorensen
tolga ceylan writes: > On 05/15/2015 09:22 PM, Tolga Ceylan wrote: >> visorchipset_file_init() and visorchipset_file_cleanup() functions >> do not seem to be used from anywhere else and now are declared >> as static. Sparse emitted "not declared" warnings for these two >> functions. >> >> Signed-o

Re: [PATCH] staging: rtl8723au: fix sparse warning

2015-05-26 Thread Jes Sorensen
Juston Li writes: > change cast to __le16 to fix the following warning: > drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:1488:20: warning: cast to > restricted __le16 > > Signed-off-by: Juston Li > --- > drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c | 2 +- > 1 file changed, 1 insertion(

Re: [PATCH v5 09/13] staging: unisys: Remove unneeded fields in diagchannel.h

2015-06-05 Thread Jes Sorensen
Sudip Mukherjee writes: > On Thu, Jun 04, 2015 at 09:22:45AM -0400, Benjamin Romer wrote: >> From: David Kershner >> >> Diagchannel.h is used primarily for the diagnostics channel. The >> diagnostics channel is not being used by linux guests currently, so >> the majority of the file is not neede

Re: [PATCH v5 00/13] Continued continued unisys driver update

2015-06-05 Thread Jes Sorensen
Sudip Mukherjee writes: > On Thu, Jun 04, 2015 at 09:22:36AM -0400, Benjamin Romer wrote: >> This patch set contains the remaining changes from our driver cleanup >> efforts. No functional changes have been made, only a rebase so that the >> patches would apply. > Hi, > its not related to your thi

Re: [PATCH 0/6 NEXT]staging: r8723au: Add new driver

2014-03-30 Thread Jes Sorensen
Larry Finger writes: > On 03/28/2014 10:26 PM, Joe Perches wrote: >> On Fri, 2014-03-28 at 21:37 -0500, Larry Finger wrote: >>> The Realtek USB device RTL8723AU is found in Lenovo Yoga 13 tablets. >>> A driver for it has been available in a GitHub repo for several months. >> [] >>> 133 files cha

Re: staging-next: r8723au: Kconfig related nitpicks

2014-04-07 Thread Jes Sorensen
Paul Bolle writes: > Larry, > > 0) I stumbled on two minor Kconfig related issues in the r8723au driver > in staging-next. > > 1) drivers/staging/rtl8723au/include/drv_types.h > Why is CONFIG_BR_EXT used? I couldn't find a Kconfig symbol BR_EXT nor a > preprocessor define for CONFIG_BR_EXT. Hi Pa

Re: staging-next: r8723au: Kconfig related nitpicks

2014-04-07 Thread Jes Sorensen
Paul Bolle writes: > Jes, > > On Mon, 2014-04-07 at 11:25 +0200, Jes Sorensen wrote: >> If it's not used, it should be ripped out. > > That's a rule I can grasp! > >> We've been going through this code for a while ripping things out that >> a

[PATCH 1/1] The 8723 only has two paths

2014-04-07 Thread Jes . Sorensen
From: Jes Sorensen Converting the driver from the original RTL provided version, by error converted the code to use four, which caused all sorts of issues. The confusion was caused by the RTL driver having support for both two and four paths, and in some places had RF_PATH_MAX = 3. At the same

[PATCH 0/1] staging-next: rtl8723au: Fix too many paths

2014-04-07 Thread Jes . Sorensen
From: Jes Sorensen Greg, This one is a major bug in the version of the driver we submitted for staging. It correct a problem where we ended up trying to configure more RF paths than are on the chip. The result was for transmission to hang randomly. I really would like this to go in with the

Re: staging-next: r8723au: Kconfig related nitpicks

2014-04-08 Thread Jes Sorensen
Paul Bolle writes: > Larry, > > 0) I stumbled on two minor Kconfig related issues in the r8723au driver > in staging-next. > > 1) drivers/staging/rtl8723au/include/drv_types.h > Why is CONFIG_BR_EXT used? I couldn't find a Kconfig symbol BR_EXT nor a > preprocessor define for CONFIG_BR_EXT. > > 2)

Re: staging: r8723au: Add source files for new driver - part 1

2014-04-09 Thread Jes Sorensen
Dan Carpenter writes: > Hi Larry and Jes, > > The patch 5e93f3520957: "staging: r8723au: Add source files for new > driver - part 1" from Mar 28, 2014, leads to the following static > checker warning: > > drivers/staging/rtl8723au/core/rtw_ieee80211.c:1515 rtw_get_wfd_ie() > error: mem

Re: [PATCH V2] staging: r8723au: Fix build warnings

2014-04-09 Thread Jes Sorensen
to limited range of data type > > The first two warnings are fixed by making the two prototypes be "inline" to > match > the actual routine. The third warning comes from testing that a u8 quantity > is positive. > > Reported-by: kbuild test robot > Signed-off-

Re: [report] staging: r8723au: rtw_report_sec_ie23a() is buggy

2014-04-10 Thread Jes Sorensen
Dan Carpenter writes: > Hello Larry, Jes, > > The rtw_report_sec_ie23a() is very buggy. > > 1) It uses GFP_KERNEL but the callers are holding a spinlock. > > rtw_select_and_join_from_scanned_queue23a() <- takes lock > -> rtw_joinbss_cmd23a() >-> rtw_restruct_sec_ie23a() >

Re: [report] staging: r8723au: rtw_report_sec_ie23a() is buggy

2014-04-13 Thread Jes Sorensen
Dan Carpenter writes: > Hello Larry, Jes, > > The rtw_report_sec_ie23a() is very buggy. > > 1) It uses GFP_KERNEL but the callers are holding a spinlock. > > rtw_select_and_join_from_scanned_queue23a() <- takes lock > -> rtw_joinbss_cmd23a() >-> rtw_restruct_sec_ie23a() >

Re: [staging:staging-next 133/193] drivers/staging/rtl8723au/core/rtw_mlme_ext.c:1236 OnAssocReq23a() error: we previously assumed 'p' could be null (see line 1234)

2014-04-17 Thread Jes Sorensen
Dan Carpenter writes: > tree: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git > staging-next > head: dff222670ebebf1a7f147a23ccb5fc0312f2ae7e > commit: da290c54610f49ef475f7f88668259216b08fc36 [133/193] staging: > rtl8723au: OnAssocReq23a(): Clean up and use more ieee80211.h > >

Re: [staging:staging-next 133/193] drivers/staging/rtl8723au/core/rtw_mlme_ext.c:1236 OnAssocReq23a() error: we previously assumed 'p' could be null (see line 1234)

2014-04-17 Thread Jes Sorensen
Dan Carpenter writes: > On Thu, Apr 17, 2014 at 11:50:13AM +0200, Jes Sorensen wrote: >> > Old smatch warnings: >> > drivers/staging/rtl8723au/core/rtw_mlme_ext.c:4362 >> > collect_bss_info23a() error: __builtin_memcpy() 'bssid->IEs' too small >>

Re: [RFC PATCH] staging: rtl8723au: fix byte order problems

2016-01-04 Thread Jes Sorensen
Sven Dziadek writes: > Remove byte order conversions. > Conversion is already done in usb_ops_linux.c when accessing usb port. > The deleted lines convert to little-endian and then call FillH2CCmd to > convert back. Additionally, they are applied to wrong types and > process wrong parts of variabl

Re: [PATCH] staging: rtl8723au: use %pM and %ph formatting

2016-01-05 Thread Jes Sorensen
> .../staging/rtl8723au/hal/rtl8723a_bt-coexist.c| 24 > drivers/staging/rtl8723au/hal/usb_halinit.c| 6 ++-- > 3 files changed, 15 insertions(+), 47 deletions(-) Looks fine to me. Acked-by: Jes Sorensen _

Re: [RFC PATCH] staging: rtl8723au: fix byte order problems

2016-01-05 Thread Jes Sorensen
Julian Calaby writes: > Hi Sven, > > On Tue, Jan 5, 2016 at 2:29 AM, Sven Dziadek wrote: >> diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_cmd.c >> b/drivers/staging/rtl8723au/hal/rtl8723a_cmd.c >> index 1662c03c..57f5941 100644 >> --- a/drivers/staging/rtl8723au/hal/rtl8723a_cmd.c >> +++ b

Re: [PATCH] staging: refresh TODO for rtl8723au

2016-03-18 Thread Jes Sorensen
Joe Perches writes: > On Fri, 2016-03-18 at 13:42 -0400, Jes Sorensen wrote: >> Xose Vazquez Perez writes: >> > People should not waste time and energy working on this staging driver. >> > A replacement(rtl8xxxu) using the kernel wireless stack already was me

Re: [PATCH] staging: r8723au: This patch tries to fix some byte order issues that is found by sparse check.

2016-03-19 Thread Jes Sorensen
Julian Calaby writes: > Hi Jandy, > > On Thu, Mar 17, 2016 at 7:03 PM, Jandy Gou > wrote: >> make C=1 M=drivers/staging/rtl8723au/ >> >> drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:96:38: warning: cast to >> restricted __le16 >> drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:100:27: warning: cast

Re: [PATCH] staging: refresh TODO for rtl8723au

2016-03-19 Thread Jes Sorensen
Xose Vazquez Perez writes: > People should not waste time and energy working on this staging driver. > A replacement(rtl8xxxu) using the kernel wireless stack already was merged > in the 4.3 kernel. > > Cc: Jes Sorensen > Cc: Larry Finger > Cc: Kalle Valo > Cc: Greg Kr

Re: [PATCH] staging: r8723au: This patch tries to fix some byte order issues that is found by sparse check.

2016-03-19 Thread Jes Sorensen
Jandy Gou writes: > make C=1 M=drivers/staging/rtl8723au/ > > drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:96:38: warning: cast to > restricted __le16 > drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:100:27: warning: cast to > restricted __le32 > > Signed-off-by: Jandy Gou > --- > drivers/staging/

Re: [PATCH] Staging: rtl8723au: Remove function rtw_enqueue_{recvbuf23a/recvbuf23a_to_head}

2016-03-29 Thread Jes Sorensen
tl8723au/core/rtw_recv.c| 25 - > drivers/staging/rtl8723au/include/rtw_recv.h | 2 -- > 2 files changed, 27 deletions(-) Looks reasonable to me. Acked-by: Jes Sorensen Jes > diff --git a/drivers/staging/rtl8723au/core/rtw_recv.c > b/drivers/stagi

Re: [PATCH] Staging: rtl8723au: Remove unused functions

2016-03-29 Thread Jes Sorensen
tw_wlan_util.c | 10 -- > drivers/staging/rtl8723au/include/rtw_mlme_ext.h | 2 -- > 2 files changed, 12 deletions(-) Acked-by: Jes Sorensen ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH 0/1] staging: rtl8723au: Mark it deprecated

2016-04-15 Thread Jes . Sorensen
From: Jes Sorensen Hi, I think it is time to get rid of the vendor rtl8723au driver. I haven't heard any complaints about rtl8xxxu not being able to support the rtl8723au as well as the old driver. To give users a little time to migrate and raise their voices, lets start by marki

[PATCH 1/1] staging: rtl8723au: Add warning about this driver being deprecated

2016-04-15 Thread Jes . Sorensen
From: Jes Sorensen This driver is deprecated and superseded by rtl8xxxu. It will be removed in a future kernel release. Add a warning to Kconfig and at device init time to notify users and allow them time to switch over. Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/Kconfig

Re: [PATCH v2] staging: r8723au: This patch tries to fix some byte order issues that is found by sparse check.

2016-04-28 Thread Jes Sorensen
Jandy Gou writes: > make C=1 M=drivers/staging/rtl8723au/ > > drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:96:38: warning: cast to > restricted __le16 > drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:100:27: warning: cast to > restricted __le32 > > Signed-off-by: Jandy Gou > --- > drivers/sta

Re: [PATCH 0/5] add bus driver for Unisys s-Par paravirtualized devices to arch/x86

2016-05-17 Thread Jes Sorensen
Greg KH writes: > On Tue, May 17, 2016 at 03:27:56AM -0400, David Kershner wrote: >> This patchset moves the visorbus driver (fromdrivers/staging/unisys/visorbus) >> and its dependent headers files (from drivers/staging/unisys/include) >> out of staging into the main kernel tree. >> >> The visorb

Re: [PATCH 0/5] add bus driver for Unisys s-Par paravirtualized devices to arch/x86

2016-05-17 Thread Jes Sorensen
Greg KH writes: > On Tue, May 17, 2016 at 10:01:55AM -0400, Jes Sorensen wrote: >> Greg KH writes: >> > On Tue, May 17, 2016 at 03:27:56AM -0400, David Kershner wrote: >> >> This patchset moves the visorbus driver >> >> (fromdrivers/staging/unisys/visor

Re: [PATCH 0/5] add bus driver for Unisys s-Par paravirtualized devices to arch/x86

2016-05-18 Thread Jes Sorensen
Greg KH writes: > On Tue, May 17, 2016 at 07:49:53PM -0400, Jes Sorensen wrote: >> > Ok, but still no need to put it under arch/ anything, it should go in >> > drivers/ like all other drivers and busses are, no matter what the arch >> > it happens to run on is. >

Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning

2016-01-29 Thread Jes Sorensen
Bhaktipriya Shridhar writes: > This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file. > WARNING: void function return statements are not generally useful > > Signed-off-by: Bhaktipriya Shridhar > --- > drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 10 -- > 1 file changed, 10 de

Re: [PATCH] staging: rtl8723au: Fixes unnecessary return warning

2016-01-31 Thread Jes Sorensen
Julian Calaby writes: > Hi Bhaktipriya, > > On Sat, Jan 30, 2016 at 5:00 AM, Jes Sorensen wrote: >> Bhaktipriya Shridhar writes: >> If you insist on pushing this rather unncessary change, please do it >> properly, and remove the blank line before the return stateme

Re: [PATCH v2] staging: rtl8723au: Fixes unnecessary return warning

2016-01-31 Thread Jes Sorensen
Bhaktipriya Shridhar writes: > This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file. > WARNING: void function return statements are not generally useful > > Signed-off-by: Bhaktipriya Shridhar > --- > Changes in v2: >- Removed the unnecessary blank lines. > drivers/staging/rtl8723a

Re: [PATCH 3/3] Staging: rtl8723au: core: rtw_ieee80211: Fixed space and brace coding style issue.

2016-01-31 Thread Jes Sorensen
Rakhi Sharma writes: > Fixed the space and brace coding style error. > ERROR: space required before that '=' > ERROR: that open brace { should be on the previous line. > > Signed-off-by: Rakhi Sharma > --- > drivers/staging/rtl8723au/core/rtw_ieee80211.c | 4 ++-- > 1 file changed, 2 insertions(

Re: [PATCH] staging: rtl8723au: use list_for_each_entry*()

2016-01-31 Thread Jes Sorensen
Geliang Tang writes: > Use list_for_each_entry*() instead of list_for_each*() to simplify > the code. Fix coding style by the way. > > Signed-off-by: Geliang Tang > --- > drivers/staging/rtl8723au/core/rtw_ap.c | 166 > -- > drivers/staging/rtl8723au/core/rtw_mlme.

Re: [PATCH 3/3] Staging: rtl8723au: core: rtw_ieee80211: Fixed space and brace coding style issue.

2016-02-01 Thread Jes Sorensen
Joe Perches writes: > On Sun, 2016-01-31 at 09:36 -0500, Jes Sorensen wrote: >> Rakhi Sharma writes: >> > Fixed the space and brace coding style error. >> > ERROR: space required before that '=' >> > ERROR: that open brace { should be on the previou

Re: [PATCH 3/3] Staging: rtl8723au: core: rtw_ieee80211: Fixed space and brace coding style issue.

2016-02-01 Thread Jes Sorensen
Joe Perches writes: > On Mon, 2016-02-01 at 07:29 -0500, Jes Sorensen wrote: >> Joe Perches writes: > [] >> > so this could be transformed into something like: >> > >> > int rtw_get_bit_value_from_ieee_value23a(u8 val) >> > { >>

Re: [PATCH v2] staging: rtl8723au: use list_for_each_entry*()

2016-02-02 Thread Jes Sorensen
Geliang Tang writes: > Use list_for_each_entry*() instead of list_for_each*() to simplify > the code. > > Signed-off-by: Geliang Tang > --- > Changes in v2: > - drop the coding style fixing in v1. > --- > drivers/staging/rtl8723au/core/rtw_ap.c | 92 > ++- > drive

Re: [PATCH v3 1/3] staging: rtl8723au: use list_for_each_entry*()

2016-02-15 Thread Jes Sorensen
Geliang Tang writes: > Use list_for_each_entry*() instead of list_for_each*() to simplify > the code. > > Signed-off-by: Geliang Tang > --- > Changes in v3: > - split it into three patches. > Changes in v2: > - drop the coding style fixing in v1. > --- > drivers/staging/rtl8723au/core/rtw_ap.c

Re: [PATCH v3 2/3] staging: rtl8723au: core: rtw_recv: remove useless codes

2016-02-15 Thread Jes Sorensen
ing in v1. > --- > drivers/staging/rtl8723au/core/rtw_recv.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) I assume this requires patch 1/3 applied first? Acked-by: Jes Sorensen > > diff --git a/drivers/staging/rtl8723au/core/rtw_recv.c > b/drivers/staging/rtl87

Re: [PATCH v3 3/3] staging: rtl8723au: whitespace and blank line cleaning

2016-02-15 Thread Jes Sorensen
Julian Calaby writes: > Hi Geliang, > > On Sun, Feb 7, 2016 at 2:30 PM, Geliang Tang wrote: >> This patch cleans whitespaces and blank lines surrounding >> list_for_each_entry*(). > > It does a lot more than this, including: > - Removing some unnecessary brackets > - Whitespace changes well awa

Re: [PATCH v4 1/3] staging: rtl8723au: use list_for_each_entry*()

2016-02-17 Thread Jes Sorensen
kbuild test robot writes: > Hi Geliang, > > [auto build test ERROR on staging/staging-testing] > [also build test ERROR on v4.5-rc4 next-20160217] > [if your patch is applied to the wrong git tree, please drop us a note to > help improving the system] > > url: > https://github.com/0day-ci/lin

Re: [PATCH v5 0/3] staging: rtl8723au: use list_for_each_entry*() and cleaning

2016-02-18 Thread Jes Sorensen
Geliang Tang writes: > On Wed, Feb 17, 2016 at 12:28:33PM -0500, Jes Sorensen wrote: >> kbuild test robot writes: >> > All errors (new ones prefixed by >>): >> > >> >drivers/staging/rtl8723au/core/rtw_recv.c: In function >> > 'rtw_fr

Re: [PATCH] staging: rtl8723au: use list_first_entry*

2016-02-22 Thread Jes Sorensen
-- > 2 files changed, 22 insertions(+), 53 deletions(-) This looks fine to me. When these changes gets large, it may be better to break them down into multiple patches as it's easier to debug if there is a bug somewhere. Acked-by: Jes Sorensen > > diff --git a/drivers/sta

Re: [PATCH] drivers: staging: rtl8723au: remove unneeded null test

2016-03-04 Thread Jes Sorensen
ariable bound on line 1620 cannot be NULL > > Signed-off-by: Cihangir Akturk > --- > drivers/staging/rtl8723au/core/rtw_mlme.c | 13 ++--- > 1 file changed, 2 insertions(+), 11 deletions(-) Looks fine to me Acked-by: Jes Sorensen _

Re: [PATCH 5/6] staging: unisys: visorbus: Cleanup gotos in visordriver_probe_device

2016-03-09 Thread Jes Sorensen
David Kershner writes: > Visordriver_probe_device gotos were messy, clean them up. > > Signed-off-by: David Kershner > Signed-off-by: Timothy Sell > --- > drivers/staging/unisys/visorbus/visorbus_main.c | 13 +++-- > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff --git a/drive

Re: [PATCH 1/1 linux-next] staging: rtl8723au: use swap() in WMMOnAssocRsp23a()

2015-06-10 Thread Jes Sorensen
Fabian Frederick writes: > Use kernel.h macro definition. > > Thanks to Julia Lawall for Coccinelle scripting support. > > Signed-off-by: Fabian Frederick > --- > drivers/staging/rtl8723au/core/rtw_wlan_util.c | 12 +++- > 1 file changed, 3 insertions(+), 9 deletions(-) Please make sure

Re: [PATCH 5/7] staging: rtl8723au: issue_probersp(): remove unused parameter

2015-06-12 Thread Jes Sorensen
Luca Ceresoli writes: > The is_valid_p2p_probereq is never referenced in the function body. > > Signed-off-by: Luca Ceresoli > Cc: Greg Kroah-Hartman > Cc: Jes Sorensen > Cc: Larry Finger > --- > drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 8 +++- > 1 file

Re: [BUG ?] staging: rtl8723au: condition with no effect

2015-06-13 Thread Jes Sorensen
Nicholas Mc Guire writes: > scanning for trivial bug-patters with coccinelle spatches returned: > ./drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:1395 > WARNING: condition with no effect (if branch == else) > > drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c - line numbers from 4.1-rc7

Re: [BUG ?] staging: rtl8723au: condition with no effect

2015-06-14 Thread Jes Sorensen
Nicholas Mc Guire writes: > On Sat, 13 Jun 2015, Jes Sorensen wrote: > >> Nicholas Mc Guire writes: >> > scanning for trivial bug-patters with coccinelle spatches returned: >> > ./drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:1395 >> >WARNING: cond

Re: [PATCH 1/2] staging: rtl8723au: include/rtl8723a_hal.h: fix Rsvd1 size in fw header struct

2015-06-15 Thread Jes Sorensen
itions */ > u16 Version;/* FW Version */ > u8 Subversion; /* FW Subversion, default 0x00 */ > - u16 Rsvd1; > + u8 Rsvd1; I had to look through this one a bit

Re: [PATCH 2/2] staging: rtl8723au: include/rtl8723a_hal.h: use __leXX types in fw header struct

2015-06-15 Thread Jes Sorensen
Sudip Mukherjee writes: > On Mon, Jun 15, 2015 at 11:30:41AM +0200, Daniele Alessandrelli wrote: >> On June 15, 2015 7:47:41 AM GMT+02:00, Sudip Mukherjee >> wrote: >> >On Sun, Jun 14, 2015 at 11:26:35PM +0200, Daniele Alessandrelli wrote: >> >> >> - u16 Signature; /* 92C0: test chip; 92C, 88C0:

Re: [PATCH v2 2/3] staging: unisys: convert pack pragma to __packed

2015-06-19 Thread Jes Sorensen
"Kershner, David A" writes: >> -Original Message- >> From: Dan Carpenter [mailto:dan.carpen...@oracle.com] >> Sent: Friday, June 19, 2015 8:55 AM >> To: Kershner, David A >> Cc: gre...@linuxfoundation.org; jes.soren...@redhat.com; *S-Par- >> Maintainer; driverdev-devel@linuxdriverproject.o

Re: [PATCH] staging:rtl8723au:odm.c:Removing trailing whitespaces

2015-06-22 Thread Jes Sorensen
1 deletion(-) Looks straight forward. Acked-by: Jes Sorensen Jes > diff --git a/drivers/staging/rtl8723au/hal/odm.c > b/drivers/staging/rtl8723au/hal/odm.c > index f354f5e..6b9dbef 100644 > --- a/drivers/staging/rtl8723au/hal/odm.c > +++ b/drivers/staging/rtl8723au/hal/odm.c > @@

Re: [PATCH v2 0/2] staging: rtl8723au: core: endianness issues

2015-06-25 Thread Jes Sorensen
David Decotigny writes: > The code shows a couple inconsistencies (described in commit > descriptions) which would not be an issue on little-endian cpus, but > could cause breakage on non-LE cpus. Note: I could not test on real > hardware, these patches created based on sparse reports. > > Hostory

Re: [PATCH 2/3] staging: rtl8723au: fix "incorrect type in assignment"

2015-07-01 Thread Jes Sorensen
Michel von Czettritz writes: > Writing the output of cpu_to_le32 to an u32 or *(u32*) is an implicit > cast and results in an sparse warning. > > Since param and mask won't be changed, the implicit cast can be avoided > by creating local variables. > > Signed-off-by: Michel von Czettritz > --- >

Re: [PATCH 2/3] staging: rtl8723au: fix "incorrect type in assignment"

2015-07-01 Thread Jes Sorensen
Dan Carpenter writes: > On Tue, Jun 30, 2015 at 11:54:02PM +0200, Michel von Czettritz wrote: >> Writing the output of cpu_to_le32 to an u32 or *(u32*) is an implicit >> cast and results in an sparse warning. >> >> Since param and mask won't be changed, the implicit cast can be avoided >> by crea

Re: [PATCH 2/3] staging: rtl8723au: fix "incorrect type in assignment"

2015-07-01 Thread Jes Sorensen
Michel von Czettritz writes: > On 07/01/2015 10:31 PM, Jes Sorensen wrote: >> Michel von Czettritz writes: >>> Writing the output of cpu_to_le32 to an u32 or *(u32*) is an implicit >>> cast and results in an sparse warning. >>> >>> Since param and ma

Re: [PATCH] staging: unisys: Add s-Par visorhba

2015-07-15 Thread Jes Sorensen
"Kershner, David A" writes: >> -Original Message- >> From: Dan Carpenter [mailto:dan.carpen...@oracle.com] >> Sent: Wednesday, July 15, 2015 8:16 AM >> To: Romer, Benjamin M >> Cc: gre...@linuxfoundation.org; driverdev-devel@linuxdriverproject.org; >> jes.soren...@redhat.com; *S-Par-Mainta

Re: [PATCH] staging: rtl8723au: fix incorrect type in assignment warning

2015-07-21 Thread Jes Sorensen
Steve Pennington writes: > Repaced call to htons with call to cpu_to_be16s to fix the > following sparse warning: > drivers/staging/rtl8723au/core/rtw_recv.c:1557:21: warning: incorrect type in > assignment (different base types) > drivers/staging/rtl8723au/core/rtw_recv.c:1557:21:expected un

Re: [PATCH] staging: rtl8723au: fix incorrect type in assignment warning

2015-07-22 Thread Jes Sorensen
Steve Pennington writes: > Repaced calls to htons and memcpy with a single call to put_unaligned_be16 You may want an 'l' in replaced, but not a biggie to me. > to fix the following sparse warning: > drivers/staging/rtl8723au/core/rtw_recv.c:1557:21: warning: incorrect type in > assignment (dif

Re: [PATCH] staging:rtl8723au:core:rtw_sreset.c:Fix for space related error

2015-07-26 Thread Jes Sorensen
"Joglekar, Tejas (T.)" writes: > From: Joglekar Tejas > > This patch fixes the error given by checkpatch.pl > > Signed-off-by: Joglekar Tejas > --- > drivers/staging/rtl8723au/core/rtw_sreset.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/rtl8723au/co

Re: [PATCH] staging: rtl8723au: fix up coding style warnings reported by checkpatch.pl.

2015-08-04 Thread Jes Sorensen
Ting-Chih Hsiao writes: > remove spaces at the start of a line > align enum variable with other parameters > > Signed-off-by: Ting-Chih Hsiao Acked-by: Jes Sorensen > --- > drivers/staging/rtl8723au/hal/odm_RegConfig8723A.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH] staging: rtl8723au: Fix sparse warning: cast to restricted __le16

2015-08-06 Thread Jes Sorensen
Johannes Postma writes: > usPtr is used as __le16 *, but was defined as u16 *. > This was reported by sparse as: > drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:1850:29: warning: cast to > restricted __le16 > > This patch fixes the type of usPtr. > > Signed-off-by: Johannes Postma > --- > dr

Re: [PATCH] staging: rtl8723au: Fix sparse warning: cast to restricted __le16

2015-08-07 Thread Jes Sorensen
Johannes Postma writes: > On 06/08/15 at 08:21am, Jes Sorensen wrote: >> >> Looks OK to me. Probably worth changing the *(usPtr + index) to be >> usPtr[index] as well to make the code easier to read. >> >> Jes >> > > Thank you for reviewing. I

Re: [PATCH] staging: rtl8723au: rtl8723a_hal_init: Improve code readability

2015-08-07 Thread Jes Sorensen
it.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Jes Sorensen ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: rtl8723au: core: rtw_mlme_ext: Removed variables that is never used

2015-02-01 Thread Jes Sorensen
Rickard Strandqvist writes: > Variable was assigned a value that was never used. > I have also removed all the code that thereby serves no purpose. > > This was found using a static code analysis program called cppcheck > > Signed-off-by: Rickard Strandqvist > --- > drivers/staging/rtl8723au/cor

Re: [PATCH] staging: rtl8723au: hal: HalDMOutSrc8723A_CE: Removed variables that is never used

2015-02-01 Thread Jes Sorensen
Rickard Strandqvist writes: > Variable was assigned a value that was never used. > I have also removed all the code that thereby serves no purpose. > > This was found using a static code analysis program called cppcheck > > Signed-off-by: Rickard Strandqvist > --- > drivers/staging/rtl8723au/hal

Re: [PATCH] staging: rtl8723au: hal: usb_ops_linux: Removed variables that is never used

2015-02-01 Thread Jes Sorensen
Rickard Strandqvist writes: > Variable was assigned a value that was never used. > I have also removed all the code that thereby serves no purpose. > > This was found using a static code analysis program called cppcheck > > Signed-off-by: Rickard Strandqvist > --- > drivers/staging/rtl8723au/hal

Re: [PATCH] staging: rtl8723au: core: rtw_mlme: Removed variables that is never used

2015-02-01 Thread Jes Sorensen
Rickard Strandqvist writes: > Variable was assigned a value that was never used. > I have also removed all the code that thereby serves no purpose. > > This was found using a static code analysis program called cppcheck > > Signed-off-by: Rickard Strandqvist > --- > drivers/staging/rtl8723au/cor

Re: [PATCH] staging: rtl8723au: hal: usb_ops_linux: Removed variables that is never used

2015-02-01 Thread Jes Sorensen
Julian Calaby writes: > Hi Rickard, > > On Mon, Feb 2, 2015 at 10:17 AM, Rickard Strandqvist > wrote: >> 2015-02-02 0:01 GMT+01:00 Jes Sorensen : >>> Rickard Strandqvist writes: >>>> Variable was assigned a value that was never used. >>>> I ha

Re: [PATCH] staging: rtl8723au: multiple condition with no effect - if identical to else

2015-02-03 Thread Jes Sorensen
ertions(+), 52 deletions(-) Why make it simple if you can make it complicated :) I presume it's against 3.19-rc7 since a 3.0.19 would be rather obsolete. Signed-off-by: Jes Sorensen ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH 0/6] staging: rtl8723au: Further cleanups

2015-02-09 Thread Jes . Sorensen
From: Jes Sorensen Hi, A couple more cleanups for the rtl8723au driver. Cheers, Jes Jes Sorensen (6): staging: rtl8723au: Use RF_AC instead of hardcoded value for RF register write staging: rtl8723au: rates are always set via the firmware interface staging: rtl8723au

[PATCH 3/6] staging: rtl8723au: rtl8723a_add_rateatid() simplyfy code

2015-02-09 Thread Jes . Sorensen
From: Jes Sorensen No point shifting raid right, just to shift it left again before re-adding it. Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/rtl8723a_cmd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723au/hal

[PATCH 5/6] staging: rtl8723au: hal_com.h: Remove some unused #defines

2015-02-09 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/include/hal_com.h | 30 - 1 file changed, 30 deletions(-) diff --git a/drivers/staging/rtl8723au/include/hal_com.h b/drivers/staging/rtl8723au/include/hal_com.h index 7c31865..e946c4b

[PATCH 4/6] staging: rtl8723au: Remove more unused #defines

2015-02-09 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/include/ieee80211.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/staging/rtl8723au/include/ieee80211.h b/drivers/staging/rtl8723au/include/ieee80211.h index cb23cd0..3caf4f5 100644 --- a

[PATCH 1/6] staging: rtl8723au: Use RF_AC instead of hardcoded value for RF register write

2015-02-09 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/usb_halinit.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723au/hal/usb_halinit.c b/drivers/staging/rtl8723au/hal/usb_halinit.c index adbf1c2..319170d 100644

[PATCH 6/6] staging: rtl8723au: Firmware always handles adaptive rates

2015-02-09 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/odm.c | 12 drivers/staging/rtl8723au/include/odm.h | 3 --- 2 files changed, 15 deletions(-) diff --git a/drivers/staging/rtl8723au/hal/odm.c b/drivers/staging/rtl8723au/hal/odm.c index

[PATCH 2/6] staging: rtl8723au: rates are always set via the firmware interface

2015-02-09 Thread Jes . Sorensen
From: Jes Sorensen The only case where fw_ractrl = false was when the firmware failed to load, and in that case we are dead in the water anyway. Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/odm.c| 3 +-- .../staging/rtl8723au/hal/rtl8723a_bt-coexist.c| 28

Re: [PATCH] staging: rtl8723au: rtl8723a_hal_init.c: remove unnecessary braces

2015-02-23 Thread Jes Sorensen
gt; 1 file changed, 14 insertions(+), 26 deletions(-) Looks good to me. Acked-by: Jes Sorensen > > diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c > b/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c > index a5eadd4..e88d851 100644 > --- a/drivers/staging/rtl8723a

[PATCH 4/6] staging: rtl8723au: Remove more unused #defines

2015-02-26 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/include/ieee80211.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/staging/rtl8723au/include/ieee80211.h b/drivers/staging/rtl8723au/include/ieee80211.h index cb23cd0..3caf4f5 100644 --- a

[PATCH 5/6] staging: rtl8723au: hal_com.h: Remove some unused #defines

2015-02-26 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/include/hal_com.h | 30 - 1 file changed, 30 deletions(-) diff --git a/drivers/staging/rtl8723au/include/hal_com.h b/drivers/staging/rtl8723au/include/hal_com.h index 7c31865..e946c4b

[PATCH 2/6] staging: rtl8723au: rates are always set via the firmware interface

2015-02-26 Thread Jes . Sorensen
From: Jes Sorensen The only case where fw_ractrl = false was when the firmware failed to load, and in that case we are dead in the water anyway. Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/odm.c| 3 +-- .../staging/rtl8723au/hal/rtl8723a_bt-coexist.c| 28

[PATCH 3/6] staging: rtl8723au: rtl8723a_add_rateatid() simplify code

2015-02-26 Thread Jes . Sorensen
From: Jes Sorensen No point shifting raid right, just to shift it left again before re-adding it. Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/rtl8723a_cmd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723au/hal

[PATCH 6/6] staging: rtl8723au: Firmware always handles adaptive rates

2015-02-26 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/odm.c | 12 drivers/staging/rtl8723au/include/odm.h | 3 --- 2 files changed, 15 deletions(-) diff --git a/drivers/staging/rtl8723au/hal/odm.c b/drivers/staging/rtl8723au/hal/odm.c index

[PATCH 1/6] staging: rtl8723au: Use RF_AC instead of hardcoded value for RF register write

2015-02-26 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/usb_halinit.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723au/hal/usb_halinit.c b/drivers/staging/rtl8723au/hal/usb_halinit.c index adbf1c2..319170d 100644

[PATCH 0/6] staging: rtl8723au: A few more fixes

2015-02-26 Thread Jes . Sorensen
From: Jes Sorensen Hi, A few more fixes for the rtl8723au driver for staging-next. Cheers, Jes Jes Sorensen (6): staging: rtl8723au: Use RF_AC instead of hardcoded value for RF register write staging: rtl8723au: rates are always set via the firmware interface staging: rtl8723au

[PATCH 1/5] staging: rtl8723au: No need for two copies of rf_type

2015-02-27 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/odm.c | 12 +++- drivers/staging/rtl8723au/hal/rtl8723a_dm.c | 7 --- drivers/staging/rtl8723au/include/odm.h | 16 3 files changed, 3 insertions(+), 32 deletions(-) diff

[PATCH 3/5] staging: rtl8723au: Remove rf type from struct hal_version

2015-02-27 Thread Jes . Sorensen
From: Jes Sorensen This gets rid of yet another duplicated copy of the RF type Signed-off-by: Jes Sorensen --- .../staging/rtl8723au/hal/HalDMOutSrc8723A_CE.c| 19 +- drivers/staging/rtl8723au/hal/hal_com.c| 40 -- drivers/staging/rtl8723au/hal

[PATCH 0/5] staging: rtl8723au: Another set of cleanups

2015-02-27 Thread Jes . Sorensen
From: Jes Sorensen Hi, Here is another 5 cleanups for the rtl8723au driver, to go on top of the set I posted yesterday. Cheers, Jes Jes Sorensen (5): staging: rtl8723au: No need for two copies of rf_type staging: rtl8723au: Be more consistent in checking for 2 TX paths staging

[PATCH 5/5] staging: rtl8723au: MAX_AGGR_NUM is not used

2015-02-27 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/rtl8723a_phycfg.c| 1 - drivers/staging/rtl8723au/include/Hal8723APhyCfg.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_phycfg.c b/drivers/staging/rtl8723au

[PATCH 2/5] staging: rtl8723au: Be more consistent in checking for 2 TX paths

2015-02-27 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/HalDMOutSrc8723A_CE.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8723au/hal/HalDMOutSrc8723A_CE.c b/drivers/staging/rtl8723au/hal

[PATCH 4/5] staging: rtl8723au: The RF on an 8723au is always a 6052

2015-02-27 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/rtl8723a_phycfg.c| 34 +- drivers/staging/rtl8723au/hal/usb_halinit.c| 12 drivers/staging/rtl8723au/include/Hal8723APhyCfg.h | 9 -- drivers/staging/rtl8723au/include

[PATCH 04/28] staging: rtl8723au: ODM_BB_RA_MASK is always set

2015-03-02 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/odm.c | 17 ++--- drivers/staging/rtl8723au/hal/rtl8723a_dm.c | 1 - drivers/staging/rtl8723au/include/odm.h | 1 - 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/drivers

[PATCH 02/28] staging: rtl8723au: Avoid zero initializing variables unnecessarily

2015-03-02 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- drivers/staging/rtl8723au/hal/odm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723au/hal/odm.c b/drivers/staging/rtl8723au/hal/odm.c index 2c604da..a77d151 100644 --- a/drivers/staging

<    1   2   3   4   5   6   7   8   >