Commit 95c9d74
fwk: Require CONFIG_USB_POWER_DELIVERY for EC_FEATURE_USB_PD
The linux kernel driver cros-usbpd-charger uses host commands and events
commands from both configurations.
Currently it fails on all our platforms with the dmesg log:
[ 24.706760] cros-usbpd-charger cros-usbpd-charger.7.auto: No USB PD charging ports found
See Linux kernel sources:
- drivers/power/supply/cros_usbpd-charger.c
- EC_CMD_CHARGE_PORT_COUNT
- EC_CMD_USB_PD_PORTS
- EC_CMD_USB_PD_DISCOVERY
- EC_CMD_USB_PD_POWER_INFO
- EC_CMD_EXTERNAL_POWER_LIMIT
- drivers/platform/chrome/cros_usbpd_notify.c
- EC_CMD_PD_HOST_EVENT_STATUS
- drivers/mfd/cros_ec_dev.c
- EC_FEATURE_USB_PD
EC_FEATURE_USB_PD is bit 22.
```
ec:~> feat
0-31: 0x0247e6ae
32-63: 0x00000207
ec:~> feat
0-31: 0x0207e6ae
32-63: 0x00000207
```
BUG=FrameworkComputer/SoftwareFirmwareIssueTracker#2
BRANCH=fwk-main
TEST=Check feat command on EC console to check bit 22 is 0. And check dmesg on Linux for cros-usbpd-charger error message
Signed-off-by: Daniel Schaefer <dhs@frame.work>
(cherry picked from commit e444bed)1 parent d2443fc commit 95c9d74
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments