linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Doug Anderson <dianders@chromium.org>
To: Jupiter <jupiter.hce@gmail.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
	Amitkumar Karwar <amitkumar.karwar@nxp.com>,
	Ganapathi Bhat <ganapathi.bhat@nxp.com>,
	Brian Norris <briannorris@chromium.org>,
	Abhishek Pandit-Subedi <abhishekpandit@chromium.org>,
	Linux MMC List <linux-mmc@vger.kernel.org>,
	Ulf Hansson <ulf.hansson@linaro.org>
Subject: Re: mwifiex reset buggy
Date: Wed, 1 Dec 2021 13:19:17 -0800	[thread overview]
Message-ID: <CAD=FV=XMR33LONcyuvfLzJNd7vKB7vmiE1VSC_QArXA+Hy4Nsw@mail.gmail.com> (raw)
In-Reply-To: <CAA=hcWR+9rsoy-dCnpai+fw_+JcO6X6oMBNPHJGqpuRy8mJszw@mail.gmail.com>

Hi,

On Mon, Nov 22, 2021 at 8:39 PM Jupiter <jupiter.hce@gmail.com> wrote:
>
> Hi Doug,
>
> I have updated the kernel to 5.10.59 which should be guaranteed to
> include your reset patch.
>
> But I could not connect to the WiFi.
>
> #  ifconfig mlan0 up
> [10262.988302] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem
>  (1) failed: -110
> [10262.996049] mwifiex_sdio mmc0:0001:1: write CFG reg failed
> [10263.007337] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem
>  (2) failed: -110
> [10263.015299] mwifiex_sdio mmc0:0001:1: write CFG reg failed
> [10263.021675] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem
>  (3) failed: -110
> [10263.029839] mwifiex_sdio mmc0:0001:1: write CFG reg failed
> [10263.035386] mwifiex_sdio mmc0:0001:1: DNLD_CMD: host to card failed
>
> # echo 1 > /sys/kernel/debug/mwifiex/mlan0/reset
> [10517.451193] mwifiex_sdio mmc0:0001:1: Resetting per request
> [10517.479235] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem
>  (1) failed: -110
> [10517.490283] mwifiex_sdio mmc0:0001:1: write CFG reg failed
> [10517.498995] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem
>  (2) failed: -110
> [10517.509257] mwifiex_sdio mmc0:0001:1: write CFG reg failed
> [10517.517649] mwifiex_sdio mmc0:0001:1: host_to_card, write iomem
>  (3) failed: -110
> [10517.527838] mwifiex_sdio mmc0:0001:1: write CFG reg failed
> [10517.533765] mwifiex_sdio mmc0:0001:1: DNLD_CMD: host to card failed
>
> [10529.871099] mwifiex_sdio mmc0:0001:1: cmd_wait_q terminated: -110
> [10529.883401] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW in reset state
> [10529.890488] mwifiex_sdio mmc0:0001:1: deleting the crypto keys
> [10529.896573] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW in reset state
> [10529.903316] mwifiex_sdio mmc0:0001:1: deleting the crypto keys
>
> [10530.014334] mwifiex_sdio mmc0:0001:1: DNLD_CMD: host to card failed
> [10530.049847] mwifiex_sdio mmc0:0001:1: info: shutdown mwifiex...
> [10530.239910] mwifiex_sdio mmc0:0001:1: PREP_CMD: card is removed
> [10530.247919] mwifiex_sdio mmc0:0001:1: PREP_CMD: card is removed
> [10530.268721] mwifiex_sdio mmc0:0001:1: PREP_CMD: card is removed
> [10531.665962] mwifiex_sdio mmc0:0001:1: info: FW download over, size
> 255988 bytes
> [10531.911608] mwifiex_sdio mmc0:0001:1: WLAN FW is active
> [10531.964352] mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd 0x242 error, result=0x2
> [10531.971894] mwifiex_sdio mmc0:0001:1: mwifiex_process_cmdresp: cmd
> 0x242 failed during       initialization
> [10532.125947] mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION:
> mwifiex 1.0 (14.68.36.p204)
> [10532.134573] mwifiex_sdio mmc0:0001:1: driver_version = mwifiex 1.0
> (14.68.36.p204)
>
> Again, the /sys/kernel/debug/mwifiex/mlan0 is removed, it is
> completely broken for both WiFi modem reset and
> /sys/kernel/debug/mwifiex/mlan0/reset, let me know your advice to
> debug it or modify mwifiex source files.

Sorry, I think you're on your own here. I've only briefly touched upon
the Marvell reset code when I ran into trouble with it in the past but
it's definitely not something I have any real inside knowledge about.
My only suggestions would be to somehow get someone from Marvell (now
NXP I guess?) to help you debug or perhaps the people you got your
module from have some technical contacts that can help rope in someone
to help?

-Doug

      reply	other threads:[~2021-12-01 21:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-19 21:36 mwifiex reset buggy Jupiter
2021-11-19 21:48 ` Doug Anderson
2021-11-20  0:16   ` Jupiter
2021-11-23  4:38     ` Jupiter
2021-12-01 21:19       ` Doug Anderson [this message]

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='CAD=FV=XMR33LONcyuvfLzJNd7vKB7vmiE1VSC_QArXA+Hy4Nsw@mail.gmail.com' \
    --to=dianders@chromium.org \
    --cc=abhishekpandit@chromium.org \
    --cc=amitkumar.karwar@nxp.com \
    --cc=briannorris@chromium.org \
    --cc=ganapathi.bhat@nxp.com \
    --cc=jupiter.hce@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=ulf.hansson@linaro.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 NNTP newsgroup(s).