diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2023-01-14 20:01:32 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-01-17 13:36:45 +0300 |
commit | 08a764a7c51b01ccf8594a36b8d24b2d643bc5ed (patch) | |
tree | 331e02a2f040856434d4bdecf2c01beb2f12c802 /include/linux/soc/mediatek/mtk_wed.h | |
parent | 93b2591ad0d0c1dee6974ecb4efb016c543894ae (diff) | |
download | linux-08a764a7c51b01ccf8594a36b8d24b2d643bc5ed.tar.xz |
net: ethernet: mtk_wed: add reset/reset_complete callbacks
Introduce reset and reset_complete wlan callback to schedule WLAN driver
reset when ethernet/wed driver is resetting.
Tested-by: Daniel Golle <daniel@makrotopia.org>
Co-developed-by: Sujuan Chen <sujuan.chen@mediatek.com>
Signed-off-by: Sujuan Chen <sujuan.chen@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/soc/mediatek/mtk_wed.h')
-rw-r--r-- | include/linux/soc/mediatek/mtk_wed.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/soc/mediatek/mtk_wed.h b/include/linux/soc/mediatek/mtk_wed.h index a0746d4aec20..b939bd2750a0 100644 --- a/include/linux/soc/mediatek/mtk_wed.h +++ b/include/linux/soc/mediatek/mtk_wed.h @@ -151,6 +151,8 @@ struct mtk_wed_device { void (*release_rx_buf)(struct mtk_wed_device *wed); void (*update_wo_rx_stats)(struct mtk_wed_device *wed, struct mtk_wed_wo_rx_stats *stats); + int (*reset)(struct mtk_wed_device *wed); + void (*reset_complete)(struct mtk_wed_device *wed); } wlan; #endif }; |