Commit c55a8e2
hwmon: (gpd-fan) initialize EC on driver load for Win 4
The original implement will re-init the EC when it reports a zero
value, and it's a workaround for the black box buggy firmware.
Now a contributer test and report that, the bug is that, the firmware
won't initialize the EC on boot, so the EC ramains in unusable status.
And it won't need to re-init it during runtime. The original implement
is not perfect, any write command will be ignored until we first read
it. Just re-init it unconditionally when the driver load could work.
Fixes: 0ab88e2 ("hwmon: add GPD devices sensor driver")
Co-developed-by: kylon <[email protected]>
Signed-off-by: kylon <[email protected]>
Link: Cryolitia/gpd-fan-driver#20
Signed-off-by: Cryolitia PukNgae <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>1 parent 9efb297 commit c55a8e2
1 file changed
Lines changed: 25 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | 279 | | |
305 | 280 | | |
306 | 281 | | |
| |||
320 | 295 | | |
321 | 296 | | |
322 | 297 | | |
| 298 | + | |
323 | 299 | | |
324 | 300 | | |
325 | 301 | | |
326 | | - | |
327 | | - | |
328 | 302 | | |
329 | 303 | | |
330 | 304 | | |
| |||
607 | 581 | | |
608 | 582 | | |
609 | 583 | | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
610 | 606 | | |
611 | 607 | | |
612 | 608 | | |
| |||
634 | 630 | | |
635 | 631 | | |
636 | 632 | | |
| 633 | + | |
| 634 | + | |
637 | 635 | | |
638 | 636 | | |
639 | 637 | | |
| |||
0 commit comments