提交 2abdc357 编写于 作者: D Dmitry Osipenko 提交者: Guenter Roeck

hwmon: (lm90) Unmask hardware interrupt

The ALERT interrupt is enabled by default after power-on, but it could
be masked by bootloader. For example this is the case on Acer A500 tablet
device. Unmask the hardware interrupt if interrupt is provided.
Signed-off-by: NDmitry Osipenko <digetx@gmail.com>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 94dbd23e
...@@ -1704,6 +1704,13 @@ static int lm90_init_client(struct i2c_client *client, struct lm90_data *data) ...@@ -1704,6 +1704,13 @@ static int lm90_init_client(struct i2c_client *client, struct lm90_data *data)
if (data->kind == max6696) if (data->kind == max6696)
config &= ~0x08; config &= ~0x08;
/*
* Interrupt is enabled by default on reset, but it may be disabled
* by bootloader, unmask it.
*/
if (client->irq)
config &= ~0x80;
config &= 0xBF; /* run */ config &= 0xBF; /* run */
lm90_update_confreg(data, config); lm90_update_confreg(data, config);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册