From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-57.mta1.migadu.com [95.215.58.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 069FE4D17B4 for ; Mon, 21 Sep 2026 15:44:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.57 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790005470; cv=none; b=WuIo4JxrfylwnoWT7NLQdBpvYqHCgVFc8HPwvowJTZ1n6z239dP0DppELacHONMo7hvQsHv1ZCdet1nJotoUOEw8WlDZi21kx3zRHM5+sbuHiyVkjKf7MRKeGiPVeL8d8BQ4qgoAwN7/jvP3x7q+5agUiYtfzmXjxyZzAXx2eso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790005470; c=relaxed/simple; bh=31sx9CVOvKCyCR6XVh4zmy91OYPvf5pBMMv49Y9g8us=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ndp3UBMCjbHn2Zwd4OEycTQoo2MGaxC01hzjWOeMtNDRMC+rZMdchY36NQFkTnnXgN5oAa9lvseNYVGqLPCAq0BPAUNtRzuNXt7CUl9nNfGFWclWFITHIIKedjcF+GwafmxSPdfEchzGZgcWc7y9QgB7nVYHVn1V7BxFItc1HS0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=SdV9F/iU; arc=none smtp.client-ip=95.215.58.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="SdV9F/iU" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=31sx9CVOvKCyCR6XVh4zmy91OYPvf5pBMMv49Y9g8us=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1790005466; v=1; x=1790610266; b=SdV9F/iU1q3DbEjR2kNqw1Q91YCCAwLnLoKmKJDEkIlwpGkhi+2yAk7qljY3gjIjMuKGrLXK TNxN9X3I8qQIZFJmQ8kha4y4Oiqi6KymJejVs20RFJ7N/XXioHZSFpJ3Rxh0OgzXhjhuQ54O+Xp l5PSfsxpsy9WClDZwmuwic2g= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id a8d44e8de740c41c; Mon, 21 Sep 2026 15:44:26 +0000 X-Mizu-Trace-ID: a8d44e8de740c41c X-Migadu-Flow: FLOW_OUT From: Luka Gejak To: Ping-Ke Shih Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Straube , Peter Robinson , Bitterblue Smith , Luka Gejak Subject: [PATCH v3 4/6] wifi: rtw88: 8723bs: add the RTL8723BS SDIO bind Date: Mon, 21 Sep 2026 17:43:45 +0200 Message-ID: <20260921154347.82317-5-luka.gejak@linux.dev> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260921154347.82317-1-luka.gejak@linux.dev> References: <20260921154347.82317-1-luka.gejak@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add the SDIO module for the RTL8723BS, the SDIO variant of the RTL8723B. It binds the Realtek SDIO device ids to the shared rtw88 SDIO probe and points it at the RTL8723B chip information. The device id table carries the same six ids the staging rtl8723bs driver binds to this chip, so the staging driver can be dropped without losing hardware support. I only have the 0xb723 variant to test with; the other five are included for parity with staging, which has carried them for years, rather than being left behind. The driver is not built yet; the Kconfig and Makefile entries follow. The RTL8723B chip support is based on the initial work by Michael Straube . Link: https://github.com/mistraube/rtw88/tree/rtl8723bs Co-developed-by: Michael Straube Signed-off-by: Michael Straube Signed-off-by: Luka Gejak --- .../net/wireless/realtek/rtw88/rtw8723bs.c | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8723bs.c diff --git a/drivers/net/wireless/realtek/rtw88/rtw8723bs.c b/drivers/net/wireless/realtek/rtw88/rtw8723bs.c new file mode 100644 index 000000000000..f0c0fe6ee2b3 --- /dev/null +++ b/drivers/net/wireless/realtek/rtw88/rtw8723bs.c @@ -0,0 +1,67 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Copyright(c) 2007-2017 Realtek Corporation + * Copyright(c) Michael Straube + * Copyright(c) 2024-2026 Luka Gejak + */ + +#include +#include +#include +#include "main.h" +#include "rtw8723b.h" +#include "sdio.h" + +static const struct sdio_device_id rtw_8723bs_id_table[] = { + { + SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, + SDIO_DEVICE_ID_REALTEK_RTW8723BS), + .driver_data = (kernel_ulong_t)&rtw8723b_hw_spec, + }, + /* + * The remaining ids are the other RTL8723BS SDIO ids the staging + * rtl8723bs driver binds to this chip. They have no + * SDIO_DEVICE_ID_REALTEK_* names in and are + * carried here for parity with staging; only 0xb723 above has been + * verified on hardware. + */ + { + SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, 0x0523), + .driver_data = (kernel_ulong_t)&rtw8723b_hw_spec, + }, + { + SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, 0x0525), + .driver_data = (kernel_ulong_t)&rtw8723b_hw_spec, + }, + { + SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, 0x0623), + .driver_data = (kernel_ulong_t)&rtw8723b_hw_spec, + }, + { + SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, 0x0626), + .driver_data = (kernel_ulong_t)&rtw8723b_hw_spec, + }, + { + SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, 0x0627), + .driver_data = (kernel_ulong_t)&rtw8723b_hw_spec, + }, + {} +}; +MODULE_DEVICE_TABLE(sdio, rtw_8723bs_id_table); + +static struct sdio_driver rtw_8723bs_driver = { + .name = KBUILD_MODNAME, + .id_table = rtw_8723bs_id_table, + .probe = rtw_sdio_probe, + .remove = rtw_sdio_remove, + .shutdown = rtw_sdio_shutdown, + .drv = { + .pm = &rtw_sdio_pm_ops, + } +}; +module_sdio_driver(rtw_8723bs_driver); + +MODULE_AUTHOR("Michael Straube "); +MODULE_AUTHOR("Luka Gejak "); +MODULE_DESCRIPTION("Realtek 802.11n wireless 8723bs driver"); +MODULE_LICENSE("Dual BSD/GPL"); -- 2.55.0