mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Cristian Deluxe <me@cristiandeluxe.dev>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH 1/2] wifi: rtw88: 8703b: complete the card-disable to card-emulation transition
Date: Sun, 13 Sep 2026 02:44:48 +0000	[thread overview]
Message-ID: <e78eb1e6ce404a04a3001b13a1f87002@realtek.com> (raw)
In-Reply-To: <178914109042.64584.1377616159988360897@cristiandeluxe.dev>

Cristian Deluxe <me@cristiandeluxe.dev> wrote:
> Sent: Friday, September 11, 2026 11:38 PM
> On an RTL8723CS the driver cannot power the MAC on after a warm reboot:
> the power-on sequence waits forever for power ready and probe fails.
> 
>   rtw88_8723cs mmc2:0001:1: failed to poll offset=0x6 mask=0x2 value=0x2
>   rtw88_8723cs mmc2:0001:1: mac power on failed
> 
> trans_carddis_to_cardemu_8703b has a single entry, clearing the hardware
> power-down bit. Its sibling trans_carddis_to_cardemu_8723d has six more,
> and 8822b and 8822c carry the same SDIO pair: withdraw the SDIO suspend
> request on local register 0x86 and wait for the interface to leave the
> suspended state, clear the WL suspend bit alongside the power-down bit,
> and take the 12H LDO out of sleep mode. The transition is the reverse of
> trans_cardemu_to_carddis_8703b, which sets 0x23[4] and asks the
> interface to suspend, so with those operations missing neither is ever
> undone.

I feel you can just describe you sync the setting from vendor driver.

> 
> The chip then comes back with the WLAN MAC unpowered while the SDIO
> function still enumerates and CMD52 still works, and nothing in the
> sequence wakes it. rtw_mac_pre_system_cfg() does not cover it either: it
> returns early for 8051 wcpu chips, of which this is one.
> 
> It survives a reboot on any board where WL_REG_ON is the only reset the
> host has and the chip's rail is not switchable. On the Denver TAQ-102
> the pwrseq reset line, the BT enable line, the 32.768 kHz clock and
> every switchable PMIC rail were each toggled against a wedged chip and
> none of them cleared it, while the vendor driver recovered it every
> time.
> 
> Take the operations 8723d has and this table lacks. That table's USB-only
> and PCI-only entries are left out: this chip has no such variant.

I see. Others are the same as vendor driver does. 

> 
> Tested on an RTL8723CS over SDIO: recovers a chip left wedged by a
> previous boot, and survives repeated warm reboots and loader-mode flash
> cycles.
> 
> Signed-off-by: Cristian Deluxe <me@cristiandeluxe.dev>

Acked-by: Ping-Ke Shih <pkshih@realtek.com>




  reply	other threads:[~2026-09-13  2:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-11 15:38 [PATCH 0/2] wifi: rtw88: 8703b: repair the card-disable transition Cristian Deluxe
2026-09-11 15:38 ` [PATCH 1/2] wifi: rtw88: 8703b: complete the card-disable to card-emulation transition Cristian Deluxe
2026-09-13  2:44   ` Ping-Ke Shih [this message]
2026-09-16  5:30   ` Ping-Ke Shih
2026-09-11 15:38 ` [PATCH 2/2] wifi: rtw88: 8703b: stop the PCIe DMA write reaching SDIO Cristian Deluxe
2026-09-13  2:49   ` Ping-Ke Shih

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=e78eb1e6ce404a04a3001b13a1f87002@realtek.com \
    --to=pkshih@realtek.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=me@cristiandeluxe.dev \
    /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

all inboxes | Powered by JetHome®