Since the original mtu is not used when the mtu is updated,
the mtu is aligned with cache, this will get an incorrect.
For example, if you want to configure the mtu to be 1500,
but mtu 1536 is configured in fact.
Fixed: eaf4fac478 ("net: stmmac: Do not accept invalid MTU values")
Change-Id: I0dc9fee8540fe76d1e583112bbe5326091b8a901
Signed-off-by: David Wu <david.wu@rock-chips.com>
Link: https://lore.kernel.org/r/20210113034109.27865-1-david.wu@rock-chips.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 5b55299eed)
divide rk3568 mipi csi2 dphy dev into three logic dev:
dphy0 for full mode, dphy1 and dphy2 for split mode
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: Icd4b282b72aa90ca7acd2e02625ae56830c3b12a
Vcnt is stored in the upper 16 bits.
We should wait for the frame start irq status from
low to high.
Fixes: e6113fb4c5b3 ("drm/rockchip: vop2: wait for next frame when close to
frame start of previous vp")
Change-Id: I8dd0930800ada9796f616d9b3ec1962d213aa9b3
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
isp2.0 one frame read back many times and gain
address will updated at each read back end. To make
sure gain buffer update right, so one last read back
to the frame start to config next buf, and the frame end
will update to shadow reg for ready to receive next frame.
Change-Id: I1be92f92f9489b7d1ffb5ca72a510e9ea45f5ab0
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
tips:
1. rcb_size == 0, skip it.
2. if current rcb_size is larger then the remaining buffer size,
skip it instead of break.
Change-Id: Ide37ccbf0af9ceb3f4a6f6fe5e7045bfbd8ddc74
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This patch add uevent to notify the application layer how much ppm
is different between USB clk and AUDIO clk.
The event include two parts USB_STATE and PPM. For example:
g_audio_work: sent uac uevent USB_STATE=SET_AUDIO_CLK PPM=12
g_audio_work: sent uac uevent USB_STATE=SET_AUDIO_CLK PPM=-1
Note: The ppm compensation depends on the method implement of
clk drift and compensation in the rockchip_pdm.c driver. So if
you want the ppm compensation to take effect, please make sure
the commit "ASoC: rockchip: pdm: Add support for clk compensation"
is merged.
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: Id25411397fe376342c773c11f1989ed5854f8ad9
This reverts commit 52d7b98f85.
There is no need to keep HZ=1000 after commit 3be6453a90
("kthread: do not preempt current task if it is going to call schedule()").
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I42632c8dab553762574249e7fc219a50a9cf5323
This reverts commit 9a883c648a.
There is no need to keep HZ=1000 after commit 3be6453a90
("kthread: do not preempt current task if it is going to call schedule()").
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id035e01cbf274dce0e6f12caef7f4eeb7efc2406
Sync to gki_defconfig
CONFIG_BLK_DEV_LOOP_MIN_COUNT must be at least 16 in order
to pass VTS.
Change-Id: I3a0f0a77f8a60cf8a3e48683657f10e160927c58
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Sync to gki_defconfig
CONFIG_BLK_DEV_LOOP_MIN_COUNT must be at least 16 in order
to pass VTS.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I15e46ac79dc6f149914a540e311369177bccdc23
Sync to gki_defconfig
Before:
text data bss dec hex filename
13465267 4345690 2113400 19924357 1300585 vmlinux
After:
text data bss dec hex filename
13473410 4411226 2113400 19998036 1312554 vmlinux
Change-Id: I023ce20549e9d65198b8a23affe4c9739f867103
Signed-off-by: Tao Huang <huangtao@rock-chips.com>