Linux-Wireless Archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Need Help with SDIO device
Date: Wed, 10 Apr 2024 14:03:58 -0500	[thread overview]
Message-ID: <8909f667-96e2-484d-a0fd-a20847e42d27@lwfinger.net> (raw)

Hi,

I am helping a user of the RTW8821CS device, which fails on startup. The device 
is composed of an SDIO wifi unit, and a UART-based Bluetooth section. Our 
discussion is at https://github.com/lwfinger/rtw88/issues/187.

What an msleep(150) was added just before the SDIO probe routine proceeds, the 
success rate was about 60%. Examination of the dmesg logs of 10 runs showed that 
when the BT section completed its initialization before the SDIO probe routine 
was executed, wifi started without error. If the SDIO routine was entered before 
the BT driver completed initialization, wifi failed with error -110 for SDIO 
read/write operations.

What mechanism is available to ensure that one driver finishes initialization 
before another starts? Is there anything more sophisticated than an mdelay(500) 
at the start of the SDIO probe routine?

Thanks,

Larry

                 reply	other threads:[~2024-04-10 19:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=8909f667-96e2-484d-a0fd-a20847e42d27@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=linux-wireless@vger.kernel.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).