Linux wireless drivers development
 help / color / mirror / Atom feed
From: Bitterblue Smith <rtl8821cerfe2@gmail.com>
To: Alex Novak <neur-alx@agentmail.to>, pkshih@realtek.com
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFC PATCH rtw-next 0/4] wifi: rtw88: add RTL8189ES and SmartChip S9082C SDIO support
Date: Wed, 2 Dec 2026 21:14:24 +0200	[thread overview]
Message-ID: <57fa5a54-24d7-40c6-b015-93cfc4c17ab1@gmail.com> (raw)
In-Reply-To: <010001a233720ab3-d59987f9-b708-47e2-a41f-9de0d594b375-000000@email.amazonses.com>

On 01/12/2026 23:10, Alex Novak wrote:
> Following up on my earlier thread "[RFC/INFO] Hardware quirks of
> SmartChip S9082C (02e7:9082 RTL8189ES clone)" on linux-wireless, this
> RFC series adds support for Realtek RTL8189ES (024c:8179) and the
> SmartChip S9082C clone (02e7:9082) to rtw88.
> 
> To keep shared code changes minimal, all chip-specific behavior is
> hidden behind chip_ops hooks and chip_info flags instead of inline chip
> checks in the common paths:
> 
> - Patch 1 adds minimal core hooks and flags (RTW_CHIP_TYPE_8189E,

The PCI version is called RTL8188EE and the USB version is called
RTL8188EU(S). I'm afraid SDIO is outvoted. :) It should be 8188E/8188e
when there is no S/s at the end.

>   efuse_inverted, fw_no_hdr, fill_txdesc, query_rx_desc,
>   rtw_coex_supported(), and three SDIO callbacks: sdio_to_bus_offset,
>   sdio_fixup_val, and sdio_enable_rx_agg).
> - Patch 2 adds the RTL8189E register tables and S9082C init sequences.
> - Patch 3 adds the RTL8189E/S9082C chip core, 32-byte TX / 24-byte RX
>   descriptor helpers, and S9082C bit-reversed MAC/BB/RF, IQK/LCK
>   calibration, and SDIO register callbacks.
> - Patch 4 adds the rtw88_8189es SDIO driver glue, Kconfig, and Makefile
>   wiring.
> 

I see you have a lot of registers that need special handling. What if
you made lists of them and handled all the bit negation/reversing in the
rtw_sdio_read{8,16,32} and rtw_sdio_write{8,16,32} functions? Wouldn't
that simplify a lot of code?

> Testing status:
> Compile- and static-tested only (no runtime test on hardware yet).
> Each patch in the series is bisectable and verified via GitHub Actions
> on x86_64 and arm64 with W=1, C=1 sparse (CF=-D__CHECK_ENDIAN__),
> KCFLAGS="-Werror", checkpatch.pl --strict --codespell, and a config
> matrix covering CONFIG_RTW88_8189ES=m, CONFIG_RTW88_8189ES=y,
> CONFIG_RTW88_DEBUGFS=n, and CONFIG_PM=n (0 compiler errors, 0 sparse
> warnings). Runtime probe and register-sequencing validation on an
> Amlogic S905X board will be completed before any non-RFC [PATCH rtw-next
> v1] submission.
> 
> I would appreciate feedback on two specific questions before testing on
> hardware:
> 
> 1. Is this split and encapsulation of the S9082C SDIO quirks via
>    sdio_to_bus_offset, sdio_fixup_val, and sdio_enable_rx_agg in
>    chip_ops acceptable for rtw88, or would a different abstraction be
>    preferred?
> 2. Is the fw_no_hdr flag in chip_info together with the path
>    "rtw88/s9082c_fw.bin" the preferred approach for handling headerless
>    8051 firmware images in rtw88?
> 
> Alex Novak (4):
>   wifi: rtw88: extend core hooks for 8189E and S9082C
>   wifi: rtw88: add RTL8189E and S9082C register tables
>   wifi: rtw88: add RTL8189E and S9082C chip core
>   wifi: rtw88: add RTL8189ES and S9082C SDIO driver
> 
>  drivers/net/wireless/realtek/rtw88/Kconfig    |   16 +
>  drivers/net/wireless/realtek/rtw88/Makefile   |    6 +
>  drivers/net/wireless/realtek/rtw88/coex.c     |   34 +-
>  drivers/net/wireless/realtek/rtw88/coex.h     |    5 +
>  drivers/net/wireless/realtek/rtw88/efuse.c    |    7 +
>  drivers/net/wireless/realtek/rtw88/mac.c      |    6 +-
>  drivers/net/wireless/realtek/rtw88/main.c     |    3 +
>  drivers/net/wireless/realtek/rtw88/main.h     |   15 +
>  drivers/net/wireless/realtek/rtw88/phy.c      |    3 +-
>  drivers/net/wireless/realtek/rtw88/rtw8189e.c | 1425 +++++++++++
>  drivers/net/wireless/realtek/rtw88/rtw8189e.h |   20 +
>  .../wireless/realtek/rtw88/rtw8189e_table.c   | 2238 +++++++++++++++++
>  .../wireless/realtek/rtw88/rtw8189e_table.h   |   52 +
>  .../net/wireless/realtek/rtw88/rtw8189es.c    |   43 +
>  drivers/net/wireless/realtek/rtw88/rx.c       |   13 +-
>  drivers/net/wireless/realtek/rtw88/rx.h       |    4 +
>  drivers/net/wireless/realtek/rtw88/sdio.c     |   29 +-
>  drivers/net/wireless/realtek/rtw88/tx.c       |    5 +
>  18 files changed, 3909 insertions(+), 15 deletions(-)
>  create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8189e.c
>  create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8189e.h
>  create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8189e_table.c
>  create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8189e_table.h
>  create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8189es.c
> 


      parent reply	other threads:[~2026-12-02 19:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 21:10 [RFC PATCH rtw-next 0/4] wifi: rtw88: add RTL8189ES and SmartChip S9082C SDIO support Alex Novak
2026-12-01 21:11 ` [RFC PATCH rtw-next 1/4] wifi: rtw88: extend core hooks for 8189E and S9082C Alex Novak
2026-12-02  8:21   ` Luka Gejak
2026-12-02  8:56   ` Luka Gejak
2026-12-02 19:15   ` Bitterblue Smith
2026-12-01 21:11 ` [RFC PATCH rtw-next 2/4] wifi: rtw88: add RTL8189E and S9082C register tables Alex Novak
2026-12-02  8:21   ` Luka Gejak
2026-12-02  8:56   ` Luka Gejak
2026-12-02 19:17   ` Bitterblue Smith
2026-12-01 21:11 ` [RFC PATCH rtw-next 3/4] wifi: rtw88: add RTL8189E and S9082C chip core Alex Novak
2026-12-02  8:21   ` Luka Gejak
2026-12-02  8:56   ` Luka Gejak
2026-12-02 19:18   ` Bitterblue Smith
2026-12-01 21:11 ` [RFC PATCH rtw-next 4/4] wifi: rtw88: add RTL8189ES and S9082C SDIO driver Alex Novak
2026-12-02  8:21   ` Luka Gejak
2026-12-02  8:56   ` Luka Gejak
2026-12-02  8:21 ` [RFC PATCH rtw-next 0/4] wifi: rtw88: add RTL8189ES and SmartChip S9082C SDIO support Luka Gejak
2026-12-02 19:14 ` Bitterblue Smith [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57fa5a54-24d7-40c6-b015-93cfc4c17ab1@gmail.com \
    --to=rtl8821cerfe2@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=neur-alx@agentmail.to \
    --cc=pkshih@realtek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox