From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-33.mta1.migadu.com [95.215.58.33]) (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 2A59E332637 for ; Thu, 20 Aug 2026 09:04:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787216677; cv=none; b=e31AFKF1E+Mfa5ESqYd+cdX7ywtb4sXOGTHxm/LXgTcbzQa9tRwPNhB3irdCqO+hmB2tBf0TgbIRo4/qXCfkz9x+Yo6s4zrjfVcF2ph0GngRiCWxqK8ExRRP3qVtPqgHB+kYHN+0oTUF8il2ffuaONIRvLhW+CkSmItI0YiIAd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787216677; c=relaxed/simple; bh=2Kiuvyn0Gr6W+qMI1axE8kwYnc7wziMSqFPKNfHCPa4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ECojAMi8obXND2bdXoeGQ3dmsRkno0yahFZt92f5u1c59CqR8XFZHYsXH0zE060PlO4DvLPvrB8w8H31DjNNhYOS6GlSJe9X7B3LJ7s4onqP252wtXeg31Y5/jF1P4WMWRYw1k+yOGhR0DvFu5cOkr8jGvQ13hr2BPMSKPSpK6U= 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=VJ8Panr0; arc=none smtp.client-ip=95.215.58.33 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="VJ8Panr0" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=2Kiuvyn0Gr6W+qMI1axE8kwYnc7wziMSqFPKNfHCPa4=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787216672; v=1; x=1787821472; b=VJ8Panr0XHh71EtqupncSAtcIBRWu2f+6HDTPj7WCNlw0nNVca57ExJMw4nzYsHFUXvvvmBf lxY9R85VTVnodV0P0krbloWnYrRdU0XiUBlSwJQbcFWzLEUB5dUxrbdsAYuKRohwCZxCUt06VO3 LTGRiVdkKIc6/iV4nFN9O02c= X-Envelope-To: linux-kernel@vger.kernel.org Received: from kali (2a06:63c5:9b00:3900:e1b3:d7a6:6110:4f65) by smtp.migadu.com with ESMTPS id 038a658bdaa1e037; Thu, 20 Aug 2026 09:04:32 +0000 X-Mizu-Trace-ID: 038a658bdaa1e037 X-Migadu-Flow: FLOW_OUT From: luka.gejak@linux.dev To: Ping-Ke Shih , linux-wireless@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Michael Straube , Bitterblue Smith , Peter Robinson , Hans de Goede , Luka Gejak Subject: [PATCH v7 1/6] wifi: rtw88: add the RTL8723B chip type and SDIO helper Date: Thu, 20 Aug 2026 09:04:07 +0000 Message-ID: <20260820090412.19574-2-luka.gejak@linux.dev> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260820090412.19574-1-luka.gejak@linux.dev> References: <20260820090412.19574-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 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 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 c6e981ba7986..8f86f7c12de5 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, @@ -2194,6 +2195,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.53.0