projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71839f7
)
sfc: Read-to-clear LM87 alarm/interrupt status at start of day
author
Ben Hutchings
<bhutchings@solarflare.com>
Thu, 2 Dec 2010 13:46:31 +0000
(13:46 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 3 Dec 2010 17:08:04 +0000
(09:08 -0800)
We do not want to shut down the board based on a fault that has
already been cleared.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/falcon_boards.c
patch
|
blob
|
history
diff --git
a/drivers/net/sfc/falcon_boards.c
b/drivers/net/sfc/falcon_boards.c
index 86180ee02ec07e50e037367fcf7cb6e33a5bd995..6c20d4569d813fcef28a2c6bc919aae1896fe0f9 100644
(file)
--- a/
drivers/net/sfc/falcon_boards.c
+++ b/
drivers/net/sfc/falcon_boards.c
@@
-99,6
+99,10
@@
static int efx_init_lm87(struct efx_nic *efx, struct i2c_board_info *info,
if (!client)
return -EIO;
+ /* Read-to-clear alarm/interrupt status */
+ i2c_smbus_read_byte_data(client, LM87_REG_ALARMS1);
+ i2c_smbus_read_byte_data(client, LM87_REG_ALARMS2);
+
rc = efx_poke_lm87(client, reg_values);
if (rc)
goto err;