]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: smsc: Deduplicate interrupt acknowledgement upon phy_init_hw()
authorLukas Wunner <lukas@wunner.de>
Mon, 20 Jun 2022 09:28:39 +0000 (11:28 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 22 Jun 2022 04:55:09 +0000 (21:55 -0700)
commiteac77ec1b27e783228c41e1bb27dfcea5f598807
treeb4e096f3f087ef42f4e31fc9f998e84355cb8a7c
parent2078e1be37f1df95095a8777c328a5e5662ff90f
net: phy: smsc: Deduplicate interrupt acknowledgement upon phy_init_hw()

Since commit 964a774e0fd3 ("net: phy: consider that suspend2ram may cut
off PHY power"), phy_init_hw() invokes both, the ->config_init() and
->config_intr() callbacks.

In the SMSC PHY driver, the latter acknowledges stale interrupts, hence
there's no longer a need to acknowledge them in the former as well.

There are no other callers of ->config_init() besides phy_init_hw().

Drop the redundant code.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Link: https://lore.kernel.org/r/0254edf48bddc96c6248c4414043a3699e94614a.1655716767.git.lukas@wunner.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/smsc.c