]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: xilinx: axienet: Report an error for bad coalesce settings
authorSean Anderson <sean.anderson@linux.dev>
Thu, 16 Jan 2025 23:29:50 +0000 (18:29 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sun, 19 Jan 2025 01:18:53 +0000 (17:18 -0800)
commit9d301a53a532e60586316f3401ca4912601dbb65
tree3e63fd09fe16cbfea58b93cc1795c679986862ca
parent5cff9d1756fbe5c3f15e0284f6713f49b5c5164a
net: xilinx: axienet: Report an error for bad coalesce settings

Instead of silently ignoring invalid/unsupported settings, report an
error. Additionally, relax the check for non-zero usecs to apply only
when it will be used (i.e. when frames != 1).

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed by: Shannon Nelson <shannon.nelson@amd.com>
Link: https://patch.msgid.link/20250116232954.2696930-3-sean.anderson@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c