Re: [QUESTION] Enable the wireless module on Pinebook Pro

2020-09-30 Thread Jian-Hong Pan
I forgot to mail to Dan Johansen as well. Jian-Hong Pan 於 2020年9月30日 週三 下午4:15寫道: > > Hi, > > According to the preloaded system Manjaro ARM on Pinebook Pro [1], I > found the firmware files in ap6256-firmware package [2] enable the > wireless module, including WiFi and Bluetoot

[QUESTION] Enable the wireless module on Pinebook Pro

2020-09-30 Thread Jian-Hong Pan
license should follow? [1] https://www.pine64.org/pinebook-pro/ [2] https://gitlab.manjaro.org/manjaro-arm/packages/community/ap6256-firmware Jian-Hong Pan

[PATCH] brcm: Add 4356 based AP6356S NVRAM for the khadas VIM2

2020-08-11 Thread Jian-Hong Pan
e4507c92a668a3d Suggested-by: Nick Xie Signed-off-by: Jian-Hong Pan --- brcm/brcmfmac4356-sdio.khadas,vim2.txt | 128 + 1 file changed, 128 insertions(+) create mode 100644 brcm/brcmfmac4356-sdio.khadas,vim2.txt diff --git a/brcm/brcmfmac4356-sdio.khadas,vim2.txt b/br

Re: Driver support for Realtek RTL8125 2.5GB Ethernet

2019-10-02 Thread Jian-Hong Pan
Heiner Kallweit 於 2019年10月2日 週三 下午1:54寫道: > > On 26.07.2019 21:05, Heiner Kallweit wrote: > > On 24.07.2019 22:02, Heiner Kallweit wrote: > >> On 24.07.2019 10:19, Jian-Hong Pan wrote: > >>> Hi all, > >>> > >>> We have got a consumer desk

Driver support for Realtek RTL8125 2.5GB Ethernet

2019-07-24 Thread Jian-Hong Pan
-express-software [3] https://github.com/endlessm/linux/commit/da1e43f58850d272eb72f571524ed71fd237d32b Jian-Hong Pan

[RFC PATCH v2 3/5] net: lorawan: Fix net device leakage

2019-01-31 Thread Jian-Hong Pan
The net device may be missed to be put after error check. This patch fixes the issue to prevent the leakage. Fixes: 48e5bb6cec79 ("net: Prepare LoRaWAN socket module") Signed-off-by: Jian-Hong Pan --- v2: - Modify the commit message net/lorawan/socket.c | 12 1 file

[RFC PATCH v2 2/5] net: lorawan: Remove unused lrw_dev_hard_header function

2019-01-31 Thread Jian-Hong Pan
The lorawan module is an abastraction layer over the LoRaWAN soft and hard MAC. It passes the original buffer to the real MAC layer. So, this patch removes the lrw_dev_hard_header function. Fixes: 48e5bb6cec79 ("net: Prepare LoRaWAN socket module") Signed-off-by: Jian-Hong Pan --- v2

[RFC PATCH v2 5/5] net: lorawan: Split skb definitions into another header

2019-01-31 Thread Jian-Hong Pan
Split LoRaWAN related skb definitions from lora/lorawan_netdev.h into another header lora/lorawan/skb.h. Signed-off-by: Jian-Hong Pan --- v2: - Modify the commit message - Move lora/lorawan_netdev.h to lora/lorawan/skb.h include/linux/lora/lorawan/skb.h| 33

[RFC PATCH v2 4/5] net: lorawan: Fulfill the help text of Kconfig

2019-01-31 Thread Jian-Hong Pan
Mention the LoRaWAN network feature to distinguish it from other Low-Power Wide-Area Network like Sigfox and NB-IoT. Fixes: 48e5bb6cec79 ("net: Prepare LoRaWAN socket module") Signed-off-by: Jian-Hong Pan --- v2: - Modify the commit message - Fix the help text's space between two

[RFC PATCH v2 1/5] net: lorawan: Refine the coding style

2019-01-31 Thread Jian-Hong Pan
Fix the coding style. Fixes: 48e5bb6cec79 ("net: Prepare LoRaWAN socket module") Signed-off-by: Jian-Hong Pan --- v2: - Modify the commit message - Order the included header files include/linux/lora/lorawan_netdev.h | 5 ++-- net/lorawan/socket.c

[RFC PATCH v2 0/5] net: lorawan: Refine the lorawan protocol module

2019-01-31 Thread Jian-Hong Pan
Hello, This series refines the commit 48e5bb6cec79 ("net: Prepare LoRaWAN socket module") for coding style. Besides, sperates LoRaWAN related skb definitions from lora/lorawan_netdev.h into another header lora/lorawan/skb.h. Thanks, Jian-Hong Pan Jian-Hong Pan (5): net: lorawan:

Re: [RFC PATCH 5/5] net: lorawan: Split skb definitions into another header

2019-01-16 Thread Jian-Hong Pan
lude/linux/lora/lorawan/skb.h 4. Split the lorawan skb stuff from lora/lorawan_netdev.h to include/linux/lorawan/skb.h #1, #2 and #3 are good to me. So, the intersection is choice #3. Regards, Jian-Hong Pan

Re: [RFC PATCH 1/5] net: lorawan: Refine the coding style

2019-01-16 Thread Jian-Hong Pan
Andreas Färber 於 2019年1月16日 週三 下午11:07寫道: > > Am 16.01.19 um 15:33 schrieb Jiri Pirko: > > Wed, Jan 16, 2019 at 03:24:54PM CET, starni...@g.ncu.edu.tw wrote: > >> Signed-off-by: Jian-Hong Pan > >> --- > > > > Patches like this are in general frowned upon

[RFC PATCH 5/5] net: lorawan: Split skb definitions into another header

2019-01-16 Thread Jian-Hong Pan
Split LoRaWAN related skb definitions from lora/lorawan_netdev.h into another header lora/lorawan_skb.h. Signed-off-by: Jian-Hong Pan --- include/linux/lora/lorawan_netdev.h | 20 - include/linux/lora/lorawan_skb.h| 33 + net/lorawan/socket.c

[RFC PATCH 5/5] net: lorawan: Split skb definitions into another header

2019-01-16 Thread Jian-Hong Pan
Split LoRaWAN related skb definitions from lora/lorawan_netdev.h into another header lora/lorawan_skb.h. Signed-off-by: Jian-Hong Pan --- include/linux/lora/lorawan_netdev.h | 20 - include/linux/lora/lorawan_skb.h| 33 + net/lorawan/socket.c

[RFC PATCH 4/5] net: lorawan: Fulfill the help text of Kconfig

2019-01-16 Thread Jian-Hong Pan
Mention the LoRaWAN network feature to distinguish it from other Low-Power Wide-Area Network like Sigfox and NB-IoT. Signed-off-by: Jian-Hong Pan --- net/lorawan/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/lorawan/Kconfig b/net/lorawan/Kconfig index

[RFC PATCH 3/5] net; lorawan: Fix net device leakage

2019-01-16 Thread Jian-Hong Pan
The net device may be missed to be put after error check. This patch fixes the issue to prevent the leakage. Signed-off-by: Jian-Hong Pan --- net/lorawan/socket.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/net/lorawan/socket.c b/net/lorawan/socket.c index

[RFC PATCH 2/5] net: lorawan: Remove unused lrw_dev_hard_header function

2019-01-16 Thread Jian-Hong Pan
The lorawan module is an abastraction layer over the LoRaWAN soft and hard MAC. It passes the original buffer to the real MAC layer. So, this patch removes the lrw_dev_hard_header function. Signed-off-by: Jian-Hong Pan --- net/lorawan/socket.c | 12 1 file changed, 12 deletions

[RFC PATCH 1/5] net: lorawan: Refine the coding style

2019-01-16 Thread Jian-Hong Pan
Signed-off-by: Jian-Hong Pan --- include/linux/lora/lorawan_netdev.h | 5 ++-- net/lorawan/socket.c| 43 ++--- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/include/linux/lora/lorawan_netdev.h b/include/linux/lora/lorawan_netdev.h

[RFC PATCH 0/5] net: lorawan: Refine the lorawan protocol module

2019-01-16 Thread Jian-Hong Pan
Jian-Hong Pan (5): net: lorawan: Refine the coding style net: lorawan: Remove unused lrw_dev_hard_header function net; lorawan: Fix net device leakage net: lorawan: Fulfill the help text of Kconfig net: lorawan: Split skb definitions into another header include/linux/lora

Re: [PATCH v5 1/6] net: lorawan: Add LoRaWAN socket module

2019-01-13 Thread Jian-Hong Pan
Jian-Hong Pan 於 2019年1月7日 週一 下午10:47寫道: > > Andreas Färber 於 2018年12月29日 週六 下午3:27寫道: > > > > Hi Jian-Hong, > > > > Am 16.12.18 um 11:18 schrieb Jian-Hong Pan: > > > This patch adds a new address/protocol family for LoRaWAN network. > > > It also i

Re: [PATCH v5 1/6] net: lorawan: Add LoRaWAN socket module

2019-01-07 Thread Jian-Hong Pan
Andreas Färber 於 2018年12月29日 週六 下午3:27寫道: > > Hi Jian-Hong, > > Am 16.12.18 um 11:18 schrieb Jian-Hong Pan: > > This patch adds a new address/protocol family for LoRaWAN network. > > It also implements the the functions and maps to Datagram socket for > > LoR

Re: [PATCH v5 5/6] net: maclorawan: Implement maclorawan class module

2018-12-19 Thread Jian-Hong Pan
> > Am 18.12.18 um 15:27 schrieb Jian-Hong Pan: > > >> Sun, Dec 16, 2018 at 11:18:59AM CET, starni...@g.ncu.edu.tw wrote: > > >>> LoRaWAN defined by LoRa Alliance(TM) is the MAC layer over LoRa > > devices. > > >>> > > >>>

Re: [PATCH v5 5/6] net: maclorawan: Implement maclorawan class module

2018-12-18 Thread Jian-Hong Pan
> >> > > >> >On the other side, it defines the basic interface and operation > >> >functions for compatible LoRa device drivers. > >> > > >> >Signed-off-by: Jian-Hong Pan > >> >--- > >> >V2: > >> >- Split the LoR

Re: [PATCH v5 5/6] net: maclorawan: Implement maclorawan class module

2018-12-18 Thread Jian-Hong Pan
1. End-device receive slot timing > >2. Only single channel and single data rate for now > >3. Unconfirmed data up/down message types > > > >On the other side, it defines the basic interface and operation > >functions for compatible LoRa device drivers. > > > &

[PATCH v5 2/6] net: lorawan: Add LoRaWAN API declaration for LoRa devices

2018-12-16 Thread Jian-Hong Pan
Add public LoRaWAN API for compatible LoRa device drivers. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC modules - Merge the lrw_operations: set_bw, set_mod, set_sf into set_dr - Use SPDX license identifiers V3

[PATCH v5 5/6] net: maclorawan: Implement maclorawan class module

2018-12-16 Thread Jian-Hong Pan
message types On the other side, it defines the basic interface and operation functions for compatible LoRa device drivers. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC modules - Modify for Big/Little-Endian - Use SPDX

[PATCH v5 3/6] net: maclorawan: Add maclorawan module declaration

2018-12-16 Thread Jian-Hong Pan
Add the maclorawan header file for common APIs in the module. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC modules - Use SPDX license identifiers V4: - Fix typo in comments - Fix by coding style report from scripts

[PATCH v5 4/6] net: maclorawan: Implement the crypto of maclorawan module

2018-12-16 Thread Jian-Hong Pan
Implement the crypto for encryption/decryption and message integrity code (MIC) according to LoRaWAN(TM) Specification Ver. 1.0.2. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC modules - Rename the lrwsec files to

[PATCH v5 6/6] net: lorawan: List LORAWAN in menuconfig

2018-12-16 Thread Jian-Hong Pan
List LORAWAN and MACLORAWAN in menuconfig and make they can be built. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC modules net/Kconfig | 2 ++ net/Makefile | 2 ++ 2 files changed, 4 insertions(+) diff --git a

[PATCH v5 1/6] net: lorawan: Add LoRaWAN socket module

2018-12-16 Thread Jian-Hong Pan
This patch adds a new address/protocol family for LoRaWAN network. It also implements the the functions and maps to Datagram socket for LoRaWAN unconfirmed data messages. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC

[PATCH v5 0/6] net: lorawan: Add LoRaWAN soft MAC module

2018-12-16 Thread Jian-Hong Pan
and complexity, for example regional parameters, confirmed data messages, join request/accept messages for Over-The-Air Activation, MAC commands ... will be added in the future. Jian-Hong Pan (6): net: lorawan: Add LoRaWAN socket module net: lorawan: Add LoRaWAN API declaration for LoRa devices

Re: [PATCH V4 5/6] net: maclorawan: Implement maclorawan class module

2018-12-09 Thread Jian-Hong Pan
gt;len - LRW_MIC_LEN) is the final new length as skb_trim()'s 2nd argument len. https://www.kernel.org/doc/html/latest/networking/kapi.html?highlight=skb_trim#c.skb_trim I found another bug which did not initialize rx_skb_list. So, lrw_parse_frame() may be passed a mystery skb. Please keep reviewing. That is appreciated. Thank you, Jian-Hong Pan

[PATCH V4 0/6] net: lorawan: Add LoRaWAN soft MAC module

2018-12-04 Thread Jian-Hong Pan
and complexity, for example regional parameters, confirmed data messages, join request/accept messages for Over-The-Air Activation, MAC commands ... will be added in the future. Jian-Hong Pan (6): net: lorawan: Add LoRaWAN socket module net: lorawan: Add LoRaWAN API declaration for LoRa devices

[PATCH V4 3/6] net: maclorawan: Add maclorawan module declaration

2018-12-04 Thread Jian-Hong Pan
Add the maclorawan header file for common APIs in the module. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC modules - Use SPDX license identifiers V4: - Fix typo in comments - Fix by coding style report from scripts

[PATCH V4 4/6] net: maclorawan: Implement the crypto of maclorawan module

2018-12-04 Thread Jian-Hong Pan
Implement the crypto for encryption/decryption and message integrity code (MIC) according to LoRaWAN(TM) Specification Ver. 1.0.2. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC modules - Rename the lrwsec files to

[PATCH V4 6/6] net: lorawan: List LORAWAN in menuconfig

2018-12-04 Thread Jian-Hong Pan
List LORAWAN and MACLORAWAN in menuconfig and make they can be built. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC modules net/Kconfig | 2 ++ net/Makefile | 2 ++ 2 files changed, 4 insertions(+) diff --git a

[PATCH V4 5/6] net: maclorawan: Implement maclorawan class module

2018-12-04 Thread Jian-Hong Pan
message types On the other side, it defines the basic interface and operation functions for compatible LoRa device drivers. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC modules - Modify for Big/Little-Endian - Use SPDX

[PATCH V4 1/6] net: lorawan: Add LoRaWAN socket module

2018-12-04 Thread Jian-Hong Pan
This patch adds a new address/protocol family for LoRaWAN network. It also implements the the functions and maps to Datagram socket for LoRaWAN unconfirmed data messages. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC

[PATCH V4 2/6] net: lorawan: Add LoRaWAN API declaration for LoRa devices

2018-12-04 Thread Jian-Hong Pan
Add public LoRaWAN API for compatible LoRa device drivers. Signed-off-by: Jian-Hong Pan --- V2: - Split the LoRaWAN class module patch in V1 into LoRaWAN socket and LoRaWAN Soft MAC modules - Merge the lrw_operations: set_bw, set_mod, set_sf into set_dr - Use SPDX license identifiers V3

Re: Experimental fix for MSI-X issue on r8169

2018-08-21 Thread Jian-Hong Pan
2018-08-22 5:19 GMT+08:00 Heiner Kallweit : > On 20.08.2018 05:47, Jian-Hong Pan wrote: >> 2018-08-20 4:34 GMT+08:00 Heiner Kallweit : >>> The three of you reported an MSI-X-related error when the system >>> resumes from suspend. This has been fixed for now by disablin

Re: Experimental fix for MSI-X issue on r8169

2018-08-19 Thread Jian-Hong Pan
es: [140] Virtual Channel Capabilities: [160] Device Serial Number 01-00-00-00-36-4c-e0-00 Capabilities: [170] Latency Tolerance Reporting Kernel driver in use: r8169 Kernel modules: r8169 Regards, Jian-Hong Pan > > --- > drivers/net/ethernet/realtek/r8169.c | 27 ++-

Re: [PATCH] r8169: don't use MSI-X on RTL8106e

2018-08-16 Thread Jian-Hong Pan
2018-08-17 2:59 GMT+08:00 Heiner Kallweit : >> From: Jian-Hong Pan >> >> Found the ethernet network on ASUS X441UAR doesn't come back on resume >> from suspend when using MSI-X. The chip is RTL8106e - version 39. >> > The patch itself looks good, just the

[RFC PATCH] net: Remove a confusing comment of macro SIOCDEVPRIVATE

2018-05-13 Thread Jian-Hong Pan
pletalk, usb/rtl8150 ..., etc. Therefore, I make this patch to remove the confusing comment. Signed-off-by: Jian-Hong Pan --- include/uapi/linux/sockios.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/uapi/linux/sockios.h b/include/uapi/linux/sockios.h index d393e9ed3964..c166f

Re: [RFC] net: Add new LoRaWAN subsystem

2018-05-12 Thread Jian-Hong Pan
patch > that adds these new address family definitions. Just pick the next one > available. There will be no pre-allocation of numbers until your work has > been accepted upstream. Meaning, that the number might change if other > address families get merged before yours. So you have to keep updating. glibc > will eventually follow the number assigned by the kernel. Thanks for your guidance. I will follow the steps. Thanks a lot, Jian-Hong Pan > Regards > > Marcel >

[RFC] net: Add new LoRaWAN subsystem

2018-05-08 Thread Jian-Hong Pan
mentioned "LoRaWAN is not implemented in Linux kernel now". Could or should we add the definitions into corresponding kernel header files now, if LoRaWAN will be accepted as a subsystem in Linux? Thanks, Jian-Hong Pan