Re: [PATCH 13/17] staging: wfx: fix endianness of the field 'len'

2020-05-11 Thread kbuild test robot
Hi Jerome, I love your patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] [also build test WARNING on next-20200511] [cannot apply to v5.7-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also

Re: [PATCH -next] media: tegra: Make tegra210_video_formats static

2020-05-11 Thread Sowjanya Komatineni
On 5/11/20 4:20 AM, Samuel Zou wrote: Fix the following sparse warning: drivers/staging/media/tegra-video/tegra210.c:589:33: warning: symbol 'tegra210_video_formats' was not declared. The tegra210_video_formats has only call site within tegra210.c It should be static Fixes: 423d10a99b30

[PATCH 14/17] staging: wfx: fix endianness of the field 'status'

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The field 'status' appears in most of structs returned by the hardware. This field is encoded as little endian. Sparse complains this field is not always correctly accessed: drivers/staging/wfx/data_rx.c:53:16: warning: restricted __le32 degrades to integer

[PATCH 17/17] staging: wfx: update TODO

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller Update the TODO list associated to the wfx driver with the last progresses. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/TODO | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/staging/wfx/TODO b/drivers/staging/wfx/TODO index

[PATCH 08/17] staging: wfx: fix access to le32 attribute 'ps_mode_error'

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The attribute ps_mode_error is little-endian. We have to take to the endianness when we access it. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_rx.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wfx/hif_rx.c

[PATCH 12/17] staging: wfx: fix endianness of the struct hif_ind_startup

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The struct hif_ind_startup is received from the hardware. So it is declared as little endian. However, it is also stored in the main driver structure and used on different places in the driver. Sparse complains about that: drivers/staging/wfx/data_tx.c:388:43: warning:

[PATCH 13/17] staging: wfx: fix endianness of the field 'len'

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The struct hif_msg is received from the hardware. So, it declared as little endian. However, it is also accessed from many places in the driver. Sparse complains about that: drivers/staging/wfx/bh.c:88:32: warning: restricted __le16 degrades to integer

[PATCH 11/17] staging: wfx: declare the field 'packet_id' with native byte order

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The field packet_id is not interpreted by the device. It is only used as identifier for the device answer. So it is not necessary to declare it little endian. It fixes some warnings raised by Sparse without complexifying the code. Signed-off-by: Jérôme Pouiller ---

[PATCH 07/17] staging: wfx: fix endianness of hif_req_read_mib fields

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The structs hif_{req,cnf}_read_mib contain only little endian values. Thus, it is necessary to fix byte ordering before to use them. Especially, sparse detected wrong accesses to fields mib_id and length. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx.c |

[PATCH 15/17] staging: wfx: fix endianness of the field 'num_tx_confs'

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The field 'num_tx_confs' from the struct hif_cnf_multi_transmit is a __le32. Sparse complains this field is not always correctly accessed: drivers/staging/wfx/hif_rx.c:82:9: warning: restricted __le32 degrades to integer drivers/staging/wfx/hif_rx.c:87:29:

[PATCH 10/17] staging: wfx: fix access to le32 attribute 'indication_type'

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The attribute indication_type is little-endian. We have to take to the endianness when we access it. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_rx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wfx/hif_rx.c

[PATCH 16/17] staging: wfx: fix endianness of the field 'channel_number'

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The field 'channel_number' from the structs hif_ind_rx and hif_req_start is a __le32. Sparse complains this field is not always correctly accessed: drivers/staging/wfx/data_rx.c:95:55: warning: incorrect type in argument 1 (different base types)

[PATCH 09/17] staging: wfx: fix access to le32 attribute 'event_id'

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The attribute event_id is little-endian. We have to take to the endianness when we access it. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_rx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wfx/hif_rx.c

[PATCH 04/17] staging: wfx: fix wrong bytes order

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The field wakeup_period_max from struct hif_mib_beacon_wake_up_period is a u8. So, assigning it a __le16 produces a nasty bug on big-endian architectures. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx_mib.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 03/17] staging: wfx: fix cast operator

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller Sparse detects that le16_to_cpup() expects a __le16 * as argument. Change the cast operator to be compliant with sparse. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.c | 2 +- drivers/staging/wfx/traces.h | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH 06/17] staging: wfx: fix endianness of fields media_delay and tx_queue_delay

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The struct hif_cnf_tx contains only little endian values. Thus, it is necessary to fix byte ordering before to use them. Especially, sparse detected wrong access to fields media_delay and tx_queue_delay. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c |

[PATCH 05/17] staging: wfx: fix output of rx_stats on big endian hosts

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller The struct hif_rx_stats contains only little endian values. Thus, it is necessary to fix byte ordering before to use them. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/debug.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git

[PATCH 02/17] staging: wfx: take advantage of le32_to_cpup()

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller le32_to_cpu(*x) can be advantageously converted in le32_to_cpup(x). Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c index

[PATCH 00/17] staging: wfx: fix support for big-endian hosts

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller Hello, As already discussed here[1], this series improves support for big endian hosts. All warnings raised by sparse are now fixed. Note, this series aims to be applied on top of PR named "staging: wfx: fix Out-Of-Band IRQ" [1]

[PATCH 01/17] staging: wfx: fix use of cpu_to_le32 instead of le32_to_cpu

2020-05-11 Thread Jerome Pouiller
From: Jérôme Pouiller Sparse detected that le32_to_cpu should be used instead of cpu_to_le32. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hwio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/hwio.c b/drivers/staging/wfx/hwio.c index

[staging:staging-next] BUILD SUCCESS ae73e7784871ebe2c43da619b4a1e2c9ff81508d

2020-05-11 Thread kbuild test robot
allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a006-20200511 i386 randconfig-a005-20200511 i386 randconfig

[driver-core:driver-core-testing] BUILD SUCCESS c8be6af9ef16cf44d690fc227a0d2dd7a526ef05

2020-05-11 Thread kbuild test robot
defconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a006-20200511 i386 randconfig-a005-20200511 i386

Re: [PATCH RFC] drivers: most: add USB adapter driver

2020-05-11 Thread Christian.Gromm
On Mon, 2020-05-11 at 13:47 +0200, Greg KH wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On Mon, May 11, 2020 at 11:51:15AM +0200, Christian Gromm wrote: > > This patch adds the MOST USB adapter driver to the stable branch. > > This is >

Re: [PATCH RFC] drivers: most: add USB adapter driver

2020-05-11 Thread Randy Dunlap
On 5/11/20 2:51 AM, Christian Gromm wrote: > diff --git a/drivers/most/usb/Kconfig b/drivers/most/usb/Kconfig > new file mode 100644 > index 000..a86f1f6 > --- /dev/null > +++ b/drivers/most/usb/Kconfig > @@ -0,0 +1,14 @@ > +# SPDX-License-Identifier: GPL-2.0 > +# > +# MOST USB configuration >

Re: [PATCH RFC] drivers: most: add USB adapter driver

2020-05-11 Thread Greg KH
On Mon, May 11, 2020 at 11:51:15AM +0200, Christian Gromm wrote: > This patch adds the MOST USB adapter driver to the stable branch. This is > a follow-up to commit . I do not understand the "a follow-up..." sentance. Always use the format of: b27652753918 ("staging: most: move core

[PATCH -next] media: tegra: Make tegra210_video_formats static

2020-05-11 Thread Samuel Zou
Fix the following sparse warning: drivers/staging/media/tegra-video/tegra210.c:589:33: warning: symbol 'tegra210_video_formats' was not declared. The tegra210_video_formats has only call site within tegra210.c It should be static Fixes: 423d10a99b30 ("media: tegra: Add Tegra210 Video input

[PATCH RFC] drivers: most: add USB adapter driver

2020-05-11 Thread Christian Gromm
This patch adds the MOST USB adapter driver to the stable branch. This is a follow-up to commit . Signed-off-by: Christian Gromm --- drivers/most/Kconfig |6 + drivers/most/Makefile |2 + drivers/most/usb/Kconfig | 14 + drivers/most/usb/Makefile |4 +