public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Soeren Moch <smoch@web.de>
Cc: Kalle Valo <kvalo@kernel.org>,
	Jes Sorensen <Jes.Sorensen@gmail.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] wifi: rtl8xxxu: retry firmware download on error
Date: Thu, 23 Jan 2025 02:52:34 +0000	[thread overview]
Message-ID: <9552269787c444de931b3f4476a41d71@realtek.com> (raw)
In-Reply-To: <0fb6f633-7ce0-4229-a2fc-df65aeeefd83@web.de>

Soeren Moch <smoch@web.de> wrote:
> > Also, this message
> > isn't so important to user, so dev_dbg() is more suitable, but already printing
> > "%s: download_firmware %i\n" for every retry is enough? Or move it out of loop?
> I think this message is important since there is the "failed to write block"
> error message before:
> 
> [    6.239205] usb 2-1.1: RTL8188EU rev D (TSMC) romver 0, 1T1R, TX
> queues 2, WiFi=1, BT=0, GPS=0, HI PA=0
> [    6.248793] usb 2-1.1: RTL8188EU MAC: 00:33:0e:00:15:8e
> [    6.254218] usb 2-1.1: rtl8xxxu: Loading firmware rtlwifi/rtl8188eufw.bin
> [    6.343753] usb 2-1.1: Firmware revision 11.1 (signature 0x88e1)
> [    6.374659] usb 2-1.1: rtl8xxxu_writeN: Failed to write block at
> addr: 1c80 size: 0080
> [    6.382894] usb 2-1.1: retry firmware download
> [    7.221505] usbcore: registered new interface driver rtl8xxxu
> 
> So the retry message after the error makes clear that the error will
> hopefully
> be corrected.
> 
> Since rtl8xxxu_writeN is only used for firmware download, an other option
> would be to downgrade both the error and the retry message to dev_dbg().
> 
> What do you think?
> 

It looks like rtl8xxxu uses this kind of debug pattern for writing: 

	if (rtl8xxxu_debug & RTL8XXXU_DEBUG_REG_WRITE)
		dev_info(&udev->dev, "%s(%04x) = 0x%08x\n",
			 __func__, addr, val);


Maybe rtl8xxxu_writeN() can use the same pattern.
Then, no "rtl8xxxu_writeN: Failed to write block at..." to users. 

Ping-Ke


      reply	other threads:[~2025-01-23  2:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-22 15:31 [PATCH] wifi: rtl8xxxu: retry firmware download on error Soeren Moch
2025-01-23  0:21 ` Ping-Ke Shih
2025-01-23  1:22   ` Soeren Moch
2025-01-23  2:52     ` Ping-Ke Shih [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=9552269787c444de931b3f4476a41d71@realtek.com \
    --to=pkshih@realtek.com \
    --cc=Jes.Sorensen@gmail.com \
    --cc=kvalo@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=smoch@web.de \
    /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