All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Bitterblue Smith <rtl8821cerfe2@gmail.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: [PATCH rtw-next v4 12/14] wifi: rtw89: Add usb.{c,h}
Date: Tue, 1 Jul 2025 02:21:50 +0000	[thread overview]
Message-ID: <bebb3b4c59ae45ee8e30e92c95680b86@realtek.com> (raw)
In-Reply-To: <f9ad1664-2d63-4a8f-88bf-c7b7bececbfe@gmail.com>

Bitterblue Smith <rtl8821cerfe2@gmail.com> wrote:
> Add basic USB support. No TX/RX aggregation, no switching to USB 3 mode.
> 
> RTL8851BU and RTL8832BU work.
> 
> Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>

Since v3 is good to me, I just checked the difference between v3 and v4, and
it looks good as well. So

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

> ---
> v2:
>  - Don't do vendor requests when unplugged.
>  - Rename rtw89_get_usb_priv() to rtw89_usb_priv().
>  - Move rtw89_usb_read_port_complete() forward declaration to the top
>    of usb.c.
>  - Remove unnecessary empty lines.
>  - Rename "error" variable to "ret".
>  - Don't call usb_kill_urb() in rtw89_usb_free_rx_bufs().
>  - Use u32_get_bits() in rtw89_usb_vendorreq().
>  - Initialise rtwdev->hci.dle_type.
>  - Delete vendor_req_mutex.
> 
> v3:
>  - Avoid skb_over_panic in rtw89_usb_fwcmd_submit() when the size is
>    a multiple of 512. We can't just extend the skb by 4 bytes, it has
>    to be copied. This was triggered by the hardware scan offload feature
>    in the "00" regulatory domain.
>  - Convert the warning in rtw89_usb_fwcmd_submit() into a debug message.
>  - Delete empty line in rtw89_usb_fwcmd_submit().
>  - Reschedule rx_work when rtw89_usb_rx_handler() finds more than 200
>    frames in the queue.
>  - Use sizeof(*rtwusb->vendor_req_buf) instead of sizeof(u32) in
>    rtw89_usb_intf_init().
> 
> v4:
>  - Implement TX queues because other parts of rtw89 expect
>    rtw89_usb_ops_tx_write() to just put a frame in a queue and
>    rtw89_usb_ops_tx_kick_off() to actually transmit.
>  - Merge rtw89_usb_write_port_complete_fwcmd() into
>    rtw89_usb_write_port_complete() because they were very similar. Add
>    txch member to struct rtw89_usb_tx_ctrl_block for this purpose.
>  - Really convert that "avoiding multiple of 512" warning into a debug
>    message. It was supposed to be done in v3 but it didn't happen.

If current version is workable for users, I'd take this version, and
then we can improve it in separated patches. Adding more and more stuffs
into this (quite big) patch is not a good idea to review and maintain.

(I knew changes of v4 is necessary.)


  reply	other threads:[~2025-07-01  2:21 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-30 20:39 [PATCH rtw-next v4 00/14] wifi: rtw89: Add support for USB devices Bitterblue Smith
2025-06-30 20:40 ` [PATCH rtw-next v4 01/14] wifi: rtw89: 8851b: Accept USB devices and load their MAC address Bitterblue Smith
2025-07-04  3:08   ` Ping-Ke Shih
2025-07-04  3:36     ` Ping-Ke Shih
2025-07-04  9:53       ` Bitterblue Smith
2025-06-30 20:41 ` [PATCH rtw-next v4 02/14] wifi: rtw89: Make dle_mem in rtw89_chip_info an array Bitterblue Smith
2025-06-30 20:42 ` [PATCH rtw-next v4 03/14] wifi: rtw89: Make hfc_param_ini " Bitterblue Smith
2025-06-30 20:42 ` [PATCH rtw-next v4 04/14] wifi: rtw89: Add rtw8851b_dle_mem_usb{2,3} Bitterblue Smith
2025-06-30 20:42 ` [PATCH rtw-next v4 05/14] wifi: rtw89: Add rtw8851b_hfc_param_ini_usb Bitterblue Smith
2025-06-30 20:43 ` [PATCH rtw-next v4 06/14] wifi: rtw89: Disable deep power saving for USB/SDIO Bitterblue Smith
2025-06-30 20:44 ` [PATCH rtw-next v4 07/14] wifi: rtw89: Add extra TX headroom for USB Bitterblue Smith
2025-06-30 20:45 ` [PATCH rtw-next v4 08/14] wifi: rtw89: Hide some errors when the device is unplugged Bitterblue Smith
2025-06-30 20:45 ` [PATCH rtw-next v4 09/14] wifi: rtw89: 8851b: Modify rtw8851b_pwr_{on,off}_func() for USB Bitterblue Smith
2025-06-30 20:45 ` [PATCH rtw-next v4 10/14] wifi: rtw89: Fix rtw89_mac_power_switch() " Bitterblue Smith
2025-06-30 20:46 ` [PATCH rtw-next v4 11/14] wifi: rtw89: Add some definitions " Bitterblue Smith
2025-06-30 20:46 ` [PATCH rtw-next v4 12/14] wifi: rtw89: Add usb.{c,h} Bitterblue Smith
2025-07-01  2:21   ` Ping-Ke Shih [this message]
2025-07-01 10:58     ` Bitterblue Smith
2025-06-30 20:47 ` [PATCH rtw-next v4 13/14] wifi: rtw89: Add rtw8851bu.c Bitterblue Smith
2025-06-30 20:47 ` [PATCH rtw-next v4 14/14] wifi: rtw89: Enable the new USB modules Bitterblue Smith
2025-07-05 14:15   ` kernel test robot

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=bebb3b4c59ae45ee8e30e92c95680b86@realtek.com \
    --to=pkshih@realtek.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=rtl8821cerfe2@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.