Subject: Re: [PATCH net-next 1/9] r8152: Add support for RTL8157 RX/TX descriptor format

From: Jakub Kicinski <[email-masked]>
Date: Mon, 16 Mar 2026 17:51:23 -0700

On Sat, 14 Mar 2026 10:31:37 +0100 Birger Koblitz wrote:
> The RTL8157 uses a different packet descriptor format compared to the
> previous generation of chips. Add support for this format by adding a
> descriptor format structure into the r8152 structure and corresponding
> desc_ops functions which abstract the vlan-tag, tx/rx len and
> tx/rx checksum algorithms.
> 
> Adapt the previous functions for the first chip generation to support
> abstraction and add additional functions for the second generation.
> 
> Replace all calls to the descriptor functions with abstracted functions.

drivers/net/usb/r8152.c:9646:12: warning: unused function 'r8157_desc_init' [-Wunused-function]
 9646 | static int r8157_desc_init(struct r8152 *tp)
      |            ^~~~~~~~~~~~~~~
-- 
pw-bot: cr