mirror of
https://github.com/torvalds/linux.git
synced 2026-09-26 18:12:03 +02:00
wifi: rtw89: pack I/O during bb_sethw to reduce API execution time
Wrap rtw89_chip_bb_sethw() with rtw89_io_pack/unpack so all register writes during baseband hardware initialization are batched into a single bus transaction. This reduces API execution time from ~11000 us to ~4000 us on affected platforms. Signed-off-by: Eric Huang <echuang@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20260712034506.53209-2-pkshih@realtek.com
This commit is contained in:
parent
c2d96cd05c
commit
b45b22bbe9
|
|
@ -8216,8 +8216,12 @@ static inline void rtw89_chip_bb_sethw(struct rtw89_dev *rtwdev)
|
|||
{
|
||||
const struct rtw89_chip_info *chip = rtwdev->chip;
|
||||
|
||||
rtw89_io_pack(rtwdev);
|
||||
|
||||
if (chip->ops->bb_sethw)
|
||||
chip->ops->bb_sethw(rtwdev);
|
||||
|
||||
rtw89_io_unpack(rtwdev);
|
||||
}
|
||||
|
||||
static inline void rtw89_chip_rfk_init(struct rtw89_dev *rtwdev)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user