Commit 3a133f7
platform/x86: thinkpad_acpi: Fix Embedded Controller access on X380 Yoga
On the X380 Yoga, the `ECRD` and `ECWR` ACPI objects cannot be used for
accessing the Embedded Controller: instead of a method that reads from
the EC's memory, `ECRD` is the name of a location in high memory. This
meant that trying to call them would fail with the following message:
ACPI: \_SB.PCI0.LPCB.EC.ECRD: 1 arguments were passed to a non-method
ACPI object (RegionField)
With this commit, it is now possible to access the EC and read
temperature and fan speed information. Note that while writes to the
HFSP register do go through (as indicated by subsequent reads showing
the new value), the fan does not actually change its speed.
Signed-off-by: Daniel Bertalan <dani@danielbertalan.dev>
Link: https://lore.kernel.org/r/20230414180034.63914-1-dani@danielbertalan.dev
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>1 parent 14f6f0e commit 3a133f7
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11691 | 11691 | | |
11692 | 11692 | | |
11693 | 11693 | | |
| 11694 | + | |
11694 | 11695 | | |
11695 | 11696 | | |
11696 | 11697 | | |
| |||
11716 | 11717 | | |
11717 | 11718 | | |
11718 | 11719 | | |
| 11720 | + | |
| 11721 | + | |
| 11722 | + | |
| 11723 | + | |
| 11724 | + | |
| 11725 | + | |
| 11726 | + | |
| 11727 | + | |
| 11728 | + | |
| 11729 | + | |
| 11730 | + | |
| 11731 | + | |
| 11732 | + | |
| 11733 | + | |
| 11734 | + | |
11719 | 11735 | | |
11720 | 11736 | | |
11721 | 11737 | | |
| |||
0 commit comments