From: Simon Horman <horms@kernel.org>
To: Hanson Wang <hanson.wang@ugreen.com>
Cc: netdev@vger.kernel.org, linux-usb@vger.kernel.org,
oneukum@suse.com, kuba@kernel.org, andrew@lunn.ch
Subject: Re: [PATCH net v2] net: usb: aqc111: fix set_mac_address return value
Date: Fri, 23 Oct 2026 17:42:31 +0100 [thread overview]
Message-ID: <20261023164231.GO708417@horms.kernel.org> (raw)
In-Reply-To: <20261016124858.1939743-1-hanson.wang@ugreen.com>
On Fri, Oct 16, 2026 at 08:48:58PM +0800, Hanson Wang wrote:
> aqc111_set_mac_addr() returns the result of aqc111_write_cmd() on
> success. That function wraps usb_control_msg(), which returns the
> number of bytes transferred (6 for ETH_ALEN) rather than zero.
>
> Callers such as netif_set_mac_address() and bonding treat any
> non-zero return value as failure when setting the MAC address.
>
> Return 0 on success and propagate negative error codes on failure.
>
> Link: https://lore.kernel.org/netdev/20260703073936.462231-1-hanson.wang@ugreen.com
>
> Signed-off-by: Hanson Wang <hanson.wang@ugreen.com>
Overall this looks good to me, thanks for your contribution.
Reviewed-by: Simon Horman <horms@kernel.org>
Some points on process to keep in mind.
There is no need to repost to address these.
1. Please respond to netdev-bot+sinfo.
It's not too late to do so!
https://lore.kernel.org/netdev/179215519735.408196.139629932849333374@kernel.org/
2. Please post new versions to patches in new email threads,
not as a reply to an earlier versions.
3. Please don't repost within 24h.
4. Please don't repost the same version, without either
incrementing the version number or including repost in the subject.
[PATCh net v2 repost] ...
5. Please do include a summary of what has changed below the scissors ('---').
Ideally including lore.kernel.org links to earlier versions.
v2: Fixes indentation
v1: https://lore.kernel.org/netdev/43a0904c-de59-4b40-b186-edd130f6c0cb@lunn.ch/
6. Please don't use the Link tag to link to an earlier version.
Instead use it if there is some extra information,
e.g. an otherwise unrelated email thread that lead to this patch.
For more information on Netdev processes please see
https://docs.kernel.org/process/maintainer-netdev.html
next prev parent reply other threads:[~2026-10-23 16:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-03 7:39 [PATCH 1/1] net: usb: aqc111: fix set_mac_address return value for bonding Hanson Wang
2026-07-03 16:46 ` Andrew Lunn
2026-07-04 8:42 ` Hanson Wang
2026-07-04 14:32 ` Andrew Lunn
2026-07-20 23:38 ` Jakub Kicinski
2026-10-16 12:29 ` [PATCH net v2] net: usb: aqc111: fix set_mac_address return value Hanson Wang
2026-10-16 12:33 ` netdev-bot+sinfo
2026-10-16 12:39 ` sashiko-bot
2026-10-16 12:48 ` Hanson Wang
2026-10-16 12:53 ` netdev-bot+sinfo
2026-10-16 12:59 ` sashiko-bot
2026-10-23 16:42 ` Simon Horman [this message]
2026-10-23 21:30 ` patchwork-bot+netdevbpf
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=20261023164231.GO708417@horms.kernel.org \
--to=horms@kernel.org \
--cc=andrew@lunn.ch \
--cc=hanson.wang@ugreen.com \
--cc=kuba@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oneukum@suse.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox