Re: [PATCH 02/16] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-05 Thread Andrew Lunn
On Mon, Aug 05, 2019 at 07:54:39PM +0300, Alexandru Ardelean wrote:
> The chip supports standard suspend/resume via BMCR reg.
> Hook these functions into the `adin` driver.
> 
> Signed-off-by: Alexandru Ardelean 

Reviewed-by: Andrew Lunn 

Andrew


[PATCH 02/16] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-05 Thread Alexandru Ardelean
The chip supports standard suspend/resume via BMCR reg.
Hook these functions into the `adin` driver.

Signed-off-by: Alexandru Ardelean 
---
 drivers/net/phy/adin.c | 4 
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c
index 6a610d4563c3..c100a0dd95cd 100644
--- a/drivers/net/phy/adin.c
+++ b/drivers/net/phy/adin.c
@@ -34,6 +34,8 @@ static struct phy_driver adin_driver[] = {
.config_init= adin_config_init,
.config_aneg= genphy_config_aneg,
.read_status= genphy_read_status,
+   .resume = genphy_resume,
+   .suspend= genphy_suspend,
},
{
.phy_id = PHY_ID_ADIN1300,
@@ -43,6 +45,8 @@ static struct phy_driver adin_driver[] = {
.config_init= adin_config_init,
.config_aneg= genphy_config_aneg,
.read_status= genphy_read_status,
+   .resume = genphy_resume,
+   .suspend= genphy_suspend,
},
 };
 
-- 
2.20.1