Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
linux-next
Commits
37dfa300
Commit
37dfa300
authored
Sep 12, 2021
by
Sebastian Krzyszkowiak
Browse files
usb: typec: tipd: Read active PDO on probe
Signed-off-by:
Sebastian Krzyszkowiak
<
sebastian.krzyszkowiak@puri.sm
>
parent
cebf129b
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/usb/typec/tipd/core.c
View file @
37dfa300
...
...
@@ -990,6 +990,13 @@ static int tps6598x_probe(struct i2c_client *client)
ret
=
tps6598x_connect
(
tps
,
status
);
if
(
ret
)
dev_err
(
&
client
->
dev
,
"failed to register partner
\n
"
);
if
((
TPS_POWER_STATUS_PWROPMODE
(
tps
->
pwr_status
)
==
TYPEC_PWR_MODE_PD
)
&&
(
!
(
status
&
TPS_STATUS_PORTROLE
)))
{
ret
=
tps6598x_get_active_pd_contract
(
tps
);
if
(
ret
)
dev_err
(
tps
->
dev
,
"failed to read pd contract: %d
\n
"
,
ret
);
}
}
else
{
tps6598x_mask_cc_int
(
tps
,
true
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment