]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath9k: ahb: do ioremap resource in one step
authorRosen Penev <rosenp@gmail.com>
Mon, 21 Apr 2025 04:00:44 +0000 (21:00 -0700)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Fri, 16 May 2025 17:34:16 +0000 (10:34 -0700)
commitb4206774fe8231187e5863ff861160db77d4960b
tree89252c22919609335150ada2e55be0d04aa2dfad
parentbd8402eec9aa3f9d6c797bd51b3c5b4b029673af
wifi: ath9k: ahb: do ioremap resource in one step

Simplifies probe slightly and adds extra error codes.

Switching from devm_ioremap to the platform variant ends up calling
devm_request_mem_region, which reserves the memory region for the
various wmacs. Per board, there is only one wmac and after some fairly
thorough analysis, there are no overlapping memory regions between wmacs
and other devices on the ahb.

Tested on a TP-Link Archer C7v2.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Link: https://patch.msgid.link/20250421040044.44887-1-rosenp@gmail.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath9k/ahb.c