mfd: fusb302: ignored the timeout if vdm got the message.
authorzain wang <wzz@rock-chips.com>
Wed, 10 May 2017 03:21:30 +0000 (11:21 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 11 May 2017 07:34:17 +0000 (15:34 +0800)
commite469f94ad87cef45dda8111525b1bed8081707fc
tree8b596a272e0684850942d4aefc0e68e23e308813
parentb0dcb82bd1140544c5cac8ca8f0c8aff9865b0e0
mfd: fusb302: ignored the timeout if vdm got the message.

The PD spec define the source should ensure that a message requesting
a response is responded within 30ms(tSenderResponse). But if the
message responded is received close to 30ms, we may hit the case:

tcpm_get_message(); //get the data and close to 30ms
... takes about 600us, meanwhile the 30ms timer came.
auto_vdm_machine
vdm_send... //we get the message, but timeout.

So, let's ignored the timeout if we get the message.

Change-Id: I64ced1bd2d32d8ef996dcec27cf35c3e333386f8
Signed-off-by: zain wang <wzz@rock-chips.com>
drivers/mfd/fusb302.c