Re: [PATCH rtw-next v3 2/2] wifi: rtw88: sdio: combine free TX page register reads

From: Luka Gejak

Date: Tue Nov 17 2026 - 00:44:00 EST


On November 16, 2026 9:57:40 PM GMT+01:00, Leonard Lausen
<leonard@xxxxxxxxx> wrote:
>TX capacity checks on non-8051 chips read three adjacent 32-bit registers
>in separate SDIO requests. Combine them into one 12-byte CMD53 read when
>the existing power/alignment check permits it, with the per-register
>fallback otherwise. Propagate read errors before checking queue capacity.
>
>Allocate a DMA-safe buffer at probe and copy its little-endian values
>into the caller's array before releasing the host. Holding the host
>through the read and copy serializes access to the shared buffer.
>
>Signed-off-by: Leonard Lausen <leonard@xxxxxxxxx>
>---

Reviewed-by: Luka Gejak <luka.gejak@xxxxxxxxx>

Best regards,
Luka Gejak