]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mtk-star-emac: disable napi when connect and start PHY failed in mtk_s...
authorZhengchao Shao <shaozhengchao@huawei.com>
Mon, 7 Nov 2022 01:21:59 +0000 (09:21 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Nov 2022 12:28:07 +0000 (13:28 +0100)
commitf5e35a4fb1a103948073333e424b9a0a03947fa7
tree42db047f058afea3f9dd7516ef0ce0e9452adb3a
parentda144f668c1c4d934cca39a3e213313b3cc4c136
net: ethernet: mtk-star-emac: disable napi when connect and start PHY failed in mtk_star_enable()

When failed to connect to and start PHY in mtk_star_enable() for opening
device, napi isn't disabled. When open mtk star device next time, it will
reports a invalid opcode issue. Fix it. Only be compiled, not be tested.

Fixes: e104d92c885f ("net: ethernet: mtk-star-emac: new driver")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20221107012159.211387-1-shaozhengchao@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mediatek/mtk_star_emac.c