mfd: fusb302: fix fusb302 disconnect error.
authorwenping.zhang <wenping.zhang@rock-chips.com>
Tue, 20 Dec 2016 10:22:46 +0000 (18:22 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 26 Dec 2016 06:56:33 +0000 (14:56 +0800)
commit9c88c3dac1d8aaafe2a8870e59d263a6c6b248ca
treefedad1b952b07e694c49e4da322d028c86cd6197
parent7925bc3557a119fde43c68747b7ed724192dd01c
mfd: fusb302: fix fusb302 disconnect error.

shift the time of vbus enable before attach debounce started,
and merge the code of get_cc from chrome ec driver, which used
to fix connection disconnected issue.

Change-Id: I2fd1f83d0265b3770d75a59d622d0f650d737c5b
Signed-off-by: wenping.zhang <wenping.zhang@rock-chips.com>
drivers/mfd/fusb302.c
drivers/mfd/fusb302.h