]> git.itanic.dy.fi Git - linux-stable/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)
commitb1f01b4bd7ad7f642d896cb9d6f82ec34043b612
treeb4e096f3f087ef42f4e31fc9f998e84355cb8a7c
parent8720bd951b8e8515ffd995c7631790fdabaa9265
net: phy: smsc: Deduplicate interrupt acknowledgement upon phy_init_hw()

Since commit 4c0d2e96ba05 ("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