]> git.ipfire.org Git - thirdparty/linux.git/log
thirdparty/linux.git
2 months agousb: cdnsp: add support for eUSB2v2 port
Pawel Laszczak [Mon, 20 Apr 2026 10:23:57 +0000 (12:23 +0200)] 
usb: cdnsp: add support for eUSB2v2 port

The Cadence CDNSP controller optionally supports eUSB2 (embedded USB2)
port. While this port type operates logically like high-speed USB 2.0,
it utilizes a different physical layer signaling.

This patch:
- Extends the port detection logic to recognize the eUSB2 protocol.
- Tracks the eUSB2 port offset in the cdnsp_device structure.
- Ensures that eUSB2 ports are correctly handled during Link State
  transitions, specifically forcing L0 when LPM is capable, similar
  to standard USB 2.0 ports.

Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://patch.msgid.link/20260420-eusb2v2_upstream-v2-1-9883645e2ede@cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agousb: misc: onboard_usb_hub: Add Genesys Logic GL3590 hub support
Swati Agarwal [Fri, 3 Apr 2026 10:04:35 +0000 (15:34 +0530)] 
usb: misc: onboard_usb_hub: Add Genesys Logic GL3590 hub support

Add support for the GL3590 4 ports USB3.2 hub.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Swati Agarwal <swati.agarwal@oss.qualcomm.com>
Link: https://patch.msgid.link/20260403100435.3477729-3-swati.agarwal@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agodt-bindings: usb: Add Genesys Logic GL3590 hub
Swati Agarwal [Fri, 3 Apr 2026 10:04:34 +0000 (15:34 +0530)] 
dt-bindings: usb: Add Genesys Logic GL3590 hub

Add the binding for the USB3.2 Genesys Logic GL3590 hub.
GL3590 hub requires 1.2V and 3.3V supplies for operation.

Signed-off-by: Swati Agarwal <swati.agarwal@oss.qualcomm.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260403100435.3477729-2-swati.agarwal@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: add spaces arround |
Henrique Cazarim [Thu, 23 Apr 2026 20:12:12 +0000 (17:12 -0300)] 
staging: rtl8723bs: add spaces arround |

Fix checkpatch error "CHECK: spaces preferred around that '|'" in
rtw_ioctl_set.c:154.

Signed-off-by: Henrique Cazarim <hcazarim@yahoo.com>
Link: https://patch.msgid.link/20260423201212.77701-1-hcazarim@yahoo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove multiple blank lines in core/
Mohammed Rizwan Kaniyate [Sat, 25 Apr 2026 11:23:27 +0000 (16:53 +0530)] 
staging: rtl8723bs: remove multiple blank lines in core/

Remove multiple consecutive blank lines.
Issue reported by checkpatch.pl

Signed-off-by: Mohammed Rizwan Kaniyate <mrizwank004@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260425112327.215355-1-mrizwank004@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: os_dep: remove redundant else in rtw_dev_unload
Shyam Sunder Reddy Padira [Sat, 18 Apr 2026 17:09:06 +0000 (22:39 +0530)] 
staging: rtl8723bs: os_dep: remove redundant else in rtw_dev_unload

Remove the unnecessary else block following a break
statment to simplify the control flow and improve
code readability.

Signed-off-by: Shyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260418170908.16257-1-shyamsunderreddypadira@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: os_dep: remove unnecessary braces for single statement
Shyam Sunder Reddy Padira [Sat, 18 Apr 2026 17:19:02 +0000 (22:49 +0530)] 
staging: rtl8723bs: os_dep: remove unnecessary braces for single statement

Remove redundant braces around single statement blocks to follow
kernel coding style and improve readability.

Signed-off-by: Shyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260418171904.16479-1-shyamsunderreddypadira@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove unused offset in phase 2 _BlockWrite()
Robertus Diawan Chris [Mon, 20 Apr 2026 04:46:42 +0000 (11:46 +0700)] 
staging: rtl8723bs: remove unused offset in phase 2 _BlockWrite()

Commit c1314fe4d28f ("staging: rtl8723bs: remove all RT_TRACE logs
in hal/ and os_dep/") removed the unnecessary RT_TRACE logs in hal/
and os_dep/ files, but left the variable "offset" in the Phase 2
_BlockWrite() function unused, so delete it.

This is reported by Coverity Scan with CID 1408950 as UNUSED_VALUE.

Signed-off-by: Robertus Diawan Chris <robertusdchris@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260420044651.164450-1-robertusdchris@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: rename EnableInterrupt8723BSdio() to snake_case
Nikolay Kulikov [Sun, 19 Apr 2026 07:19:36 +0000 (10:19 +0300)] 
staging: rtl8723bs: rename EnableInterrupt8723BSdio() to snake_case

Rename function EnableInterrupt8723BSdio() to
rtw_sdio_enable_interrupt() and format its description to comply with
Linux kernel coding style.
Declare this function without 'extern' prototype in the .h file to fix
checkpatch.pl warning.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260419072034.19824-11-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: rename ReadAdapterInfo8723BS() to snake_case
Nikolay Kulikov [Sun, 19 Apr 2026 07:19:35 +0000 (10:19 +0300)] 
staging: rtl8723bs: rename ReadAdapterInfo8723BS() to snake_case

Rename function ReadAdapterInfo8723BS() to rtw_read_adapter_info() to
comply with Linux kernel coding style and fix checkpatch.pl warning.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260419072034.19824-10-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove wrapper rtw_hal_enable_interrupt()
Nikolay Kulikov [Sun, 19 Apr 2026 07:19:33 +0000 (10:19 +0300)] 
staging: rtl8723bs: remove wrapper rtw_hal_enable_interrupt()

Remove unnecessary wrapper and call EnableInterrupt8723BSdio() function
directly to simplify code.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260419072034.19824-8-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove wrapper rtw_hal_dm_init()
Nikolay Kulikov [Sun, 19 Apr 2026 07:19:32 +0000 (10:19 +0300)] 
staging: rtl8723bs: remove wrapper rtw_hal_dm_init()

Remove unnecessary wrapper and call rtl8723b_init_dm_priv() function
directly to simplify code.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260419072034.19824-7-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove wrapper rtw_hal_free_data()
Nikolay Kulikov [Sun, 19 Apr 2026 07:19:31 +0000 (10:19 +0300)] 
staging: rtl8723bs: remove wrapper rtw_hal_free_data()

Remove unnecessary wrapper and call rtw_hal_data_deinit() function
directly to simplify code.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260419072034.19824-6-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove wrapper rtw_hal_def_value_init()
Nikolay Kulikov [Sun, 19 Apr 2026 07:19:30 +0000 (10:19 +0300)] 
staging: rtl8723bs: remove wrapper rtw_hal_def_value_init()

Remove unnecessary wrapper and call rtl8723bs_init_default_value()
function directly to simplify code.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260419072034.19824-5-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove wrapper rtw_hal_read_chip_version()
Nikolay Kulikov [Sun, 19 Apr 2026 07:19:29 +0000 (10:19 +0300)] 
staging: rtl8723bs: remove wrapper rtw_hal_read_chip_version()

Remove rtw_hal_read_chip_version() function, as it's just a wrapper
that calls rtl8723b_read_chip_version() directly. Replace all its calls
to the rtl8723b_read_chip_version(). This will remove an extra level of
abstraction and simplify the code.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260419072034.19824-4-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove wrapper rtw_hal_read_chip_info()
Nikolay Kulikov [Sun, 19 Apr 2026 07:19:28 +0000 (10:19 +0300)] 
staging: rtl8723bs: remove wrapper rtw_hal_read_chip_info()

Remove the rtw_hal_read_chip_info() function, as it's just a wrapper
that calls ReadAdapterInfo8723BS() directly. Replace all its calls to
the ReadAdapterInfo8723BS() function. This will remove an extra level of
abstraction and simplify the code.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260419072034.19824-3-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove wrapper rtw_hal_chip_configure()
Nikolay Kulikov [Sun, 19 Apr 2026 07:19:27 +0000 (10:19 +0300)] 
staging: rtl8723bs: remove wrapper rtw_hal_chip_configure()

Remove the rtw_hal_chip_configure() function, as it's just a wrapper
that calls rtl8723bs_interface_configure() directly. Instead, call
rtl8723bs_interface_configure() from the appropriate places. This will
reduce code complexity and improve readability by removing unnecessary
abstraction.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260419072034.19824-2-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: fbtft: Use %pe format specifier for error pointers
Mahad Ibrahim [Sun, 12 Apr 2026 14:45:52 +0000 (10:45 -0400)] 
staging: fbtft: Use %pe format specifier for error pointers

The %pe format specifier resolves error pointers to their symbolic
representation. Previously %ld with PTR_ERR() was being used, %pe is a
better alternative.

Fixes the following coccinelle warnings reported by coccicheck:
WARNING: Consider using %pe to print PTR_ERR()

Testing: I do not own the hardware, therefore I could not perform
hardware testing. Compile tested only.

Signed-off-by: Mahad Ibrahim <mahad.ibrahim.dev@gmail.com>
Link: https://patch.msgid.link/20260412144552.18493-1-mahad.ibrahim.dev@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove dump_chip_info() function
Nikolay Kulikov [Tue, 21 Apr 2026 05:15:15 +0000 (08:15 +0300)] 
staging: rtl8723bs: remove dump_chip_info() function

The dump_chip_info() function formats chip version information into a
local 128-byte buffer using the scnprintf(). This buffer was previously
passed to the DBG_871X macro.
Commit 968b15adb0ea ("staging: rtl8723bs: remove all DBG_871X logs")
removed the macro, leaving the buffer formatted but never used or output
anywhere.

dump_chip_info() is now useless, so remove it and its call from
ReadChipVersion8723B().

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260421051551.1694-1-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: clean up memcpy() in rtw_check_bcn_info
Luka Gejak [Wed, 15 Apr 2026 08:56:38 +0000 (10:56 +0200)] 
staging: rtl8723bs: clean up memcpy() in rtw_check_bcn_info

Move the ssid memcpy() inside the ie null-check to avoid calling it
with a NULL-derived pointer (p + 2) when the ie is missing.

While the kernel handles 0-length memcpy() safely as a no-op, keeping
the call outside the check is confusing and poor practice. This
change improves code readability.

Signed-off-by: Luka Gejak <luka.gejak@linux.dev>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260415085638.6427-1-luka.gejak@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove unnecessary else after return in sdio_halinit.c
Josh Hesketh [Sun, 12 Apr 2026 15:06:33 +0000 (16:06 +0100)] 
staging: rtl8723bs: remove unnecessary else after return in sdio_halinit.c

Remove else branch following a conditional return statement

Signed-off-by: Josh Hesketh <josh.hesketh@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260412150633.12071-3-josh.hesketh@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: fix whitespace issues in sdio_halinit.c
Josh Hesketh [Sun, 12 Apr 2026 15:06:32 +0000 (16:06 +0100)] 
staging: rtl8723bs: fix whitespace issues in sdio_halinit.c

Remove spaces before tabs in comments and fix extra spaces to
address checkpatch warnings.

Signed-off-by: Josh Hesketh <josh.hesketh@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260412150633.12071-2-josh.hesketh@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove commented-out code
Aadarsh Mandal [Tue, 14 Apr 2026 06:35:34 +0000 (12:05 +0530)] 
staging: rtl8723bs: remove commented-out code

Remove code that is not used anywhere in driver.

Signed-off-by: Aadarsh Mandal <aadarshmandal9354@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260414063534.16697-1-aadarshmandal9354@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove unused struct rtw_regulatory
Kenet Jovan Sokoli [Tue, 14 Apr 2026 08:13:25 +0000 (10:13 +0200)] 
staging: rtl8723bs: remove unused struct rtw_regulatory

The struct rtw_regulatory is never used in the rtl8723bs driver.
Functions taking it as a parameter are always passed NULL and
perform no logic with it. Remove the dead code and the struct.

Suggested-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Kenet Jovan Sokoli <deep@crimson.net.eu.org>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260414081325.142313-1-deep@crimson.net.eu.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove unnecessary blank lines in rtl8723b_phycfg.c
Jinemon Tama [Fri, 10 Apr 2026 01:42:14 +0000 (10:42 +0900)] 
staging: rtl8723bs: remove unnecessary blank lines in rtl8723b_phycfg.c

Remove unnecessary blank lines throughout rtl8723b_phycfg.c to clean
up the code and adhere to the Linux kernel coding style.

Signed-off-by: Jinemon Tama <osjin83@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260410014214.10684-5-osjin83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: wrap long lines in rtl8723b_phycfg.c
Jinemon Tama [Fri, 10 Apr 2026 01:42:13 +0000 (10:42 +0900)] 
staging: rtl8723bs: wrap long lines in rtl8723b_phycfg.c

Wrap lines that exceed the 100-column limit in rtl8723b_phycfg.c to
resolve checkpatch.pl warnings. Arguments are aligned with the open
parenthesis where appropriate to maintain readability.

Signed-off-by: Jinemon Tama <osjin83@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260410014214.10684-4-osjin83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove space after type cast
Jinemon Tama [Fri, 10 Apr 2026 01:42:12 +0000 (10:42 +0900)] 
staging: rtl8723bs: remove space after type cast

Remove the unnecessary space between a type cast and the variable as
reported by checkpatch.pl. This improves code consistency and conforms
to the Linux kernel coding style.

Signed-off-by: Jinemon Tama <osjin83@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260410014214.10684-3-osjin83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: fix spacing around operators in rtl8723b_phycfg.c
Jinemon Tama [Fri, 10 Apr 2026 01:42:11 +0000 (10:42 +0900)] 
staging: rtl8723bs: fix spacing around operators in rtl8723b_phycfg.c

Fix various spacing issues reported by checkpatch.pl to improve code
readability and conform to the Linux kernel coding style.

These changes are purely cosmetic and do not alter the functional
behavior of the driver.

Signed-off-by: Jinemon Tama <osjin83@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260410014214.10684-2-osjin83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove duplicate rate checks in PHY_GetTxPowerIndexBase()
Prithvi Tambewagh [Thu, 9 Apr 2026 13:50:26 +0000 (19:20 +0530)] 
staging: rtl8723bs: remove duplicate rate checks in PHY_GetTxPowerIndexBase()

The code previously checked (Rate >= MGN_MCS0 && Rate <= MGN_MCS7)
condition twice - once for the (BandWidth == CHANNEL_WIDTH_20) check and
once for the (BandWidth == CHANNEL_WIDTH_40) check. Fix if statement
formatting to move that if check as an outer if check to improve code
formatting.

Signed-off-by: Prithvi Tambewagh <activprithvi@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260409135026.137904-6-activprithvi@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: use read_poll_timeout_atomic in _is_fw_read_cmd_down
Prithvi Tambewagh [Thu, 9 Apr 2026 13:50:25 +0000 (19:20 +0530)] 
staging: rtl8723bs: use read_poll_timeout_atomic in _is_fw_read_cmd_down

Replace the existing rtw_read8() and do-while loop mechanism with
read_poll_timeout_atomic() from <linux/iopoll.h>, in _is_fw_read_cmd_down()
which is a standard Linux macro, ensuring polling REG_HMETFR efficiently.

Signed-off-by: Prithvi Tambewagh <activprithvi@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260409135026.137904-5-activprithvi@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: simplify boolean return in IsFrameTypeCtrl()
Prithvi Tambewagh [Thu, 9 Apr 2026 13:50:24 +0000 (19:20 +0530)] 
staging: rtl8723bs: simplify boolean return in IsFrameTypeCtrl()

Replace the simple if-else statement which checked value of
GetFrameType(pframe), if equal to WIFI_CTRL_TYPE, function
IsFrameTypeCtrl() returned true else false, with a single return
statement returning true only if GetFrameType(pframe) == WIFI_CTRL_TYPE
otherwise returns false.

Signed-off-by: Prithvi Tambewagh <activprithvi@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260409135026.137904-4-activprithvi@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove empty if statement block
Prithvi Tambewagh [Thu, 9 Apr 2026 13:50:23 +0000 (19:20 +0530)] 
staging: rtl8723bs: remove empty if statement block

Remove empty if statement block for cleaning up code.

Signed-off-by: Prithvi Tambewagh <activprithvi@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260409135026.137904-3-activprithvi@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: move constant to right side of test in comparison
Prithvi Tambewagh [Thu, 9 Apr 2026 13:50:22 +0000 (19:20 +0530)] 
staging: rtl8723bs: move constant to right side of test in comparison

Move constant from the left side to the right side of the test in a
comparison, where ==, !=, <=, >=, <, > operators are used, fixing the
checkpatch warning: Comparisons should place the constant on the right
side of the test.

Signed-off-by: Prithvi Tambewagh <activprithvi@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260409135026.137904-2-activprithvi@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove redundant return in report_join_res()
Hungyu Lin [Sat, 4 Apr 2026 11:03:11 +0000 (11:03 +0000)] 
staging: rtl8723bs: remove redundant return in report_join_res()

The return statement at the end of this void function is redundant
and can be removed.

No functional change.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260404110311.10917-1-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove unused function pointers
Bera Yüzlü [Sat, 4 Apr 2026 12:49:48 +0000 (15:49 +0300)] 
staging: rtl8723bs: remove unused function pointers

Remove unused struct members from _io_ops. With removal of this members
some functions in sdio_ops.c became useless so they are also removed.

Signed-off-by: Bera Yüzlü <b9788213@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260404124947.52549-2-b9788213@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove redundant returns in rtw_mlme_ext.c
Hungyu Lin [Sat, 4 Apr 2026 11:48:02 +0000 (11:48 +0000)] 
staging: rtl8723bs: remove redundant returns in rtw_mlme_ext.c

Remove redundant return statements at the end of void functions
in rtw_mlme_ext.c.

No functional change.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260404114802.11242-1-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove unused BIT33..BIT36 macros
Nikolay Kulikov [Tue, 7 Apr 2026 14:33:31 +0000 (17:33 +0300)] 
staging: rtl8723bs: remove unused BIT33..BIT36 macros

These bit definitions are not used anywhere in the driver. Removing them
clears the header and eliminates dead code.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260407143622.9767-7-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove the rtw_warn_on() macro
Nikolay Kulikov [Tue, 7 Apr 2026 14:33:30 +0000 (17:33 +0300)] 
staging: rtl8723bs: remove the rtw_warn_on() macro

Remove the rtw_warn_on() macro, which simply calls WARN_ON(), and
replace all its uses with the standard WARN_ON().

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260407143622.9767-6-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove unused rtw_sprintf() macro
Nikolay Kulikov [Tue, 7 Apr 2026 14:33:29 +0000 (17:33 +0300)] 
staging: rtl8723bs: remove unused rtw_sprintf() macro

Remove the unused rtw_sprintf() macro, which is a wrapper around the
standard Kernel function snprintf().

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260407143622.9767-5-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove the header of non-existent _kfree() function
Nikolay Kulikov [Tue, 7 Apr 2026 14:33:28 +0000 (17:33 +0300)] 
staging: rtl8723bs: remove the header of non-existent _kfree() function

Remove the _kfree() function header, as it is not defined anywhere and
is not called anywhere.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260407143622.9767-4-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove unused _rtw_init_queue() function header
Nikolay Kulikov [Tue, 7 Apr 2026 14:33:27 +0000 (17:33 +0300)] 
staging: rtl8723bs: remove unused _rtw_init_queue() function header

The _rtw_init_queue() function header is declared in osdep_service.h,
but it is not defined anywhere and all the code using it is commented
out, so we can remove the header and the commented out code.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260407143622.9767-3-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove unnecessary rtw_bug_check() function
Nikolay Kulikov [Tue, 7 Apr 2026 14:33:26 +0000 (17:33 +0300)] 
staging: rtl8723bs: remove unnecessary rtw_bug_check() function

Remove the rtw_bug_check() function as it does nothing and always
returns 'true', making any checks on its result meaningless.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260407143622.9767-2-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove space before tab
Linus Probert [Fri, 3 Apr 2026 22:33:27 +0000 (00:33 +0200)] 
staging: rtl8723bs: remove space before tab

Removes a space before tab according to kernel code style.
Discovered using the checkpatch.pl tool.

Signed-off-by: Linus Probert <linus.probert@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260403223327.1831215-8-linus.probert@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove two unused function prototypes
Linus Probert [Fri, 3 Apr 2026 22:33:26 +0000 (00:33 +0200)] 
staging: rtl8723bs: remove two unused function prototypes

Removes two unused functions Rtw_Hal_ReadMACAddrFromFile and
Rtw_Hal_readPGDataFromConfigFile from rtw_efuse.h.
The functions only existed in this header. No implementation or calls
were present in the code.

Signed-off-by: Linus Probert <linus.probert@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260403223327.1831215-7-linus.probert@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: rename EFUSE_ShadowRead() to rtw_efuse_shadow_read()
Linus Probert [Fri, 3 Apr 2026 22:33:25 +0000 (00:33 +0200)] 
staging: rtl8723bs: rename EFUSE_ShadowRead() to rtw_efuse_shadow_read()

Renames EFUSE_ShadowRead to rtw_efuse_shadow_read to conform to kernel
code style.

Discovered using checkpatch.pl tool.

Signed-off-by: Linus Probert <linus.probert@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260403223327.1831215-6-linus.probert@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: EFUSE_ShadowMapUpdate -> rtw_efuse_shadow_map_update
Linus Probert [Fri, 3 Apr 2026 22:33:24 +0000 (00:33 +0200)] 
staging: rtl8723bs: EFUSE_ShadowMapUpdate -> rtw_efuse_shadow_map_update

Renames EFUSE_ShadowMapUpdate to rtw_efuse_shadow_map_update in order to
conform to kernel code style.

Discovered using checkpatch.pl tool.

Signed-off-by: Linus Probert <linus.probert@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260403223327.1831215-5-linus.probert@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: rename EFUSE_Read1Byte() to rtw_efuse_read_1_byte()
Linus Probert [Fri, 3 Apr 2026 22:33:23 +0000 (00:33 +0200)] 
staging: rtl8723bs: rename EFUSE_Read1Byte() to rtw_efuse_read_1_byte()

Renames EFUSE_Read1Byte to rtw_efuse_read_1_byte in order to conform to
kernel code style.

Discovered using checkpatch.pl tool.

Signed-off-by: Linus Probert <linus.probert@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260403223327.1831215-4-linus.probert@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: efuse_OneByteRead() -> rtw_efuse_one_byte_read()
Linus Probert [Fri, 3 Apr 2026 22:33:22 +0000 (00:33 +0200)] 
staging: rtl8723bs: efuse_OneByteRead() -> rtw_efuse_one_byte_read()

Renames efuse_OneByteRead to rtw_efuse_one_byte_read in order to conform
to kernel coding style.

Discovered using the checkpatch.pl tool.

Signed-off-by: Linus Probert <linus.probert@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260403223327.1831215-3-linus.probert@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: rename global function Efuse_CalculateWordCnts
Linus Probert [Fri, 3 Apr 2026 22:33:21 +0000 (00:33 +0200)] 
staging: rtl8723bs: rename global function Efuse_CalculateWordCnts

Renames the function Efuse_CalculateWordCnts to
rtw_efuse_calculate_word_counts in order to conform to linux code style.

Discovered with checkpatch.pl tool.

Signed-off-by: Linus Probert <linus.probert@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260403223327.1831215-2-linus.probert@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: convert _rtw_init_xmit_priv to return errno
Hungyu Lin [Wed, 8 Apr 2026 11:13:14 +0000 (11:13 +0000)] 
staging: rtl8723bs: convert _rtw_init_xmit_priv to return errno

Convert _rtw_init_xmit_priv() to return 0 on success and
negative error codes on failure. Update the caller to
check for non-zero return values.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260408111314.19329-7-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: convert rtw_os_xmit_resource_alloc to return errno
Hungyu Lin [Wed, 8 Apr 2026 11:13:13 +0000 (11:13 +0000)] 
staging: rtl8723bs: convert rtw_os_xmit_resource_alloc to return errno

Convert rtw_os_xmit_resource_alloc() to return 0 on success
and -ENOMEM on failure. Update the callers to check for
non-zero return values.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260408111314.19329-6-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: move rtw_os_xmit_resource_alloc to rtw_xmit.c
Hungyu Lin [Wed, 8 Apr 2026 11:13:12 +0000 (11:13 +0000)] 
staging: rtl8723bs: move rtw_os_xmit_resource_alloc to rtw_xmit.c

Move rtw_os_xmit_resource_alloc() into core/rtw_xmit.c and make
it static so the xmit init helpers live together.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260408111314.19329-5-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: convert rtw_alloc_hwxmits to return errno
Hungyu Lin [Wed, 8 Apr 2026 11:13:11 +0000 (11:13 +0000)] 
staging: rtl8723bs: convert rtw_alloc_hwxmits to return errno

Convert rtw_alloc_hwxmits() to return 0 on success and
-ENOMEM on failure. Update the caller to check for
non-zero return values.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260408111314.19329-4-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: make rtw_alloc_hwxmits static
Hungyu Lin [Wed, 8 Apr 2026 11:13:10 +0000 (11:13 +0000)] 
staging: rtl8723bs: make rtw_alloc_hwxmits static

The rtw_alloc_hwxmits() function is only used within this file.
Make it static to limit its scope.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260408111314.19329-3-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: simplify _rtw_init_xmit_priv control flow
Hungyu Lin [Wed, 8 Apr 2026 11:13:09 +0000 (11:13 +0000)] 
staging: rtl8723bs: simplify _rtw_init_xmit_priv control flow

Replace goto-based error handling in _rtw_init_xmit_priv()
with direct returns to simplify the control flow.

No functional changes intended.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260408111314.19329-2-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: fix logical continuation style
Paarth Mahadik [Sat, 4 Apr 2026 07:26:26 +0000 (12:56 +0530)] 
staging: rtl8723bs: fix logical continuation style

Logical continuation should be on the previous line,
move && to the end of the preceding line and align
the continuation with the opening parenthesis.

Signed-off-by: Paarth Mahadik <paarth.mahadik@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260404072626.134642-1-paarth.mahadik@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove unnecessary parentheses in os_intfs.c
Hungyu Lin [Thu, 2 Apr 2026 23:13:16 +0000 (23:13 +0000)] 
staging: rtl8723bs: remove unnecessary parentheses in os_intfs.c

Remove redundant parentheses around &padapter->xmitpriv and
&padapter->recvpriv.

The parentheses are unnecessary and removing them improves readability.
No functional change.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260402231316.4243-1-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove multiple blank lines in rtw_btcoex.c
Linus Probert [Fri, 3 Apr 2026 22:03:10 +0000 (00:03 +0200)] 
staging: rtl8723bs: remove multiple blank lines in rtw_btcoex.c

Removes multiple blank lines in rtw_btcoex.c.
Discovered and verified using checkpatch.pl

Signed-off-by: Linus Probert <linus.probert@gmail.com>
Link: https://patch.msgid.link/20260403220310.1824969-3-linus.probert@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: fix include guard comment in rtw_cmd.h
Xiyuan Guo [Fri, 3 Apr 2026 01:18:59 +0000 (21:18 -0400)] 
staging: rtl8723bs: fix include guard comment in rtw_cmd.h

The #endif comment at the bottom of the file mistakenly referred to
_CMD_H_ instead of the actual include guard macro __RTW_CMD_H_ defined
at the top of the file.

Signed-off-by: Xiyuan Guo <tommyguo039@gmail.com>
Link: https://patch.msgid.link/20260403011859.307665-1-tommyguo039@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: replace tabs used as separators with spaces
Nikolay Kulikov [Thu, 2 Apr 2026 15:45:51 +0000 (18:45 +0300)] 
staging: rtl8723bs: replace tabs used as separators with spaces

Replace tabs in variable initialization lines with spaces to make code
more consistent.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260402-cleanup_rtw_io-v1-2-874b9747de6b@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: remove dead code in rtw_io.c
Nikolay Kulikov [Thu, 2 Apr 2026 15:45:50 +0000 (18:45 +0300)] 
staging: rtl8723bs: remove dead code in rtw_io.c

Remove the commented variable declarations as they are not used
anywhere.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260402-cleanup_rtw_io-v1-1-874b9747de6b@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: Rename pHT_info_ie to ht_info_ie
Ethan Tidmore [Wed, 1 Apr 2026 02:13:57 +0000 (21:13 -0500)] 
staging: rtl8723bs: Rename pHT_info_ie to ht_info_ie

Convert variable pHT_info_ie to ht_info_ie to comply with snake_case and
to remove Hungarian notation.

Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260401021357.1176600-3-ethantidmore06@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: rtl8723bs: Remove dead code
Ethan Tidmore [Wed, 1 Apr 2026 02:13:56 +0000 (21:13 -0500)] 
staging: rtl8723bs: Remove dead code

Remove commented out code and remove if statement with no body but a
line of commented out code.

Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260401021357.1176600-2-ethantidmore06@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: greybus: fix alignment to match open parenthesis
Kosugi Souta [Sat, 4 Apr 2026 00:59:38 +0000 (09:59 +0900)] 
staging: greybus: fix alignment to match open parenthesis

Fix the checkpatch.pl check "Alignment should match open parenthesis"
by adjusting the indentation in authenticate.c.

Signed-off-by: Kosugi Souta <k.souta0926@gmail.com>
Link: https://patch.msgid.link/20260404005939.116701-3-k.souta0926@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: sm750fb: remove unused functions
Kenet Jovan Sokoli [Sat, 18 Apr 2026 14:36:20 +0000 (16:36 +0200)] 
staging: sm750fb: remove unused functions

The functions sm750_enable_i2c() and sm750_hw_cursor_set_data2() are
defined and declared but never used. Following the driver's TODO list
to remove unused code, this patch deletes these dead functions.

Verified by compilation and cppcheck.

Signed-off-by: Kenet Jovan Sokoli <deep@crimson.net.eu.org>
Link: https://patch.msgid.link/20260418143620.845355-1-deep@crimson.net.eu.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: sm750fb: fix off-by-one in lynxfb_ops_setcolreg
Ahmet Sezgin Duran [Wed, 8 Apr 2026 18:12:10 +0000 (18:12 +0000)] 
staging: sm750fb: fix off-by-one in lynxfb_ops_setcolreg

The bounds check used regno > 256 instead of regno >= 256,
allowing regno == 256. Valid indices are 0–255, resulting
in an out-of-bounds write.

Also remove the regno < 256 check in the truecolor path,
as it is always true with the corrected guard.

Signed-off-by: Ahmet Sezgin Duran <ahmet@sezginduran.net>
Link: https://patch.msgid.link/20260408181210.9672-1-ahmet@sezginduran.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: sm750fb: Rename sm750_pnltype enum values to upper case
Shubham Chakraborty [Tue, 7 Apr 2026 07:48:03 +0000 (13:18 +0530)] 
staging: sm750fb: Rename sm750_pnltype enum values to upper case

Rename the sm750_pnltype enum values from mixed/CamelCase style to
upper-case names to follow kernel naming conventions for constants.

Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
Link: https://patch.msgid.link/20260407074805.14505-2-chakrabortyshubham66@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: sm750fb: constify fix_id array
Hungyu Lin [Wed, 1 Apr 2026 11:50:24 +0000 (11:50 +0000)] 
staging: sm750fb: constify fix_id array

Add the missing 'const' qualifier to the static fix_id array to ensure
the pointer array itself is immutable.

Originally:
    static const char *fix_id[2];
The strings are constant, but the pointer array itself is writable.

With the change:
    static const char * const fix_id[2];
Both the strings and the pointer array are immutable, allowing the
compiler to treat the object as read-only.

Verified by inspecting the generated object file with 'nm':

    00000000000002b8 0000000000000010 r fix_id.3

The 'r' flag indicates the symbol is placed in a read-only section.

This does not change runtime behavior as fix_id is never modified.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Link: https://patch.msgid.link/20260401115024.89-1-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: most: video: remove redundant cleanup in comp_exit()
Gabriel Rondon [Sun, 12 Apr 2026 22:23:18 +0000 (23:23 +0100)] 
staging: most: video: remove redundant cleanup in comp_exit()

most_deregister_component() already calls disconnect_channel() for
every linked channel via bus_for_each_dev() in core.c, which invokes
comp_disconnect_channel() to remove each entry from the video_devices
list and tear down the V4L2 device.

The manual cleanup loop in comp_exit() duplicates this work and is
guarded by a stale comment claiming that "mostcore currently doesn't
call disconnect_channel() for linked channels" — but the core has
since been fixed to do exactly that.

Remove the redundant manual cleanup loop, the outdated comment, and
the BUG_ON() assertion that checked for a condition that can no longer
occur.

Signed-off-by: Gabriel Rondon <grondon@gmail.com>
Link: https://patch.msgid.link/20260412222318.65045-1-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: most: net: remove filename from top-of-file comment
Shyam Sunder Reddy Padira [Sat, 11 Apr 2026 09:51:36 +0000 (15:21 +0530)] 
staging: most: net: remove filename from top-of-file comment

Remove the filename reference from the
top-of-file comment block, to resolve a
checkpatch.pl warning. The filename comment is
not useful and can become outdated if the file is
renamed.

No functional changes.

Signed-off-by: Shyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com>
Link: https://patch.msgid.link/20260411095255.4890-1-shyamsunderreddypadira@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: most/net: remove dead code from skb_to_mamac() and skb_to_mep()
Hadi Chokr [Wed, 1 Apr 2026 12:57:11 +0000 (14:57 +0200)] 
staging: most/net: remove dead code from skb_to_mamac() and skb_to_mep()

The overflow checks in skb_to_mamac() and skb_to_mep() are always false:

  mdp_len = (skb->len - ETH_HLEN) + MDP_HDR_LEN = skb->len + 2
  mep_len = skb->len + MEP_HDR_LEN = skb->len + 8

Remove these checks to clean up the code.

Signed-off-by: Hadi Chokr <hadichokr@icloud.com>
Link: https://patch.msgid.link/20260401125711.80822-1-hadichokr@icloud.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: most: dim2: remove unnecessary NULL check in try_start_dim_transfer()
Gabriel Rondon [Wed, 1 Apr 2026 10:10:38 +0000 (11:10 +0100)] 
staging: most: dim2: remove unnecessary NULL check in try_start_dim_transfer()

Remove the !hdm_ch check. Although hdm_ch is a function parameter,
it is already dereferenced on the preceding line to initialize
head (head = &hdm_ch->pending_list), so a NULL check after that
point is dead code.

Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/all/acwjEHyEYg0V3OyC@stanley.mountain
Signed-off-by: Gabriel Rondon <grondon@gmail.com>
Link: https://patch.msgid.link/20260401101038.24304-1-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agostaging: most: dim2: remove unnecessary NULL check in service_done_flag()
Gabriel Rondon [Tue, 31 Mar 2026 16:44:42 +0000 (17:44 +0100)] 
staging: most: dim2: remove unnecessary NULL check in service_done_flag()

Remove the !hdm_ch check. hdm_ch is derived from dev->hch + ch_idx
(pointer arithmetic on a struct member), so it can never be NULL.
Keep only the !hdm_ch->is_initialized check.

Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/all/acuoL4DRi0pmsQY1@stanley.mountain
Signed-off-by: Gabriel Rondon <grondon@gmail.com>
Link: https://patch.msgid.link/20260331164443.47682-1-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 months agodocs: isofs: replace dead ECMA-119 FTP link
Ziran Zhang [Sat, 25 Apr 2026 14:29:43 +0000 (22:29 +0800)] 
docs: isofs: replace dead ECMA-119 FTP link

The original link is no longer valid. Replace it with the official
PDF of the 2nd edition. The new link points to the exact 2nd edition
that the existing comment in isofs.rst refers to.

Signed-off-by: Ziran Zhang <zhangcoder@yeah.net>
Link: https://patch.msgid.link/20260425142943.6809-1-zhangcoder@yeah.net
Signed-off-by: Jan Kara <jack@suse.cz>
2 months agowifi: mac80211: drop stray 'static' from fast-RX rx_result
Catherine [Fri, 24 Apr 2026 13:14:36 +0000 (21:14 +0800)] 
wifi: mac80211: drop stray 'static' from fast-RX rx_result

ieee80211_invoke_fast_rx() is documented as safe for parallel RX, but
its per-invocation rx_result is declared static. Concurrent callers then
share one instance and can overwrite each other's result between
ieee80211_rx_mesh_data() and the switch on res.

That can make a packet that was queued or consumed by
ieee80211_rx_mesh_data() fall through into ieee80211_rx_8023(), or make
a packet that should continue return as queued.

Make res an automatic variable so each invocation keeps its own result.

Fixes: 3468e1e0c639 ("wifi: mac80211: add mesh fast-rx support")
Cc: stable@vger.kernel.org
Signed-off-by: Catherine <enderaoelyther@gmail.com>
Link: https://patch.msgid.link/20260424131435.83212-2-enderaoelyther@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2 months agowifi: mac80211: check ieee80211_rx_data_set_link return in pubsta MLO path
Michael Bommarito [Wed, 22 Apr 2026 00:06:51 +0000 (20:06 -0400)] 
wifi: mac80211: check ieee80211_rx_data_set_link return in pubsta MLO path

__ieee80211_rx_handle_packet() resolves the link via
ieee80211_rx_data_set_link() on the pubsta->mlo path but ignores the
helper's return value.  Inside the helper,
  rx->link = rcu_dereference(rx->sdata->link[link_id]);
can leave rx->link NULL if link_id references a slot already cleared
by ieee80211_vif_set_links() during station-initiated ML
reconfiguration (see mlme.c's ieee80211_ml_reconfiguration(), which
invalidates sdata->link[] before the matching
ieee80211_sta_remove_link() loop walks the link-sta hash).  RX dispatch
still resolves a link_sta from the hash and then drops into
ieee80211_prepare_and_rx_handle(), which dereferences link->conf->addr.

Every other user site of ieee80211_rx_data_set_link() checks the return
and bails on failure; only this branch did not.  Mirror the safe
pattern.

Fixes: e66b7920aa5a ("wifi: mac80211: fix initialization of rx->link and rx->link_sta")
Assisted-by: Claude:claude-opus-4-7
Signed-off-by: Michael Bommarito <michael.bommarito@gmail.com>
Link: https://patch.msgid.link/20260422000651.4184602-1-michael.bommarito@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2 months agowifi: nl80211: require admin perm on SET_PMK / DEL_PMK
Michael Bommarito [Tue, 21 Apr 2026 22:45:52 +0000 (18:45 -0400)] 
wifi: nl80211: require admin perm on SET_PMK / DEL_PMK

NL80211_CMD_SET_PMK and NL80211_CMD_DEL_PMK manage the offloaded
4-way-handshake PMK state used by drivers advertising
NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X.  The only in-tree
driver that wires up both ->set_pmk / ->del_pmk and advertises
the feature today is brcmfmac, so the practical reach of this
patch is narrow.

Both ops were introduced without a .flags gate, so the generic
netlink layer dispatches them to an unprivileged caller instead
of rejecting with -EPERM at the permission check.  Every other
connection-state op in the adjacent block (CONNECT, ASSOCIATE,
AUTHENTICATE, SET_KEY, ...) carries GENL_UNS_ADMIN_PERM; SET_PMK
/ DEL_PMK were introduced without the flag in 2017 and left
unchanged by later refactors.  Johannes checked the original
Intel submission history and confirmed there is no admin check
in any prior revision either, so this seems likely to be a
simple oversight rather than an intentional carve-out.

Require GENL_UNS_ADMIN_PERM so the genl layer performs the same
capable(CAP_NET_ADMIN) check as its siblings.  wpa_supplicant
already needs CAP_NET_ADMIN for every other nl80211 op it issues,
so supplicant operation is unaffected.  The worst case the missing
gate enables today is an unprivileged local process on a
multi-user system invalidating the offloaded PMK state of another
user's 4-way-handshake session, forcing a full EAP re-auth on the
next reconnect.

Verified in UML: an unprivileged probe (uid=1000) sees
SET_MULTICAST_TO_UNICAST (sibling op with GENL_UNS_ADMIN_PERM)
return -EPERM on both pre- and post-fix kernels, while SET_PMK /
DEL_PMK return -ENODEV from nl80211_pre_doit()'s wdev lookup pre-
fix (proving dispatch crossed the genl permission check) and
-EPERM post-fix (rejected at the genl layer as intended).

Suggested-by: Johannes Berg <johannes@sipsolutions.net>
Fixes: 3a00df5707b6 ("cfg80211: support 4-way handshake offloading for 802.1X")
Assisted-by: Claude:claude-opus-4-7
Signed-off-by: Michael Bommarito <michael.bommarito@gmail.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom>
Link: https://patch.msgid.link/20260421224552.4044147-1-michael.bommarito@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2 months agowifi: libertas: fix integer underflow in process_cmdrequest()
Amir Mohammad Jahangirzad [Sat, 18 Apr 2026 00:42:47 +0000 (04:12 +0330)] 
wifi: libertas: fix integer underflow in process_cmdrequest()

The existing validation only checks if recvlength exceeds
LBS_CMD_BUFFER_SIZE, but doesn't check the lower bound. When a
USB device sends a response shorter than MESSAGE_HEADER_LEN, the
subtraction (recvlength - MESSAGE_HEADER_LEN) wraps to a huge
value, causing memcpy to corrupt the heap.
Add the same lower bound check that libertas_tf already has.

Signed-off-by: Amir Mohammad Jahangirzad <a.jahangirzad@gmail.com>
Link: https://patch.msgid.link/20260418004247.368944-1-a.jahangirzad@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2 months agowifi: b43legacy: enforce bounds check on firmware key index in RX path
Tristan Madani [Fri, 17 Apr 2026 11:11:45 +0000 (11:11 +0000)] 
wifi: b43legacy: enforce bounds check on firmware key index in RX path

Same fix as b43: the firmware-controlled key index in b43legacy_rx()
can exceed dev->max_nr_keys. The existing B43legacy_WARN_ON is
non-enforcing in production builds, allowing an out-of-bounds read of
dev->key[].

Make the check enforcing by dropping the frame for invalid indices.

Fixes: 75388acd0cd8 ("[B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices")
Cc: stable@vger.kernel.org
Signed-off-by: Tristan Madani <tristan@talencesecurity.com>
Link: https://patch.msgid.link/20260417111145.2694196-2-tristmd@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2 months agowifi: b43: enforce bounds check on firmware key index in b43_rx()
Tristan Madani [Fri, 17 Apr 2026 11:11:44 +0000 (11:11 +0000)] 
wifi: b43: enforce bounds check on firmware key index in b43_rx()

The firmware-controlled key index in b43_rx() can exceed the dev->key[]
array size (58 entries). The existing B43_WARN_ON is non-enforcing in
production builds, allowing an out-of-bounds read.

Make the B43_WARN_ON check enforcing by dropping the frame when the
firmware returns an invalid key index.

Suggested-by: Jonas Gorski <jonas.gorski@gmail.com>
Acked-by: Michael Büsch <m@bues.ch>
Fixes: e4d6b7951812 ("[B43]: add mac80211-based driver for modern BCM43xx devices")
Cc: stable@vger.kernel.org
Signed-off-by: Tristan Madani <tristan@talencesecurity.com>
Link: https://patch.msgid.link/20260417111145.2694196-1-tristmd@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2 months agowifi: brcmfmac: Fix potential use-after-free issue when stopping watchdog task
Marek Szyprowski [Thu, 16 Apr 2026 09:33:39 +0000 (11:33 +0200)] 
wifi: brcmfmac: Fix potential use-after-free issue when stopping watchdog task

Watchdog task might end between send_sig() and kthread_stop() calls, what
results in the use-after-free issue. Fix this by increasing watchdog task
reference count before calling send_sig() and dropping it by switching to
kthread_stop_put().

Cc: stable@vger.kernel.org
Fixes: 373c83a801f1 ("brcmfmac: stop watchdog before detach and free everything")
Fixes: a9ffda88be74 ("brcm80211: fmac: abstract bus_stop interface function pointer")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://patch.msgid.link/20260416093339.2066829-1-m.szyprowski@samsung.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2 months agoi2c: designware: Use PM_RUNTIME_ACQUIRE()/PM_RUNTIME_ACQUIRE_ERR()
Xueqin Luo [Fri, 17 Apr 2026 07:54:51 +0000 (15:54 +0800)] 
i2c: designware: Use PM_RUNTIME_ACQUIRE()/PM_RUNTIME_ACQUIRE_ERR()

Use new PM_RUNTIME_ACQUIRE() and PM_RUNTIME_ACQUIRE_ERR() wrapper macros
to make the code look more straightforward.

No intentional functional impact.

Signed-off-by: Xueqin Luo <luoxueqin@kylinos.cn>
Acked-by: Mika Westerberg <mika.westerberg@linx.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260417075451.5435-1-luoxueqin@kylinos.cn
2 months agoi2c: ls2x-v2: Add driver for Loongson-2K0300 I2C controller
Binbin Zhou [Tue, 14 Apr 2026 06:25:11 +0000 (14:25 +0800)] 
i2c: ls2x-v2: Add driver for Loongson-2K0300 I2C controller

This I2C module is integrated into the Loongson-2K0300 SoCs.

It provides multi-master functionality and controls all I2C bus-specific
timing, protocols, arbitration, and timing. It supports both standard
and fast modes.

Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/c5a6c4e5ea675410ff1b946b988c280c22bf3dc4.1776135865.git.zhoubinbin@loongson.cn
2 months agodt-bindings: i2c: loongson,ls2x: Add ls2k0300-i2c compatible
Binbin Zhou [Tue, 14 Apr 2026 06:25:10 +0000 (14:25 +0800)] 
dt-bindings: i2c: loongson,ls2x: Add ls2k0300-i2c compatible

Add "loongson,ls2k0300-i2c" dedicated compatible for representing I2C of
Loongson-2K0300 chip, because its HW integration is quiet different from
others.

Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/494e63efe2d129931402308c7c4d461454a30989.1776135865.git.zhoubinbin@loongson.cn
2 months agoarm64: dts: rockchip: fix Ethernet PHY not found on PX30 Ringneck
Quentin Schulz [Tue, 21 Apr 2026 09:45:06 +0000 (11:45 +0200)] 
arm64: dts: rockchip: fix Ethernet PHY not found on PX30 Ringneck

When not passing the PHY ID with an ethernet-phy-idX.Y compatible
property, the MDIO bus will attempt to auto-detect the PHY by reading
its registers and then probing the appropriate driver. For this to work,
the PHY needs to be in a working state.

Unfortunately, the net subsystem doesn't control the PHY reset GPIO when
attempting to auto-detect the PHY. This means the PHY needs to be in a
working state when entering the Linux kernel. This historically has been
the case for this device, but only because the bootloader was taking
care of initializing the Ethernet controller even when not using it.
We're attempting to support the removal of the network stack in the
bootloader, which means the Linux kernel will be entered with the PHY
still in reset and now Ethernet doesn't work anymore.

The devices in the field only ever had a TI DP83825, so let's simply
bypass the auto-detection mechanism entirely by passing the appropriate
PHY IDs via the compatible.

Note that this is only an issue since commit e463625af7f9 ("arm64: dts:
rockchip: move reset to dedicated eth-phy node on ringneck") as before
that commit the reset was done by the MAC controller before starting the
MDIO auto-detection mechanism, via the snps,reset-* properties.

Cc: stable@vger.kernel.org
Fixes: e463625af7f9 ("arm64: dts: rockchip: move reset to dedicated eth-phy node on ringneck")
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Link: https://patch.msgid.link/20260421-px30-eth-phy-v2-2-68c375b120fd@cherry.de
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2 months agoarm64: dts: rockchip: fix Ethernet PHY not found on PX30 Cobra
Quentin Schulz [Tue, 21 Apr 2026 09:45:05 +0000 (11:45 +0200)] 
arm64: dts: rockchip: fix Ethernet PHY not found on PX30 Cobra

When not passing the PHY ID with an ethernet-phy-idX.Y compatible
property, the MDIO bus will attempt to auto-detect the PHY by reading
its registers and then probing the appropriate driver. For this to work,
the PHY needs to be in a working state.

Unfortunately, the net subsystem doesn't control the PHY reset GPIO when
attempting to auto-detect the PHY. This means the PHY needs to be in a
working state when entering the Linux kernel. This historically has been
the case for this device, but only because the bootloader was taking
care of initializing the Ethernet controller even when not using it.
We're attempting to support the removal of the network stack in the
bootloader, which means the Linux kernel will be entered with the PHY
still in reset and now Ethernet doesn't work anymore.

The devices in the field only ever had a TI DP83825, so let's simply
bypass the auto-detection mechanism entirely by passing the appropriate
PHY IDs via the compatible.

Fixes: bb510ddc9d3e ("arm64: dts: rockchip: add px30-cobra base dtsi and board variants")
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Link: https://patch.msgid.link/20260421-px30-eth-phy-v2-1-68c375b120fd@cherry.de
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2 months agoarm64: dts: rockchip: Update vdec register blocks order on RK3588
Cristian Ciocaltea [Wed, 4 Mar 2026 21:00:43 +0000 (23:00 +0200)] 
arm64: dts: rockchip: Update vdec register blocks order on RK3588

With the introduction of the RK3588 SoC, three register blocks have been
provided for the video decoder unit instead of just one, which are
further referenced in the vendor's datasheet by 'link table', 'function'
and 'cache'.  The former is present at the top of the listing, starting
at video decoder unit base address, but the binding got this wrong
initially, i.e. the 'function' block got listed before the 'link' one.

Since the video decoder support for the aforementioned SoC in mainline
driver and devicetrees hasn't been released yet (just landed in
v7.0-rc1), address the problem by providing the register blocks for
vdec0 & vdec1 nodes using the 'link,function,cache' listing, which
ensures the unit address points to the primary register range.

This aligns with a similar fix for RK3576, where DTC also complained
about the bus address format.

Fixes: f61731bd6062 ("arm64: dts: rockchip: Add the vdpu381 Video Decoders on RK3588")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://patch.msgid.link/20260304-vdec-reg-order-rk3576-v5-4-7006fad42c3a@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2 months agoarm64: dts: rockchip: Fix vdec register blocks order on RK3576
Cristian Ciocaltea [Wed, 4 Mar 2026 21:00:42 +0000 (23:00 +0200)] 
arm64: dts: rockchip: Fix vdec register blocks order on RK3576

When building device trees for the RK3576 based boards, DTC shows the
following complaint:

  rk3576.dtsi:1282.30-1304.5: Warning (simple_bus_reg): /soc/video-codec@27b00000: simple-bus unit address format error, expected "27b00100"

Since the video decoder support for the aforementioned SoC in mainline
driver and devicetrees hasn't been released yet (just landed in
v7.0-rc1), fix the issue by providing the register blocks using the
'link,function,cache' listing, which follows the address-based order as
shown in the vendor's datasheet and, implicitly, ensures the unit
address points to the primary register range.

Fixes: da0de806d8b4 ("arm64: dts: rockchip: Add the vdpu383 Video Decoder on rk3576")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://patch.msgid.link/20260304-vdec-reg-order-rk3576-v5-3-7006fad42c3a@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2 months agodocs: xforms_lists: allow __maybe_unused in func parameters
Randy Dunlap [Sat, 11 Apr 2026 23:35:26 +0000 (16:35 -0700)] 
docs: xforms_lists: allow __maybe_unused in func parameters

Bart has a patch (not yet merged) that causes kernel-doc warnings:

WARNING: ./include/linux/highmem.h:235 function parameter '__maybe_unused' not described in 'clear_user_pages'
Documentation/mm/highmem:211: ./include/linux/highmem.h:222: WARNING: Error in declarator or parameters

Handle this by adding "__maybe_unused" to the list of known function
parameter modifiers.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202604120025.jtlnpWff-lkp@intel.com/
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260411233526.3909303-1-rdunlap@infradead.org>

2 months agodocs: fix typos in kernel documentation
Hyeonjin Kim [Wed, 15 Apr 2026 00:12:04 +0000 (09:12 +0900)] 
docs: fix typos in kernel documentation

reinitalizes => reinitializes
unpriviledged => unprivileged
sub-struture => sub-structure

Signed-off-by: Hyeonjin Kim <fruitworld.planet@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260415001204.6428-1-fruitworld.planet@gmail.com>

2 months agowifi: mac80211: skip ieee80211_verify_sta_ht_mcs_support check in non-strict mode
Rio Liu [Wed, 15 Apr 2026 16:57:13 +0000 (16:57 +0000)] 
wifi: mac80211: skip ieee80211_verify_sta_ht_mcs_support check in non-strict mode

Some Xfinity XB8 firmware advertises >1 spatial stream MCS indexes in
their basic HT-MCS set. On cards with lower spatial streams, the check
would fail, and we'd be stuck with no HT when in fact work fine with its
own supported rate. This change makes it so the check is only performed
in strict mode.

Fixes: 574faa0e936d ("wifi: mac80211: add HT and VHT basic set verification")
Signed-off-by: Rio Liu <rio@r26.me>
Link: https://patch.msgid.link/99Mv9QEceyPrQhSP52MtAVmz0_kWJmzqotJjD9YW6LGLqk-AZloAueUyHCURilFkuqOh6Ecv8i2KKdSE1ujP3AnbU5QEouVisT1w_V3xdfc=@r26.me
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2 months agodocs: staging: fix various typos and grammar issues
Zhang Xiaolei [Thu, 16 Apr 2026 10:58:53 +0000 (18:58 +0800)] 
docs: staging: fix various typos and grammar issues

Fix a few typographical and grammatical issues across several
staging documentation files to improve readability:
- crc32.rst: replace "decide in" with "decide on"
- lzo.rst: replace "independent on" with "independent of"
- remoteproc.rst: fix word order in dependent clause
- static-keys.rst: add hyphen to "low-level"

Signed-off-by: Zhang Xiaolei <zxl434815272@gmail.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260416105854.788-1-zxl434815272@gmail.com>

2 months agoDocumentation/binfmt-misc.rst: Specify aux vector for "O" flag description
Charlie Jenkins [Sat, 18 Apr 2026 21:08:49 +0000 (17:08 -0400)] 
Documentation/binfmt-misc.rst: Specify aux vector for "O" flag description

Instead of replacing the file path in the argument vector, the file
descriptor is passed as AT_EXECFD in the auxilary vector. This appears
to have been the case at least since the git port, update the
documentation to reflect this.

Signed-off-by: Charlie Jenkins <thecharlesjenkins@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260418-binfmt_misc_doc_update-v1-1-c2e9601ab868@gmail.com>

2 months agoDocumentation: fix spelling mistake "stucture" -> "structure"
Ninad Naik [Sun, 19 Apr 2026 18:45:27 +0000 (00:15 +0530)] 
Documentation: fix spelling mistake "stucture" -> "structure"

Fixing a spelling mistake in Documentation/trace/histogram-design.rst.

Signed-off-by: Ninad Naik <ninadnaik07@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260419184527.779828-1-ninadnaik07@gmail.com>

2 months agoDocumentation: proc: fix section numbering in table of contents
Baolin Liu [Fri, 24 Apr 2026 09:06:54 +0000 (17:06 +0800)] 
Documentation: proc: fix section numbering in table of contents

Commit e24ccaaf7ec4 ("block: remove last remaining traces of IDE
documentation") removed the IDE section but left its table of
contents entry behind.
Fix the stale entry and renumber the following sections.

Fixes: e24ccaaf7ec4 ("block: remove last remaining traces of IDE documentation")
Signed-off-by: Baolin Liu <liubaolin@kylinos.cn>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260424090654.19229-1-liubaolin12138@163.com>

2 months agoclk: renesas: r8a7740: Add ZT/ZTR trace clocks
Marek Vasut [Wed, 22 Apr 2026 23:36:28 +0000 (01:36 +0200)] 
clk: renesas: r8a7740: Add ZT/ZTR trace clocks

Implement support for the ZT trace bus and ZTR trace clocks on R-Mobile
A1.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260422233744.149872-3-marek.vasut+renesas@mailbox.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
2 months agoMerge tag 'renesas-r8a7740-dt-binding-defs-tag1' into renesas-clk-for-v7.2
Geert Uytterhoeven [Mon, 27 Apr 2026 09:51:11 +0000 (11:51 +0200)] 
Merge tag 'renesas-r8a7740-dt-binding-defs-tag1' into renesas-clk-for-v7.2

Renesas R-Mobile A1 Coresight Clock DT Binding Definitions

ZT trace bus and ZTR trace clock DT binding definitions for the Renesas
R-Mobile A1 (R8A7740) SoC, shared by driver and DT source files.

2 months agodt-bindings: clock: renesas,cpg-clocks: Document ZT/ZTR trace clock on R-Mobile A1
Marek Vasut [Wed, 22 Apr 2026 23:36:27 +0000 (01:36 +0200)] 
dt-bindings: clock: renesas,cpg-clocks: Document ZT/ZTR trace clock on R-Mobile A1

Document the ZT trace bus and ZTR trace clocks on R-Mobile A1.  These
clocks supply the coresight tracing modules, PTM, TPIU, ETB and
replicator.  Without these clocks, coresight tracing can not be
operated.  While this does change the ABI, it does so by extending the
existing clock-output-names, therefore if old software is used with new
DT, the coresight tracing parts will likely fail to probe, otherwise if
new software is used with an old DT, there is no impact.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260422233744.149872-2-marek.vasut+renesas@mailbox.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
2 months agoclk: renesas: r9a09g077: Add MTU3 module clock
Cosmin Tanislav [Fri, 10 Apr 2026 16:35:21 +0000 (19:35 +0300)] 
clk: renesas: r9a09g077: Add MTU3 module clock

The Renesas RZ/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs have a MTU3
block connected to the PCLKH and with a module clock controlled by
register 0x308, bit 0.

Add support for the module clock.

Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260410163530.383818-2-cosmin-gabriel.tanislav.xa@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
2 months agoclk: renesas: r9a08g046: Add I2C clocks and resets
Biju Das [Mon, 30 Mar 2026 13:23:42 +0000 (14:23 +0100)] 
clk: renesas: r9a08g046: Add I2C clocks and resets

Add I2C{0..3} clock and reset entries.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260330132349.149391-6-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>