From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-96.mta1.migadu.com [95.215.58.96]) (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 E80EE54EEBC for ; Tue, 8 Sep 2026 13:29:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.96 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788874201; cv=none; b=i6McXqFz4maQrp5sRNtsTJcoExoJbENtWo1NCt+9qR7suoq/Wvtxh3iKfHbmcN+2wxfe/6iTgpecVMwD3xwR36GLOLA9X0QIp6VMfGENWGsDTi0yUrHopnW51bumHMFPIKblhYyizzhO2jkmE5AFX9gw6L1oHrCsqWqwooUHZzw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788874201; c=relaxed/simple; bh=MVin06amZxKHcazosou87jhcjKKSJQCHsOU8q2F4eLo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dUAo+zpTCsMcmy+4GIl0smOSzKX7si/s9O/sgnI7vI3sOdyFnP0flgo9opNqHjpPZlMuZQonFJq5Za0QnM4ccA62BKbCzGOqoCvcg1bDaPrdbT7SSOpInoCPuIMY41uksKuAZGROKj1077dCZsrxncxjR+16DPROsVK/tV4MQno= 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=szrNbKEt; arc=none smtp.client-ip=95.215.58.96 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="szrNbKEt" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=MVin06amZxKHcazosou87jhcjKKSJQCHsOU8q2F4eLo=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1788874184; v=1; x=1789478984; b=szrNbKEtJp+uVA7Li37tNuh7Sul4gEQkYT8rOsD+EdEDphD9c1SIW7KZRpL5LdI6ePKNG6l/ GprOxCAgjisRSS7yWUejwAzcGSnbNsjQwq16RbM5Grkx2TUceOsGZFD/fIZnKu8+V6qyCcozY2f JNHX2c+auKYDkATW82VrdGoo= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 7f4c4f6709f620b7; Tue, 08 Sep 2026 13:29:44 +0000 X-Mizu-Trace-ID: 7f4c4f6709f620b7 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 v10 1/6] wifi: rtw88: add the RTL8723B chip type and SDIO helper Date: Tue, 8 Sep 2026 15:29:21 +0200 Message-ID: <20260908132926.68976-2-luka.gejak@linux.dev> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908132926.68976-1-luka.gejak@linux.dev> References: <20260908132926.68976-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 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