Commit Graph

1071962 Commits

Author SHA1 Message Date
Tao Huang
3b058a986f arm64: rockchip_gki.config: Enable CONFIG_CHARGER_SGM41542
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I30733b75d6ac53bdddd3ca0a9855cea2903be28d
2022-07-19 14:39:42 +08:00
Yu Qiaowei
4ddee5f575 video: rockchip: rga3: fix compile errors in kernel-4.19
And need to ensure that the commit exists in scatterlist.h of kernel-4.19:
commit 3d9c15bc2e91 ("BACKPORT: scatterlist: add generic wrappers for iterating over sgtable objects")

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I9cfe758954beedd3408e9f9d68f69f8e36566425
2022-07-18 18:53:24 +08:00
Luo Wei
dbff1c770a arm64: dts: rockchip: rk3588-vehicle-evb: add rockchip,android-usb-camerahal-enable
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I9970546c7aae69ef792c62eb2938e89388c378f0
2022-07-18 18:29:44 +08:00
Luo Wei
c2685381f8 arm64: rockchip_defconfig: enable CONFIG_VIDEO_NVP6188 default
used for rk3588 vehicle evb default

Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I334bda1d17af5f2fa42bb6ebeb641e563bdbb4b0
2022-07-18 18:28:34 +08:00
Chen Shunqing
fd903b0aeb drm/bridge: synopsys: dw-hdmi-qp: add cec enable config
HDMITX0/HDMITX1/HDMIRX cec only one can be enabled at the same time.

Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I1e8e444aa375bf80e69c7856d0bcb90e7a76071d
2022-07-18 18:24:20 +08:00
Ziyuan Xu
439c06b923 arm64: dts: rockchip: px30: add rng node for crypto v2 hwrng
Note that rng and crypto employ the same hardware resource, they're
incomatible.

Change-Id: I1ec49380bcc8b7ca23c1bf6b98220f0bb8b53938
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2022-07-18 17:55:10 +08:00
Lin Jinhan
80d6e73b8e arm64: dts: rockchip: px30 add crypto node
Change-Id: Ib8026ce7dd008d303decd61c41ec26b08b8782b1
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2022-07-18 17:53:19 +08:00
Yifeng Zhao
347d284ff8 phy: rockchip: naneng-combophy: adjust ssc ppm parameter for sata
Set the PLL SCC ppm adjust signal to 3500ppm for better compatibility.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I80aca9cd53aa08944bb929156dc9474118679b47
2022-07-18 15:12:42 +08:00
Xing Zheng
edb64ec7a5 ASoC: codecs: rv1106_codec: fix controlling ADC HPF
Dues to the broken doc, the value of enable/disable
ADC HPF should be 2'b11 and 2'b00.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I6108605bc1e5b92193c44af4f158fb954abaecf4
2022-07-18 15:08:08 +08:00
Wyon Bi
4217dba0c3 drm/bridge: analogix_dp: Fix spelling mistake "PATTREN" -> "PATTERN"
Fixes: 304dbb104d ("drm/bridge: analogix_dp: Add DP Test Automation")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I36c330443cffc2af66802d049655d400f62f849e
2022-07-18 09:57:02 +08:00
Tao Huang
57c895222f Revert "arm64: rockchip_gki.config: Enable CONFIG_ARM_SMMU_V3"
This reverts commit 8e6c4c23bc.

GKI kernel do not support two SMMU type.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I76aa01d44e7d76cb22d791842148a1369e77b3fc
2022-07-15 21:12:23 +08:00
Tao Huang
cf03561e5e PCI: aspm_ext: Fix Add missing MODULE_LICENSE()
ERROR: modpost: missing MODULE_LICENSE() in drivers/pci/pcie/aspm_ext.o

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id365aba7a73f02cc2c61882b46937250e64af01c
2022-07-15 21:01:27 +08:00
Tao Huang
0d74a37b0e regulator: wl2868c: Fix typo
drivers/regulator/wl2868c-regulator.c:252:26: error: use of undeclared identifier 'i2c_device_id';
MODULE_DEVICE_TABLE(i2c, i2c_device_id);

Fixes: 7f56984c21 ("regulator: Add WL2868C LDO support")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I66e1d2fc6716c42fccc6e65262b6124dec4d5cf8
2022-07-15 20:59:04 +08:00
Tao Huang
3b81ab0bff media: spi: rk1608: set vfs-only exports into their own namespace
According to gki commit d483eed85f ("ANDROID: GKI: set vfs-only exports into their own namespace").

ERROR: modpost: module rk1608 uses symbol kernel_write from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
ERROR: modpost: module rk1608 uses symbol kernel_read from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
ERROR: modpost: module rk1608 uses symbol filp_open from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I931ffc3ffb0a17717368da9fc65597da2bfd8eb0
2022-07-15 19:35:16 +08:00
Tao Huang
07944e3f80 video: rockchip: rga3: set vfs-only exports into their own namespace
According to gki commit d483eed85f ("ANDROID: GKI: set vfs-only exports into their own namespace").

ERROR: modpost: module rga3 uses symbol kernel_write from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
ERROR: modpost: module rga3 uses symbol filp_open from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib2f4958b5f7959bfd47982a4d3330f4290a70db2
2022-07-15 19:30:49 +08:00
Tao Huang
90bffb482b scripts/gcc-wrapper.py: ignore cgroup.h:35
In file included from ./include/trace/syscall.h:5,
                 from ./include/linux/syscalls.h:84,
                 from kernel/freezer.c:11:
./include/trace/hooks/cgroup.h:35:18: warning: 'struct cgroup_subsys' declared inside parameter list will not be visible outside of this definition or declaration
   35 |  TP_PROTO(struct cgroup_subsys *ss, struct cgroup_taskset *tset),
      |                  ^~~~~~~~~~~~~
./include/linux/tracepoint.h:577:34: note: in definition of macro 'DECLARE_EVENT_NOP'
  577 |  static inline void trace_##name(proto)    \
      |                                  ^~~~~
./include/trace/hooks/cgroup.h:35:2: note: in expansion of macro 'TP_PROTO'
   35 |  TP_PROTO(struct cgroup_subsys *ss, struct cgroup_taskset *tset),
      |  ^~~~~~~~

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Idb4fb52c8cf76ff02bae3940dc0ca8a0c480e697
2022-07-15 19:27:44 +08:00
Tao Huang
3d965dc60c Merge tag 'ASB-2022-07-05_12-5.10' of https://android.googlesource.com/kernel/common
https://source.android.com/security/bulletin/2022-07-01
CVE-2020-29374
CVE-2022-20227

* tag 'ASB-2022-07-05_12-5.10': (39 commits)
  ANDROID: GKI: Add symbols to abi_gki_aarch64_transsion
  BACKPORT: nfc: nfcmrvl: main: reorder destructive operations in nfcmrvl_nci_unregister_dev to avoid bugs
  ANDROID: vendor_hook: Add hook in __free_pages()
  ANDROID: create and export is_swap_slot_cache_enabled
  ANDROID: vendor_hook: Add hook in swap_slots
  ANDROID: mm: export swapcache_free_entries
  ANDROID: mm: export symbols used in vendor hook android_vh_get_swap_page()
  ANDROID: vendor_hooks: Add hooks to extend struct swap_slots_cache
  ANDROID: mm: export swap_type_to_swap_info
  ANDROID: vendor_hook: Add hook in si_swapinfo()
  ANDROID: vendor_hooks: Add hooks to extend the struct swap_info_struct
  ANDROID: vendor_hook: Add hooks in unuse_pte_range() and try_to_unuse()
  ANDROID: vendor_hook: Add hooks in free_swap_slot()
  ANDROID: vendor_hook: Add hook to update nr_swap_pages and total_swap_pages
  ANDROID: vendor_hook: Add hook in page_referenced_one()
  ANDROID: vendor_hooks: Add hooks to record the I/O statistics of swap:
  ANDROID: vendor_hook: Add hook in migrate_page_states()
  ANDROID: vendor_hook: Add hook in __migration_entry_wait()
  ANDROID: vendor_hook: Add hook in handle_pte_fault()
  ANDROID: vendor_hook: Add hook in do_swap_page()
  ...

Change-Id: I36501f339e4d9d46aade317ea3ccd32bce7f1b8c

Conflicts:
	drivers/usb/gadget/function/uvc_queue.c
2022-07-15 18:11:10 +08:00
Tao Huang
c7a43f0886 Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common
https://source.android.com/security/bulletin/2022-01-01
CVE-2022-24958
CVE-2022-20136
CVE-2022-23960
CVE-2022-20141
CVE-2021-4154
CVE-2022-20132

* tag 'ASB-2022-06-05_12-5.10': (1188 commits)
  BACKPORT: net/sched: cls_u32: fix netns refcount changes in u32_change()
  UPSTREAM: io_uring: always use original task when preparing req identity
  FROMLIST: remoteproc: Fix dma_mem leak after rproc_shutdown
  FROMLIST: dma-mapping: Add dma_release_coherent_memory to DMA API
  ANDROID: Update QCOM symbol list for __reset_control_get
  ANDROID: vendor_hooks: Add hooks for mutex
  BACKPORT: can: ems_usb: ems_usb_start_xmit(): fix double dev_kfree_skb() in error path
  BACKPORT: can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: oplus: Update the ABI xml and symbol list
  UPSTREAM: remoteproc: Fix count check in rproc_coredump_write()
  BACKPORT: esp: Fix possible buffer overflow in ESP transformation
  ANDROID: Fix the drain_all_pages default condition broken by a hook
  UPSTREAM: Revert "xfrm: xfrm_state_mtu should return at least 1280 for ipv6"
  UPSTREAM: xfrm: fix MTU regression
  ANDROID: signal: Add vendor hook for memory reaping
  FROMGIT: usb: gadget: uvc: allow for application to cleanly shutdown
  FROMGIT: usb: dwc3: gadget: increase tx fifo size for ss isoc endpoints
  UPSTREAM: usb: gadget: configfs: clear deactivation flag in configfs_composite_unbind()
  FROMGIT: usb: gadget: uvc: remove pause flag use
  ...

Change-Id: Idf3eea3b21dc69c8189161c0e24744336431913a

Conflicts:
	drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
	drivers/spi/spi-rockchip.c
	drivers/usb/gadget/function/f_uvc.c
	drivers/usb/gadget/function/uvc.h
	drivers/usb/gadget/function/uvc_configfs.c
	drivers/usb/gadget/function/uvc_queue.c
	drivers/usb/gadget/function/uvc_video.c
	sound/soc/rockchip/rockchip_i2s.c
2022-07-15 17:58:38 +08:00
Tao Huang
62ca347b51 Merge tag 'ASB-2022-05-05_12-5.10' of https://android.googlesource.com/kernel/common
https://source.android.com/security/bulletin/2022-05-01
CVE-2022-0847
CVE-2022-20009
CVE-2022-20008
CVE-2021-22600

* tag 'ASB-2022-05-05_12-5.10': (116 commits)
  UPSTREAM: usb: dwc3: gadget: Replace list_for_each_entry_safe() if using giveback
  UPSTREAM: usb: dwc3: Issue core soft reset before enabling run/stop
  UPSTREAM: usb: dwc3: gadget: Wait for ep0 xfers to complete during dequeue
  ANDROID: Update QCOM symbol list for trace_map/unmap
  ANDROID: fix KCFLAGS override by __ANDROID_COMMON_KERNEL__
  ANDROID: vendor_hooks: tune reclaim scan type for specified mem_cgroup
  ANDROID: vendor_hooks: Add hooks for rwsem
  ANDROID: Add flag to indicate compiling against ACK
  ANDROID: GKI: build damon reclaim
  FROMLIST: mm/damon/reclaim: Fix the timer always stays active
  BACKPORT: treewide: Add missing includes masked by cgroup -> bpf dependency
  UPSTREAM: mm/damon: modify damon_rand() macro to static inline function
  UPSTREAM: mm/damon: add 'age' of region tracepoint support
  UPSTREAM: mm/damon: hide kernel pointer from tracepoint event
  UPSTREAM: mm/damon/vaddr: hide kernel pointer from damon_va_three_regions() failure log
  UPSTREAM: mm/damon/vaddr: use pr_debug() for damon_va_three_regions() failure logging
  UPSTREAM: mm/damon/dbgfs: remove an unnecessary variable
  UPSTREAM: mm/damon: move the implementation of damon_insert_region to damon.h
  UPSTREAM: mm/damon: add access checking for hugetlb pages
  UPSTREAM: mm/damon/dbgfs: support all DAMOS stats
  ...

Change-Id: I3498d4868ff86bec30e74dab9e541d787c2bd5ac

Conflicts:
	drivers/android/Kconfig
	drivers/usb/dwc3/gadget.c
2022-07-15 17:46:01 +08:00
Tao Huang
24cbee6672 Merge tag 'ASB-2022-04-05_12-5.10' of https://android.googlesource.com/kernel/common
https://source.android.com/security/bulletin/2022-04-01
CVE-2021-0707
CVE-2021-39800
CVE-2021-39801 (4.9 only)
CVE-2021-39802

* tag 'ASB-2022-04-05_12-5.10': (3832 commits)
  ANDROID: GKI: Update symbols to abi_gki_aarch64_oplus
  ANDROID: vendor_hooks: Reduce pointless modversions CRC churn
  UPSTREAM: locking/lockdep: Avoid potential access of invalid memory in lock_class
  ANDROID: mm: Fix implicit declaration of function 'isolate_lru_page'
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: GKI: Add hook symbol to symbol list
  Revert "ANDROID: dm-bow: Protect Ranges fetched and erased from the RB tree"
  ANDROID: vendor_hooks: Add hooks to for free_unref_page_commit
  ANDROID: vendor_hooks: Add hooks to for alloc_contig_range
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: vendor_hooks: Add hook in shrink_node_memcgs
  ANDROID: GKI: Add symbols to symbol list
  FROMGIT: iommu/iova: Improve 32-bit free space estimate
  ANDROID: export walk_page_range and swp_swap_info
  ANDROID: vendor_hooks: export shrink_slab
  ANDROID: usb: gadget: f_accessory: add compat_ioctl support
  UPSTREAM: sr9700: sanity check for packet length
  UPSTREAM: io_uring: return back safer resurrect
  UPSTREAM: Revert "xfrm: state and policy should fail if XFRMA_IF_ID 0"
  ...

Change-Id: Ic61ead530b99b10ffd535a358a48fe9bb8c33fd4

Conflicts:
	drivers/android/Kconfig
	drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
	drivers/gpu/drm/rockchip/rockchip_vop_reg.c
	drivers/i2c/busses/i2c-rk3x.c
	drivers/media/i2c/imx258.c
	drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
	drivers/usb/dwc2/gadget.c
	drivers/usb/gadget/function/uvc.h
	lib/Kconfig.debug
2022-07-15 17:40:39 +08:00
Tao Huang
2a984af32b Revert "usb: typec: fusb302: fix i_comp and i_bc_lvl interrupt"
This reverts commit 94dab507e0.

Replaced by commit 00f1038c72 ("usb: typec: fusb302: Fix masking of comparator and bc_lvl interrupts")

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2022-07-15 17:28:27 +08:00
Tao Huang
5e7f6915a1 Revert "usb: gadget: accessory: add compat_ioctl"
This reverts commit 349bb1466b.

Replaced by commit 74720dae8b ("ANDROID: usb: gadget: f_accessory: add compat_ioctl support")

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2022-07-15 17:28:11 +08:00
Tao Huang
f7e79c99d7 Revert "net: ethernet: stmmac: Add STMMAC_PTP config option"
This reverts commit 2d1e65714c.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Idf56629b15c26e9a28de4c1ba525c7423c7d009e
2022-07-15 17:22:08 +08:00
Jianqun Xu
7fd121907b Revert "dma-buf: heaps: system_heap: fix to sg_dma_address"
This reverts commit 88970bdcdb.

The dmabuf sync operation has a origin DMA_BUF_IOCTL_SYNC which can sync
dmabuf with size of the buffer, i.e all range sync.

On rockchip, the dmabuf sync implements DMA_BUF_IOCTL_SYNC_PARTIAL which
can sync dmabuf with partial size of the buffer.

On rockchip, the userspace call partial sync without a device mapped to
the dmabuf, that actually not according to the dma-api rules, but things
can not be changed. In this case, the partial sync must to work with a
scatterlist table hasn't been mapped, the sg_dma_address(sg) hasn't been
set. The partial sync should use sg_phys(sg) instead which always has a
good value.

Change-Id: I804e033921f2f72c79fed1a73def78bcbd34b71d
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2022-07-15 16:53:56 +08:00
Jianqun Xu
3212cfb965 dma-buf: heaps: system_heap: partial sync with sgtable from heap buffer
The dma-heap will allocate a scatterlist table at alloc time and store
into the heap buffer. Usually a device should attach to the dmabuf and
then map the dmabuf with the attachment, a new scatterlist table will be
created and set during dma map.

In the dma map, the sg_dma_address will be set for the first scatter of
the scatterlist table, if the device has a iommu domain, sg_dma_address
is set with the iova start address, else it will be set with a physical
address.

For a dmabuf hasn't been dma mapped, the sg_dma_address is a error value
(-1 = DMA_MAPPING_ERROR).

The partial sync hits the case that no device mapped to the dmabuf.

It's not easy to support both iommu/no iommu devices for partial sync,
this patch make the partial sync simple to implement for no iommu case.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ib5d0715c4bde95bc444d6fbb873456c94755f550
2022-07-15 16:53:56 +08:00
Jianqun Xu
4925881228 dma-buf: heaps: system_heap: fix to for_each_sgtable_sg
Switch to use for_each_sgtable_sg to use orig_nents instead of nents for
the for the partial sync sgl.

struct sg_table is a common structure used for describing a memory
buffer. It consists of a scatterlist with memory pages and DMA addresses
(sgl entry), as well as the number of scatterlist entries: CPU pages
(orig_nents entry) and DMA mapped pages (nents entry).

It turned out that it was a common mistake to misuse nents and orig_nents
entries, calling the scatterlist iterating functions with a wrong number
of the entries.

To avoid such issues, lets introduce a common wrappers operating directly
on the struct sg_table objects, which take care of the proper use of
the nents and orig_nents entries.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I3f88b98f43b07f97c56b949f7625bebbc65dec26
2022-07-15 16:53:56 +08:00
Lin Jinhan
8050236b61 ARM: configs: rv1106-smart-door: enable ROCKCHIP_HW_DECOMPRESS_USER
Startup time  : essentially unchanged.
Firmware size : increase about 1KByte.

Change-Id: Ib079e04681a3249132bff2b298f8c4945af3d20a
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2022-07-15 15:42:43 +08:00
Lin Jinhan
2035a4673c soc: rockchip: add hardware decompression user interface
Export the hardware decompression interface to the user layer.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I033f0beabc2e44022418dcd06798ad94e971ff10
2022-07-15 15:42:35 +08:00
Yu Qiaowei
17b7ac8a5b video: rockchip: rga3: check mm_flag when mapping dma-buf
This part of the information is printed when the mapping fails
due to MMU limitations.

Update driver version to 1.2.17

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I2d6e4219ebc54d285bc9c25742f93503f7633b5e
2022-07-15 15:42:11 +08:00
Yu Qiaowei
fb617a18f5 video: rockchip: rga3: remove useless code about rga_job
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I004f35942c3300a173b0aae785bc750bb0497a55
2022-07-15 15:42:11 +08:00
Yu Qiaowei
a74de1825b video: rockchip: rga3: Get current_mm in request
Make sure to get the correct current_mm in asynchronous mode.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Iec2b989e072b68b88d920ce8591924168bac3a7e
2022-07-15 15:42:11 +08:00
Yu Qiaowei
5bd1341b7f video: rockchip: rga3: mpi-mode adapted to batch mode
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I51f38752edc49bb6d47b657a185f0dbfcecf133f
2022-07-15 15:42:11 +08:00
Yu Qiaowei
c93d87e863 video: rockchip: rga3: blit-command adapted to batch mode
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I1b5d25396cf26b10df8c4e62357ec0e203018b7b
2022-07-15 15:42:11 +08:00
Yu Qiaowei
0251aeb09b video: rockchip: rga3: fixed no put_request when request_config exits abnormally
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I82f359e6bec4c405642c8e0fb870596f5713ccb9
2022-07-15 15:42:11 +08:00
Jianqun Xu
aab138a4a6 drm/rockchip: rockchip_drm_vop2 avoid division by zero
WARN on when the frame time is '0'.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Id949b5b9178f67b54622439e8f95c23236f6f1c9
2022-07-15 15:22:53 +08:00
Tao Huang
252911111b media: rockchip: ispp: set vfs-only exports into their own namespace
According to gki commit d483eed85f ("ANDROID: GKI: set vfs-only exports into their own namespace").

ERROR: modpost: module video_rkispp uses symbol kernel_write from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
ERROR: modpost: module video_rkispp uses symbol filp_open from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia96b7434d14187e0f3fce5bdf59956d3644db50c
2022-07-15 14:57:58 +08:00
Tao Huang
42a2baccb2 input: touchscreen: gt1x: set vfs-only exports into their own namespace
According to gki commit d483eed85f ("ANDROID: GKI: set vfs-only exports into their own namespace").

ERROR: modpost: module gt1x-ts uses symbol filp_open from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2b25adf85977f90958292ef2af91c1ab6e5aa3e4
2022-07-15 14:57:47 +08:00
Tao Huang
8eb1d1f6c0 input: touchscreen: elan5515: set vfs-only exports into their own namespace
According to gki commit d483eed85f ("ANDROID: GKI: set vfs-only exports into their own namespace").

ERROR: modpost: module tp_elan_5515 uses symbol filp_open from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I22f2fd565c01e804d1e252d6a33dcb62a7b73f62
2022-07-15 14:57:35 +08:00
Tao Huang
264acab70b input: sensors: mc3230: set vfs-only exports into their own namespace
According to gki commit d483eed85f ("ANDROID: GKI: set vfs-only exports into their own namespace").

ERROR: modpost: module mc3230 uses symbol filp_open from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I29d6a1c79987dc30f4870c42e2995e7045e635ac
2022-07-15 14:57:21 +08:00
Tao Huang
31d7384ebb drm/rockchip: cdn-dp-core: Fix cdn_dp_connector_mode_valid return type
mode_valid should return enum drm_mode_status.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5525403ad0d637dd41c3ac805d92d186332a8c5b
2022-07-15 14:50:34 +08:00
Tao Huang
5d64d87645 drm/rockchip: dsi2: Fix dw_mipi_dsi2_connector_mode_valid return type
Fix CFI violation:
Kernel panic - not syncing: CFI failure (target: dw_mipi_dsi2_connector_mode_valid+0x0/0x8)

mode_valid should return enum drm_mode_status.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic59e7dda400c7eb18c8b29d6889f4a88d277a780
2022-07-15 14:39:00 +08:00
Zefa Chen
aa12781766 media: rockchip: vicap fixed toisp fs interrupt mask error
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I524c60e2c99f49a98b90d5e18aa50592c55863d2
2022-07-14 20:21:27 +08:00
Zefa Chen
0bd81e611e media: i2c: sensor adapter add ioctl RKMODULE_SET_SENSOR_INFOS
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Id1a95c59168a59b4612b779ebb41e4ad711943f0
2022-07-14 20:19:47 +08:00
Zefa Chen
1e7c74a7aa include: uapi: linux: rk-camera-module: add commond RKMODULE_SET_SENSOR_INFO
Its for sensor adapter to sync all of sensor state, to avoid isp getting the wrong state
in the case of app execution order: sensor0 config param -> run isp0 ... sensorn config param -> run ispn

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I90cc6a1716d5198150b5a0897ada0412622b72d3
2022-07-14 20:09:36 +08:00
Tao Huang
8106e54bdf net: wireless: rockchip: rkwifi: bcmdhd: set vfs-only exports into their own namespace
According to gki commit d483eed85f ("ANDROID: GKI: set vfs-only exports into their own namespace").

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie75429695e0f23ada39d8677a918e5b1c0b8fd97
2022-07-14 19:44:59 +08:00
Tao Huang
18f2a774bc rk: Makefile: Call gcc-wrapper.py use absolute path
Fixes: c2482146d1 ("rk: Makefile: add gcc-wrapper")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I6442c206c797573d57ef1976b4a30316235f4e03
2022-07-14 19:44:59 +08:00
Jianqun Xu
f2f7901e85 power: supply: rk817_battery avoid division by zero
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I811e0a0720a17879bfe36c03b44c2bbfd35355a6
2022-07-14 14:37:19 +08:00
Cai YiWei
7b7b2c475a media: rockchip: isp: add slab.h fix compile
Change-Id: Ie062a9ab953c1d8f9210f895af14e35d775917c3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-07-14 14:26:37 +08:00
Algea Cao
37b7830dd3 drm/rockchip: dw_hdmi: Get uboot hdmi color format
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I06bbd4a8888716a4b209a81f219309304a18420f
2022-07-14 14:25:59 +08:00
Zefa Chen
3417af9ec0 phy: rockchip: csi2-dphy: fixed logic error about clk1_en
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I03dc62115346a5908d27ecf83b1705a96dc4bd53
2022-07-14 14:14:40 +08:00