mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
11604a78765a6c004377844da37c23d146168de5
The operation mode of controller will change to peripheral when resume if PD is power off during suspend, current code disconnect hcd and set lx state to L3 in this case to make sure the controller will be reinit in device mode, but that's not enough, the op_state is still host which is change when init or ID change interrupt occur. If the ID change happened after suspend the driver would miss the interrupt, so when the application call the pullup function to stop gadget and start again to change to another function, the disconnect gadget operation can't be done and the gadget restart directly. This will result in NULL point when gadget work. This patch set op_state to OTG_STATE_B_PERIPHERAL when resume in this case. Change-Id: Ifbafb7fae43d634cfa879c9a066d1e114db4196e Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
…
…
…
…
…
…
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%