drivers/power/supply/rk818_battery.c: In function 'rk818_bat_calc_zero_linek':
drivers/power/supply/rk818_battery.c:1741:25: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
1741 | else
| ^~~~
drivers/power/supply/rk818_battery.c:45:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
45 | do { \
| ^~
drivers/power/supply/rk818_battery.c:1743:33: note: in expansion of macro 'DBG'
1743 | DBG("ZERO-new: zero_linek adjust step6...\n");
| ^~~
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iefecf6fe6b44ba84850a89a6e8cc12637f801ac0
drivers/input/touchscreen/gslx680_pad.c:1045:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
1045 | if(ret)
| ^~
In file included from ./include/linux/device.h:15,
from drivers/input/touchscreen/gslx680_pad.c:15:
./include/linux/dev_printk.h:118:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
118 | _dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/input/touchscreen/gslx680_pad.c:1048:8: note: in expansion of macro 'dev_info'
1048 | dev_info(&ts->client->dev, "[tp-gsl] gsl_chip_id =[%d] \n",gsl_chip_id);
| ^~~~~~~~
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If4366c867ab6985e37708a4f89ed6d5460c74795
drivers/video/rockchip/rve/rve_drv.c: In function 'rve_irq_thread':
drivers/video/rockchip/rve/rve_drv.c:583:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
583 | if (DEBUGGER_EN(INT_FLAG))
| ^~
drivers/video/rockchip/rve/rve_drv.c:585:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
585 | goto skip_job_done;
| ^~~~
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib934fce7d8ba4240bc92dddde326887a05eb781a
Tested it with the below:
export CROSS_COMPILE=arm-linux-gnueabihf-
make ARCH=arm rockchip_linux_defconfig
make ARCH=arm rk3288-evb-rk808-linux.img -j1
Have the built error as follows.
CC drivers/media/platform/rockchip/cif/capture.o
drivers/media/platform/rockchip/cif/capture.c: In function 'rkcif_dvp_g_ch_id':
drivers/media/platform/rockchip/cif/capture.c:6850:17: warning: this 'if'
clause does not guard... [-Wmisleading-indentation]
error, forbidden warning:capture.c:6850
6850 | if ((frm_stat & DVP_CHANNEL2_FRM_READ) ==
| ^~
drivers/media/platform/rockchip/cif/capture.c:6853:25: note: ...this statement,
but the latter is misleadingly indented as if it were guarded by the 'if'
6853 | *intstat &= ~DVP_FRAME_END_ID2;
| ^
Change-Id: I5339a6b6d3641dde71a17139b415852117e97574
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Tested it with the below:
export CROSS_COMPILE=arm-linux-gnueabihf-
make ARCH=arm rockchip_linux_defconfig
make ARCH=arm rk3288-evb-rk808-linux.img -j1
Have the built error as follows.
CC drivers/video/rockchip/rga3/rga_policy.o
drivers/video/rockchip/rga3/rga_policy.c: In function 'rga_job_assign':
drivers/video/rockchip/rga3/rga_policy.c:243:25: warning: this 'if'
clause does not guard... [-Wmisleading-indentation]
error, forbidden warning:rga_policy.c:243
243 | if (DEBUGGER_EN(MSG))
| ^~
drivers/video/rockchip/rga3/rga_policy.c:245:33: note: ...this statement,
but the latter is misleadingly indented as if it were guarded by the 'if'
245 | continue;
| ^~~~~~~~
Change-Id: Ia39abe5fab5f857490b4709de516d97c5db567c0
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Add a ddrc clock into clk branches, so we can do ddr frequency
scaling on rk3288 platform in future.
Change-Id: Ia6c93e5ce82fa30475eddf051bc9ea2512b0cc07
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
fec aclk and core >= 3 * hclk
core min is 300M, and aclk 750M default, so set hclk to 100M
Change-Id: Ic218b3c692060d92a7b77e4e5933c6ed22e0c812
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
1/ update rk3326_linux.config to kernel5.10 by follow steps:
make ARCH=arm64 px30_linux_defconfig
cp .config tmp.config
make ARCH=arm64 px30_linux_defconfig rk3326_linux.config
./scripts/diffconfig -m tmp.config .config > \
arch/arm64/configs/rk3326_linux.config
2/ no change in rk3358_linux.config for LTE_RM310 \
doesn't support in kernel5.10
Change-Id: Ib365b412c9443a763e08ee24c68370901ba297f3
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
If the watchdog timer expires (WATCHDOG_FAULT bit = 1), the
device returns to default mode and charger disable.
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: Ieaa8287f6b1662e07446b9aecedb46b6770814b4
1、Fixes brightness is increasing to a stable value when
sensor’s exp reg is fixed value
2、Fixes cross stripe in the first 15 frame
this patch will delay 650us before frame start
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I95dc0f1e5ca8d5493665aa3911e84d306b8b78dd
When EAS can not find a best_energy_cpu, consider a idlest cpu as
a backup if it is a little power increased(<3.1%).
Test NenaMark2.apk on RK3588 EVB1 board:
without this patch: min-fps=57, avg-fps=59.4
with this patch: min-fps=60, avg-fps=60
Change-Id: Ibc99282c21fa32cbed1d4f5dcc66c76a6b120b70
Signed-off-by: Liang Chen <cl@rock-chips.com>
It is possible that there is no correct unmap for txbuffer, which may
cause some unknown problems.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ibbbe4d541c6bdd695c862a51a66b9ab511a74c0a
the battery TS pin is connected to an NTC thermistor for
battery temperature monitoring and protection in charge
mode according to JEITA profile.
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I4b07938438084a401db199ad6b660cb3335155df
The max frequency of A76 is 2.2GHz to 2.4GHz for rk3588, so make
sure all A76 is added to cpub_mask if the frequency is less than 2.4G.
Change-Id: I7d2e4a607acb127aafe385acc2840bdc6489d961
Signed-off-by: Liang Chen <cl@rock-chips.com>
For most scenarios, especially when a usb cable is connected,
enabling the ADC dither can get a better SNR.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Iedc0c6bd6aa9139feea9feb5ffa91a67373964fc