We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 559aa0e commit adb3abaCopy full SHA for adb3aba
drivers/usb/typec/tcpm/tcpm.c
@@ -6249,10 +6249,8 @@ static int tcpm_fw_get_caps(struct tcpm_port *port,
6249
port->port_type = port->typec_caps.type;
6250
port->pd_supported = !fwnode_property_read_bool(fwnode, "pd-disable");
6251
6252
- if (port->pd_supported) {
6253
- ret = fwnode_property_read_u32(fwnode, "pd-revision", &pd_revision);
6254
- port->typec_caps.pd_revision = !ret ? pd_revision & 0xffff : 0x0300;
6255
- }
+ ret = fwnode_property_read_u32(fwnode, "pd-revision", &pd_revision);
+ port->typec_caps.pd_revision = !ret ? pd_revision & 0xffff : 0x0300;
6256
6257
port->slow_charger_loop = fwnode_property_read_bool(fwnode, "slow-charger-loop");
6258
if (port->port_type == TYPEC_PORT_SNK)
0 commit comments