MLK-18744 usb: typec: tcpm: qos handling fix
authorLi Jun <jun.li@nxp.com>
Wed, 9 Jan 2019 10:20:23 +0000 (15:50 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit3fb8a06472032692a40c543bd9cef2eb7cb4e2bf
tree4858c954a82e05ff0961f1052adcba5a756df754
parent63e8d7adde925cb0e4cfad6bc9d9c2313b2a8d22
MLK-18744 usb: typec: tcpm: qos handling fix

Commit 661b7ec2359e ("MLK-17921-2 staging: typec: tcpm: add qos for
PD transfer") introduce qos for tcpm transfer between typec controller
and CPU, but the request and remove are not balanced well, the initial
request should be moved to tcpm_port_register as tcpm_init will be called
for every hard reset, and also move qos hold&release to where port state
changes.

Fixes: 661b7ec2359e ("MLK-17921-2 staging: typec: tcpm: add qos for PD transfer")
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/usb/typec/tcpm.c