From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-62.mta1.migadu.com [95.215.58.62]) (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 E97A438E8D0 for ; Wed, 9 Sep 2026 07:46:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.62 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788939978; cv=none; b=nuxzu9IQKp2IF0neO0fk7+3Kk1WpheYB1HGoUpTgNJGH1Ahq7jpuna043vWHC41k+lHeFLf2UscGrA7H4KAA/rV6H8+xCkQnYIAGHvIVHwXumOI5fxDY9zytR3h+fmxehZs342ymcmrTdYxmfBk9B5lzQgdoVYytPNJ2Vt8gnEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788939978; c=relaxed/simple; bh=+lksqU2WhGpad9JilfMgl01dXqETbmY1NREALhnrYhk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A8XRIxI7rb/VWJ8lUdXlEllwh1CPLl8PJ0WToDInqQptBLcO6NX7tGulaMqa+8Lv0az18mrIQmvhwTTMOU3BsDX+bB35YKTuDgqJ5i+bGbi35QqiNpNMPSPwT0R4ClDYdHCiUrX0COnix/KnC2zBSAW2LsVTdiB4OzVbC+WUZ9k= 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=u38IEegn; arc=none smtp.client-ip=95.215.58.62 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="u38IEegn" X-Envelope-To: linux-wireless@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=+lksqU2WhGpad9JilfMgl01dXqETbmY1NREALhnrYhk=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1788939972; v=1; x=1789544772; b=u38IEegnjlBgCClb26xOlizFZ9fBFAmvmBw8cntMBE3myTbmfzrviyE1VGoJgPFzc1CmAcbs sJ8EM1jMoAC3gO/wm40e5CqP/BXRxr1VoCNOBUmNjlB3KugH3+O+6VNuO7ZPyotWXheEw6zID8x bj2uS+P01fgyeSoAcE41iK4k= X-Envelope-To: linux-wireless@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 66143cb18931b1c6; Wed, 09 Sep 2026 07:46:12 +0000 X-Mizu-Trace-ID: 66143cb18931b1c6 X-Migadu-Flow: FLOW_OUT From: luka.gejak@linux.dev 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 v11 1/7] wifi: rtw88: add the RTL8723B chip type and SDIO helper Date: Wed, 9 Sep 2026 09:45:50 +0200 Message-ID: <20260909074556.55709-2-luka.gejak@linux.dev> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260909074556.55709-1-luka.gejak@linux.dev> References: <20260909074556.55709-1-luka.gejak@linux.dev> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Luka Gejak The RTL8723B is a 802.11n combo chip whose SDIO variant, RTL8723BS, runs a Realtek vendor firmware that differs from the firmware used by the other rtw88 8723 family devices. Supporting it needs a number of small adjustments spread across the shared core, all of which have to be restricted to this one chip and bus combination. Add the chip type and a helper that tests for it, so the changes that follow can be gated without repeating the chip and bus comparison. Signed-off-by: Luka Gejak Acked-by: Ping-Ke Shih --- Notes: Changes in v11: none. Changes in v10: none. Changes in v9: none. Changes in v8: none. Changes in v7: none. Changes in v6: none. Changes in v5: none. drivers/net/wireless/realtek/rtw88/main.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw88/main.h b/drivers/net/wireless/realtek/rtw88/main.h index 6883fbd9f768..d59f6e323adf 100644 --- a/drivers/net/wireless/realtek/rtw88/main.h +++ b/drivers/net/wireless/realtek/rtw88/main.h @@ -194,6 +194,7 @@ enum rtw_chip_type { RTW_CHIP_TYPE_8723D, RTW_CHIP_TYPE_8821C, RTW_CHIP_TYPE_8703B, + RTW_CHIP_TYPE_8723B, RTW_CHIP_TYPE_8821A, RTW_CHIP_TYPE_8812A, RTW_CHIP_TYPE_8814A, @@ -2195,6 +2196,12 @@ static inline bool rtw_chip_has_tx_stbc(struct rtw_dev *rtwdev) return rtwdev->chip->tx_stbc; } +static inline bool rtw_is_8723bs(struct rtw_dev *rtwdev) +{ + return rtwdev->chip->id == RTW_CHIP_TYPE_8723B && + rtwdev->hci.type == RTW_HCI_TYPE_SDIO; +} + static inline u8 rtw_acquire_macid(struct rtw_dev *rtwdev) { unsigned long mac_id; -- 2.55.0