projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b0720b
)
net: phy: mediatek: add the missing suspend/resume callbacks
author
DENG Qingfang
<dqfext@gmail.com>
Mon, 23 Aug 2021 04:44:21 +0000
(12:44 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 24 Aug 2021 23:52:43 +0000
(16:52 -0700)
Without suspend/resume callbacks, the PHY cannot be powered down/up
administratively.
Fixes:
e40d2cca0189
("net: phy: add MediaTek Gigabit Ethernet PHY driver")
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link:
https://lore.kernel.org/r/20210823044422.164184-1-dqfext@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mediatek-ge.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/mediatek-ge.c
b/drivers/net/phy/mediatek-ge.c
index
11ff335
..
b7a5ae2
100644
(file)
--- a/
drivers/net/phy/mediatek-ge.c
+++ b/
drivers/net/phy/mediatek-ge.c
@@
-81,6
+81,8
@@
static struct phy_driver mtk_gephy_driver[] = {
*/
.config_intr = genphy_no_config_intr,
.handle_interrupt = genphy_handle_interrupt_no_ack,
+ .suspend = genphy_suspend,
+ .resume = genphy_resume,
.read_page = mtk_gephy_read_page,
.write_page = mtk_gephy_write_page,
},
@@
-93,6
+95,8
@@
static struct phy_driver mtk_gephy_driver[] = {
*/
.config_intr = genphy_no_config_intr,
.handle_interrupt = genphy_handle_interrupt_no_ack,
+ .suspend = genphy_suspend,
+ .resume = genphy_resume,
.read_page = mtk_gephy_read_page,
.write_page = mtk_gephy_write_page,
},