Thread (4 messages) 4 messages, 3 authors, 2014-03-28

Re: [PATCH] phy/at8031: enable at8031 to work on interrupt mode

From: Sergei Shtylyov <hidden>
Date: 2014-03-28 17:09:05
Also in: linuxppc-dev, lkml

Hello.

On 03/28/2014 10:36 AM, qiang.zhao@freescale.com wrote:
quoted
quoted
The at8031 can work on polling mode and interrupt mode.
Add ack_interrupt and config intr funcs to enable interrupt mode for
it.
quoted
quoted
Signed-off-by: Zhao Qiang <redacted>
---
   drivers/net/phy/at803x.c | 30 ++++++++++++++++++++++++++++++
   1 file changed, 30 insertions(+)
quoted
quoted
diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index
bc71947..d034ef5 100644
--- a/drivers/net/phy/at803x.c
+++ b/drivers/net/phy/at803x.c
[...]
quoted
@@ -191,6 +194,31 @@ static int at803x_config_init(struct phy_device
*phydev)
quoted
   	return 0;
   }

+static int at803x_ack_interrupt(struct phy_device *phydev) {
+	int err;
+
+	err = phy_read(phydev, AT803X_INSR);
quoted
     Could make this an initializer...
Thank you very much. However I have no idea about "make this an initializer".
	int err = phy_read(phydev, AT803X_INSR);

WBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help