Usb controller require the clk from phy to work normally. In the
current code, if the dr_mode is set to peripheral and limit to
high speed, there are two cases that usb controller will work
abnormally due to phy power off.
1. The USB cable is not plug in when system start up, at this
time, the otg_sm_work will call rockchip_usb2phy_power_off to
suspend phy. However, if the upper layer uses configfs to operate
the controller after phy power off, controller will work abnormally.
2. Plug in the usb cable and start up the system, the controller
works in peripheral mode and PC recongnize it. IF we unplug the
usb cable, the vbus will not detected, otg_sm_work will also call
rockchip_usb2phy_power_off to suspend phy, when the upper layer
use configfs to operate the controller, phy has been suspended,
controller will work abnormally.
To fix these cases, this patch add a new property "rockchip,dis-u2-
susphy" to avoid phy power off.
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Change-Id: I6c9921c8060747667d7bedb2cf76a38a896c05f5
if disable dma capture in fe intr, register write to device may delay after real fs,
the register need effect in next real fs, may cause iommu error or size error
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I451c18f175e89c5ddf7c8a31f2f288dd8c01a8f1
Currently the psci node is in rk3288-linx/android.dtsi file, move them
into the core dt file.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I0265719ab4eb6b05cb3c9414fd54f916fcce9d77
The camera device should keep *power on* until stream off, that make
sure the mclk is enable.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Iad14d6648b24c5e9202ba2cef2199e35fbe18fbb
The xHCI SuperSpeed instance in park mode would fail to recover, thus on
Rockchip SoCs when there is high load on the xHCI port. Such as a USB3
HUB with two USB3 disks are plugged in and do write/read test
continuously, the controller may crash like:
xhci-hcd xhci-hcd.9.auto: xHCI host not responding to stop endpoint command.
xhci-hcd xhci-hcd.9.auto: USBSTS: 0x00000000
xhci-hcd xhci-hcd.9.auto: xHCI host controller not responding, assume dead
xhci-hcd xhci-hcd.9.auto: HC died; cleaning up
xhci-hcd xhci-hcd.9.auto: xHCI host not responding to stop endpoint command.
xhci-hcd xhci-hcd.9.auto: USBSTS: 0x00001001 HCHalted HCE
usb 7-1: USB disconnect, device number 2
sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK cmd_age=35s
sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 12 cc 80 00 02 00 00
blk_update_request: I/O error, dev sdb, sector 1232000 op 0x0:(READ) flags 0x80700 phys_seg 8 prio class 0
So set the PARKMODE_DISABLE_SS bit in the DWC3_USB3_GUCTL1 to mitigate the issue.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I57a180dbd820b105bd70d0d8834c163de1ac0597
This reverts commit 4b9ba5d213.
Delete this unused driver.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I2ba96feb73c5ea98d3945478eb90773efe4eed0d
This reverts commit ecc6097c8d.
Delete this unused driver.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ie6af8864560413df85e14b5c1d00df19ca0142ba
This reverts commit ad3d90b0ba.
Delete this unused driver.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ie3f71ea9cfb53751e7f1370ca95acfe9726e9696
This reverts commit 24af5158d9.
Delete this unused driver.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I8b674c8b65bcd83e3d1be3c0dcc68fdf0e7f07ed
This reverts commit 530d7e8c7c.
Delete this unused driver.
Change-Id: I5d478b7002bf1eb6aeba42ab2d1ccdb70c47367f
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This reverts commit 673d3358b0.
Delete this unused driver.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I157ef462ad5334c17389f39a71f109976896ca4f