This default usb2 phy configuration of rv1106 and rv1103
isn't the best for HS signal quality. We should tuning
phy to get better HS eye height and slew rate.
And this patch also decrease the Rx squelch trigger point
for better compatibility.
Change-Id: Ie0356ac8f1250a820eddc2076c7258c60c0f3910
Signed-off-by: William Wu <william.wu@rock-chips.com>
Add one CONFIG to control removing the macros or not. On some platform,
configureing out the macros removes the associated members from the
structs, this reduces the object size of the slabs related with the
structs, therefore reduces the total slab memory consumption of system.
Besides, this also reduces vmlinux size a bit, therefore the total
kernel memory size increses a bit.
The macros are ANDROID_KABI_RESERVE, ANDROID_VENDOR_DATA,
ANDROID_VENDOR_DATA_ARRAY, ANDROID_OEM_DATA, ANDROID_OEM_DATA_ARRAY.
Bug: 206561931
Change-Id: I0868d299ccce3c4b39f42af17916828500be6cc4
Signed-off-by: Qingqing Zhou <quic_qqzhou@quicinc.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit b7a6c15a6f)
Send uevent for application when mute or volume was changed.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I482ee595fae893c6ae7a0d040588fa9ffcbc5538
At the moment of power lost, flash maybe work in a unkonw state,
and result in page write fail.
Using Reset IC 2.93v threshold to detect 3.3V IO can improve the
situation and revert this commit.
Change-Id: I0dbc4c971b4be13b0137269515a68e6593937087
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Add three helpers phy_clear/set/update_bits() for registers operation.
Change-Id: Ie11d355ca1d8856baced39c2caf82e143284e5a3
Signed-off-by: William Wu <william.wu@rock-chips.com>
If enable pop sound with DAC, pop sound may be recorded when the
ADC is opened to record sound with intermittent opening DAC.
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I8cec66b9c62fafa404a6a016d33d15680d5b780a
A internal PD can only power off by vsync when it attached
to a activated VP.
This fix this log:
[drm:vop2_crtc_atomic_disable] *ERROR* unexpected power on pd7
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ia6694ccc761f93e36dca3218a455f8ef73d04e86
1. set all irq non-secure
2. add gic_set_irq_secure and gic_set_irq_priority
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ie84ed3dae3110d8a4bb538ecbf96ea971ca29846
Sometimes, no need to use more DMA buffer, add a configurable
option from DTB.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I81883c1a3531b8805d554a34e07dc50735829ecc
To save memory space for ROCKCHIP_MINI_KERNEL
Changes to vmlinux size:
Before:
text data bss dec hex filename
4249223 1766500 134616 6150339 5dd8c3 vmlinux
After:
text data bss dec hex filename
4248379 1763012 134616 6146007 5dc7d7 vmlinux
delta: 4332 (dec)
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ib1cefe62cf968489cffe37043b29c341d4c60788
When do uvc hotplug test on RV1126 EVB, it may crash in the
uvc_v4l2_streamon() with the following error log. Because
it tries to enable the video stream after usb disconnect.
[ 1748.947755] configfs-gadget gadget: uvc_function_disable
[ 1748.947947] android_work: sent uevent USB_STATE=DISCONNECTED
[ 1748.955347] Unable to handle kernel NULL pointer dereference at virtual address 00000003
[ 1748.956158] pgd = ef2a7e72
[ 1748.956550] [00000003] *pgd=6dde7835
[ 1748.956893] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[ 1748.957381] Modules linked in: galcore(O) bcmdhd
[ 1748.957819] CPU: 3 PID: 2706 Comm: uvc_gadget_pthr Tainted: G W O 4.19.111 #9
[ 1748.958567] Hardware name: Generic DT based system
[ 1748.959218] PC is at uvcg_video_enable+0xb8/0x228
[ 1748.959775] LR is at vb2_core_streamon+0x11c/0x15c
......
[ 1749.041063] [<b056a2cc>] (uvcg_video_enable) from [<b0569968>] (uvc_v4l2_streamon+0x28/0x70)
[ 1749.041906] [<b0569968>] (uvc_v4l2_streamon) from [<b0590b54>] (__video_do_ioctl+0x1c8/0x3a0)
[ 1749.042681] [<b0590b54>] (__video_do_ioctl) from [<b0594288>] (video_usercopy+0x200/0x494)
[ 1749.043475] [<b0594288>] (video_usercopy) from [<b0220c38>] (do_vfs_ioctl+0xac/0x798)
[ 1749.044178] [<b0220c38>] (do_vfs_ioctl) from [<b0221358>] (ksys_ioctl+0x34/0x58)
[ 1749.044843] [<b0221358>] (ksys_ioctl) from [<b0101000>] (ret_fast_syscall+0x0/0x4c)
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I6bb58133aaade0ff389fa4af2cfc05fe598de250
This patch fix NULL pointer dereference with the following log
when usb gadget is configured as uvc.
PC is at usb_gadget_disconnect+0x3c/0x4a
LR is at dwc3_gadget_pullup+0xllb/0xl28
pc : [<b0lfa202>] lr : [<b0le67a7>] psr : 60000033
......
[<b0lfa202>] (usb_gadget_disconnect) from [<b0lfa227>] (usb_gadget_deactivate+0xl7/0x34)
[<b0lfa227>] (usb gadget-deactivate) from [<b0lf6e3b>] (usb function deactivate+0x3d/0x86)
[<b0lf6e3b>] (usb_function_deactivate) from [<b0202421>](uvc_function_disconnect+0xd/0x30)
[<b0202421>] (uvc_function_disconnect) from [<b0202a9b>](uvc_v412_release+0xlb/0x52)
[<b0202a9b>] (uvc_v412_release) from [<b0210291>](v412_release+0x73/0x7e)
[<b0210291>] (v412_release) from [<b007ea9f>] (_fput+0x43/0xc8)
[<b007ea9f>] (_fput) from[<b00239db>](task_work_run+0x5d/0x76)
[<b00239db>] (task_work_run) from [<b0016767>] (do_exit+0x2db/0x648)
[<b0016767>] (do_exit) from [<b0017343>] (do_group_exit+0x33/0x84)
[<b0017343>] (do_group_exit) from [<b00id2bf>](get_signal+0xl91/0x49a)
[<b00ld2bf>] (get_signal) from [<b000delf>] (do_work pending+0x87/0x26e)
[<b000delf>] (do_work pending) from [<b000828f>](slow_work _pending+0x9/0xl6)
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I838d62244e38a20f37ad9b530d5171c5e8de25c4