When UVC gadget as bulk mode connect to Linux (tested on Ubuntu 18.04),
it may occur twice set_alt for streaming interface, and the UVC state
is moved to "UVC_STATE_STREAMING" before process stream on event, so
amend to check the uvc state value to fix stream on error return.
Fixes: d471d7168a75 ("usb: gadget: uvc: fix NULL pointer dereference when usb hotplug")
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ib0d65c161d8680186ae26b2c8a0f6116b599c158
wait for complete is timeout sometimes when move step is very small,
because reinit_completion is called late.
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ic60aba4c2d5e3acc00888b534a96935be3ac09c9
Delaying the link training after hot reset, so that it's possible
to read/write some register status through the DBI.
The controller support delaying the Link Training by setting
app_dly2_en/done register.
Change-Id: Ic6d1b28ca42e3d355610db33f4e5086cf26d705c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Add the rkep device mode definition and sync with SPL.
Signed-off-by: Xiao Ya peng <yp.xiao@rock-chips.com>
Change-Id: I60e4809119cf60ddcafe45f6b5ccb11a19aa56e6
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Bar2 mapped memory resource do not have outbound configured and
can be used as general memory, using write buffer to improve data
transform rate.
Change-Id: I0b1e86ec47432e1cd13ee10db4895eca071db45d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
At interlace mode, the adjusted_mode->crtc_vdisplay will be div2 from
vdisplay, but the userspace is still set as adjusted_mode->vdisplay.
Fixes: bfc49df5158d ("drm/rockchip: vop3: plane display size check use
crtc_* parameter is more correct")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I6765e5486dc4d15b0b34b75370280d48500ef4da
This series in order to have the default MMC alias.
The mmc default alias:
mmc0 = &sdhci;
mmc1 = &sdmmc;
mmc2 = &sdio0;
The Linux OS have the post-build.sh to handle the rootfs,
and export RK_EXTRA_PARTITIONS for setting the PARTITIONS.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I27b5645200a645bee6c3dc2f4e95cdb23ba19ab8
It means printf(user) write log to tty fifo, to reduce printf time.
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Iaf55719e7089a7c3b3638e2976c97868eed3868e
When there is data outside of OIP in the status, the status data is
inaccurate and needs to be reconfirmed.
Change-Id: Ifb99d16bce53151252b5dfdfba4ac7077ed40775
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
On Linux OS, it is not necessary to enable CONFIG_DM_VERITY by default,
only required if secureboot or security related functions are enabled.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: If0c11c32bf3ea42a36fa7fa12fbd9cc4a464e200
Some projects config 4KB erase sizes for SPI NOR, which are
incompatible with 64KB in u-boot, and may cause functional
abnormalities or data loss.
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I90a026a4cd8cc2550f1cdb84db4602c2e239e51c