Fixes: 39c3a52c25 ("media: rockchip: isp: stop without waiting if isp idle for readback mode")
Change-Id: I80446449bf705819b0266e6a0cbdc9e2ee67b57e
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
size vmlinux:
before:
text data bss dec hex filename
2595092 1136900 85540 3817532 3a403c vmlinux
after:
text data bss dec hex filename
2639206 1147196 121300 3907702 3ba076 vmlinux
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2c88bec947fe1cf5f28cc0a8e2251fa4012f6165
Add iomap support for non-tailpacking uncompressed data in order to
support DIO and DAX.
Direct I/O is useful in certain scenarios for uncompressed files.
For example, double pagecache can be avoid by direct I/O when
loop device is used for uncompressed files containing upper layer
compressed filesystem.
This adds iomap DIO support for non-tailpacking cases first and
tail-packing inline files are handled in the follow-up patch.
Link: https://lore.kernel.org/r/20210805003601.183063-2-hsiangkao@linux.alibaba.com
Cc: linux-fsdevel@vger.kernel.org
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
[ Add include linux/uio.h and replace filemap_read with generic_file_buffered_read ]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I421298df25eb8b5cf22ad43339d168ac50777012
(cherry picked from commit a08e67a028)
The unit of VOP stride is word, so we return error to avoid userspace to
commit legal alignment.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I147f4985f4c6304db68efb0876c3f918da76ff52
This reverts commit 79c6a1e08b.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I0351b2a839fa984729ca167c66ca10231475ec5e
This reverts commit 21f2fd663e.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ica9d2358c14956a8233523b7b91e1a9d09d50632
This reverts commit 10e18d6585.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I32e5e13c2d9765c9cf1bbda4622731ec7a8c1848
This reverts commit 8880c05e5a.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1b00ac9fabb0825dcedf8719a840ac8138bdc81e
This reverts commit 383018f42d.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I27099b713ac3249acb628868c7255c51b2881371
This reverts commit 9d91ed824a.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ibb891bd5d9c8a1a56208b8b39402b9b7b04bdd4f
This reverts commit a22edac69e.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iae81cc96b1e1ac3073d1e0fe4cf6cdb55abf6103
This reverts commit 33b98bf612.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id265fd16b1531708478f07187f50fe23e74e427e
This reverts commit e165028391.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iaa80d3480d2e039cdd530e3278035c84553d07e7
This reverts commit 4925881228.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib7e1dd75ff948b7a190b4169037df83d4596b70e
This reverts commit 3212cfb965.
Use rk_system_heap.c instead of system_heap.c now, reverts all changes.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I023ebda5731f5c509c703799bfb96115701bdf9e
When rga2 uses sgt to generate the page table, length should be used
instead of dma_length, which will cause the length of the sgt after
the default_mapping_core to be the length of the entire dma_buf.
Update driver version to 1.2.20
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I07ad619b41554ededc0c5ade552a3bc176fef3f7
This is part of the workaround for HW_issue_of_fragment_endpoint_TERMINATED_responses,
though it is not expected to be triggered often.
Change-Id: I6b0cf15b8050ebacd3099f52af1a03d786c6ff44
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Note, the corresponding mali_csffw.bin for DDK g13 MUST be used.
Change-Id: I63c00b4eccd2e780aea2691faa2ecea6847c41e2
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
We can run "cat /sys/fs/pstore/boot-log-ramoops-0" to cat
tpl,spl,uboot,atf,optee boot log.
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Iffccd1bc6fa97c7e84f56c038b56caad8cd69c15
It is not only for mcu log now, includes tpl, spl, uboot,
atf, optee and so on.
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ia3bb0db39edf9cfba2ef41982a6134f0f20c5d53
Best parameter: 24M T0_1 650mV.
Should co-work with change like below:
&combphy0_ps {
+ rockchip,enable-ssc;
+ assigned-clock-rates = <24000000>;
status = "okay";
};
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I863b8d1758431c0037332e7da1b2c64cd7113573
Some of the pinmuxing bits described in rk3308_mux_recalced_data are wrong,
pointing to non-existing registers.
Fix the entire table.
Also add a comment in front of each entry with the same string that appears
in the datasheet to make the table easier to compare with the docs.
This fix has been tested on real hardware for the gpio3b3_sel entry.
Fixes: 7825aeb7b2 ("pinctrl: rockchip: add rk3308 SoC support")
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20220420142432.248565-1-luca.ceresoli@bootlin.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit 1f3e25a068)
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ide1ec0fdd675a29e3359049beb7777ec13b49738
GPIO nodes are not themselves busses, so passing rockchip_bank_match
here is wrong. Passing NULL instead uses the standard bus match table
which is more appropriate.
devm_of_platform_populate() shows that this is the normal way to call
of_platform_populate() from a device driver, so in order to match that
more closely also add the pinctrl device as the parent for the newly
created GPIO controllers.
Specifically, using the wrong match here can break dynamic GPIO hogs as
marking the GPIO bank as a bus means that of_platform_notify() will set
OF_POPULATED on new child nodes and if this happens before
of_gpio_notify() is called then the new hog will be skipped as
OF_POPULATED is already set.
Fixes: 9ce9a02039 ("pinctrl/rockchip: drop the gpio related codes")
Signed-off-by: John Keeping <john@metanate.com>
Link: https://lore.kernel.org/r/20211126151352.1509583-1-john@metanate.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit bceb6732f3)
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I21e0944d239cc85598b2638c952abadd85f55148
when doing cru reset, if there is an iommu operation, the device will be stuck
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Id29878b0ee56e5f33ecd64c25b2c6f8b0bcdf491
It's fine to call dev_err_probe() in ->probe() when error code is known.
Convert the driver to use dev_err_probe().
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 0045028f31)
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Id073cf03dc900550dae1c8a947e53693937b7de1
Use the devm_platform_get_and_ioremap_resource() helper instead of
calling platform_get_resource() and devm_ioremap_resource()
separately.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit fb17dcd73f)
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Idbdfaa90a0b614e59b393e436cebefb9aca6ffcc
Use temporary variable for struct device to make code neater.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit e4dd7fd5ff)
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I382e5c2276febe7774d954e70341ae548ce59855
Kernel doc validator is not happy:
.../pinctrl-rockchip.c:45: warning: This comment starts with '/**', but isn't a kernel-doc comment.
Drop it as it's indeed not a kernel doc comment.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 5a83227b3d)
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ib7d7e5efa9bb308d6173f0945928ad34b3c5ea5a