-
Notifications
You must be signed in to change notification settings - Fork 7
/
0001-nct6683.patch
39 lines (36 loc) · 1.23 KB
/
0001-nct6683.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
diff --git i/drivers/hwmon/nct6683.c w/drivers/hwmon/nct6683.c
index a23047a3b..c199b549a 100644
--- i/drivers/hwmon/nct6683.c
+++ w/drivers/hwmon/nct6683.c
@@ -1202,6 +1202,8 @@ static int nct6683_probe(struct platform_device *pdev)
int groups = 0;
char build[16];
+ pr_info("nct6683_probe\n");
+
res = platform_get_resource(pdev, IORESOURCE_IO, 0);
if (!devm_request_region(dev, res->start, IOREGION_LENGTH, DRVNAME))
return -EBUSY;
@@ -1218,6 +1220,7 @@ static int nct6683_probe(struct platform_device *pdev)
data->customer_id = nct6683_read16(data, NCT6683_REG_CUSTOMER_ID);
+ pr_info("data->customer_id = %x\n", data->customer_id);
/* By default only instantiate driver if the customer ID is known */
switch (data->customer_id) {
case NCT6683_CUSTOMER_ID_INTEL:
@@ -1229,6 +1232,8 @@ static int nct6683_probe(struct platform_device *pdev)
case NCT6683_CUSTOMER_ID_ASROCK:
break;
default:
+ pr_info("customer_id %x unhandled\n", data->customer_id);
+ force = true;
if (!force)
return -ENODEV;
}
@@ -1350,7 +1355,7 @@ static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data)
int addr;
u16 val;
int err;
-
+ pr_info("nct6683_find\n");
err = superio_enter(sioaddr);
if (err)
return err;