summaryrefslogtreecommitdiff
path: root/drivers/media/platform/msm (follow)
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'msm8998/lineage-20' into lineage-20Raghuram Subramani2024-10-17
| | | | Change-Id: I126075a330f305c85f8fe1b8c9d408f368be95d1
* Merge lineage-20 of git@github.com:LineageOS/android_kernel_qcom_msm8998.git ↵Davide Garberi2023-08-03
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into lineage-20 1a4b80f8f201 ANDROID: arch:arm64: Increase kernel command line size 7c253f7aa663 of: reserved_mem: increase max number reserved regions df4dbf557503 msm: camera: Fix indentations 2fc4a156d15d msm: camera: Fix code flow when populating CAM_V_CUSTOM1 687bcb61f125 ALSA: control: use counting semaphore as write lock for ELEM_WRITE operation 75cf9e8c1b1c ALSA: control: Fix memory corruption risk in snd_ctl_elem_read 76cf3b5e53df ALSA: control: code refactoring for ELEM_READ/ELEM_WRITE operations e9af212f9685 ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent UAF 95fc4fff573f msm: kgsl: Make sure that pool pages don't have any extra references 59ceabe0d242 msm: kgsl: Use dma_buf_get() to get dma_buf structure d1f19956d6b9 ANDROID: usb: f_accessory: Check buffer size when initialised via composite 2d3ce4f7a366 kbuild: handle libs-y archives separately from built-in.o archives 65dc3fbd1593 kbuild: thin archives use P option to ar 362c7b73bac8 kbuild: thin archives for multi-y targets 43076241b514 kbuild: thin archives final link close --whole-archives option aa04fc78256d kbuild: minor improvement for thin archives build f5896747cda6 Merge tag 'LA.UM.7.2.c25-07700-sdm660.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/wlan/qcacld-3.0 into android13-4.4-msm8998 321ac077ee7e qcacld-3.0: Fix out-of-bounds in tx_stats 42be8e4cbf13 BACKPORT: usb: gadget: rndis: prevent integer overflow in rndis_set_response() b490a85b5945 FROMGIT: arm64: fix oops in concurrently setting insn_emulation sysctls 7ed7084b34a9 FROMLIST: binder: fix UAF of ref->proc caused by race condition e31f087fb864 ANDROID: selinux: modify RTM_GETNEIGH{TBL} 80675d431434 UPSTREAM: usb: gadget: clear related members when goto fail fb6adfb00108 UPSTREAM: usb: gadget: don't release an existing dev->buf e4a8dd12424e UPSTREAM: USB: gadget: validate interface OS descriptor requests 8f0a947317e0 UPSTREAM: usb: gadget: rndis: check size of RNDIS_MSG_SET command 1541758765ff ion: Do not 'put' ION handle until after its final use 03b4b3cd8d30 Merge tag 'LA.UM.7.2.c25-07000-sdm660.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/wlan/qcacld-3.0 into android13-4.4-msm8998 7dbda95466d5 Merge tag 'LA.UM.8.4.c25-06600-8x98.0' of https://git.codelinaro.org/clo/la/kernel/msm-4.4 into android13-4.4-msm8998 369119e5df4e cert host tools: Stop complaining about deprecated OpenSSL functions f8e30a0f9a17 fixup! BACKPORT: treewide: Fix function prototypes for module_param_call() 4fa5045f3dc9 arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly bcd9668da77f arm64: kernel: do not need to reset UAO on exception entry c4ddd677f7e3 Kbuild: do not emit debug info for assembly with LLVM_IAS=1 1b880b6e19f8 qcacld-3.0: Add time slice duty cycle in wifi_interface_info fd24be2b22a1 qcacmn: Add time slice duty cycle attribute into QCA vendor command d719c1c825f8 qcacld-3.0: Use field-by-field assignment for FW stats fb5eb3bda2d9 ext4: enable quota enforcement based on mount options cd40d7f301de ext4: adds project ID support 360e2f3d18b8 ext4: add project quota support c31ac2be1594 drivers: qcacld-3.0: Remove in_compat_syscall() redefinition 6735c13a269d arm64: link with -z norelro regardless of CONFIG_RELOCATABLE 99962aab3433 arm64: relocatable: fix inconsistencies in linker script and options 24bd8cc5e6bb arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27 93bb4c2392a2 arm64: kernel: force ET_DYN ELF type for CONFIG_RELOCATABLE=y a54bbb725ccb arm64: build with baremetal linker target instead of Linux when available c5805c604a9b arm64: add endianness option to LDFLAGS instead of LD ab6052788f60 arm64: Set UTS_MACHINE in the Makefile c3330429b2c6 kbuild: clear LDFLAGS in the top Makefile f33c1532bd61 kbuild: use HOSTLDFLAGS for single .c executables 38b7db363a96 BACKPORT: arm64: Change .weak to SYM_FUNC_START_WEAK_PI for arch/arm64/lib/mem*.S 716cb63e81d9 BACKPORT: crypto: arm64/aes-ce-cipher - move assembler code to .S file 7dfbaee16432 BACKPORT: arm64: Remove reference to asm/opcodes.h 531ee8624d17 BACKPORT: arm64: kprobe: protect/rename few definitions to be reused by uprobe 08d83c997b0c BACKPORT: arm64: Delete the space separator in __emit_inst e3951152dc2d BACKPORT: arm64: Get rid of asm/opcodes.h 255820c0f301 BACKPORT: arm64: Fix minor issues with the dcache_by_line_op macro 21bb344a664b BACKPORT: crypto: arm64/aes-modes - get rid of literal load of addend vector 26d5a53c6e0d BACKPORT: arm64: vdso: remove commas between macro name and arguments 78bff1f77c9d BACKPORT: kbuild: support LLVM=1 to switch the default tools to Clang/LLVM 6634f9f63efe BACKPORT: kbuild: replace AS=clang with LLVM_IAS=1 b891e8fdc466 BACKPORT: Documentation/llvm: fix the name of llvm-size 75d6fa8368a8 BACKPORT: Documentation/llvm: add documentation on building w/ Clang/LLVM 95b0a5e52f2a BACKPORT: ANDROID: ftrace: fix function type mismatches 7da9c2138ec8 BACKPORT: ANDROID: fs: logfs: fix filler function type d6d5a4b28ad0 BACKPORT: ANDROID: fs: gfs2: fix filler function type 9b194a470db5 BACKPORT: ANDROID: fs: exofs: fix filler function type 7a45ac4bfb49 BACKPORT: ANDROID: fs: afs: fix filler function type 4099e1b281e5 BACKPORT: drivers/perf: arm_pmu: fix function type mismatch af7b738882f7 BACKPORT: dummycon: fix function types 1b0b55a36dbe BACKPORT: fs: nfs: fix filler function type a58a0e30e20a BACKPORT: mm: fix filler function type mismatch 829e9226a8c0 BACKPORT: mm: fix drain_local_pages function type 865ef61b4da8 BACKPORT: vfs: pass type instead of fn to do_{loop,iter}_readv_writev() 08d2f8e7ba8e BACKPORT: module: Do not paper over type mismatches in module_param_call() ea467f6c33e4 BACKPORT: treewide: Fix function prototypes for module_param_call() d131459e6b8b BACKPORT: module: Prepare to convert all module_param_call() prototypes 6f52abadf006 BACKPORT: kbuild: fix --gc-sections bf7540ffce44 BACKPORT: kbuild: record needed exported symbols for modules c49d2545e437 BACKPORT: kbuild: Allow to specify composite modules with modname-m 427d0fc67dc1 BACKPORT: kbuild: add arch specific post-link Makefile 69f8a31838a3 BACKPORT: arm64: add a workaround for GNU gold with ARM64_MODULE_PLTS ba3368756abf BACKPORT: arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold 6dacd7e737fb BACKPORT: arm64: errata: Pass --fix-cortex-a53-843419 to ld if workaround enabled d2787c21f2b5 BACKPORT: kbuild: add __ld-ifversion and linker-specific macros 2d471de60bb4 BACKPORT: kbuild: add ld-name macro 06280a90d845 BACKPORT: arm64: keep .altinstructions and .altinstr_replacement eb0ad3ae07f9 BACKPORT: kbuild: add __cc-ifversion and compiler-specific variants 3d01e1eba86b BACKPORT: FROMLIST: kbuild: add clang-version.sh 18dd378ab563 BACKPORT: FROMLIST: kbuild: fix LD_DEAD_CODE_DATA_ELIMINATION aabbc122b1de BACKPORT: kbuild: thin archives make default for all archs 756d47e345fc BACKPORT: kbuild: allow archs to select link dead code/data elimination 723ab99e48a7 BACKPORT: kbuild: allow architectures to use thin archives instead of ld -r 0b77ec583772 drivers/usb/serial/console.c: remove superfluous serial->port condition 6488cb478f04 drivers/firmware/efi/libstub.c: prevent a relocation dba4259216a0 UPSTREAM: pidfd: fix a poll race when setting exit_state baab6e33b07b BACKPORT: arch: wire-up pidfd_open() 5d2e9e4f8630 BACKPORT: pid: add pidfd_open() f8396a127daf UPSTREAM: pidfd: add polling support f4c358582254 UPSTREAM: signal: improve comments 5500316dc8d8 UPSTREAM: fork: do not release lock that wasn't taken fc7d707593e3 BACKPORT: signal: support CLONE_PIDFD with pidfd_send_signal f044fa00d72a BACKPORT: clone: add CLONE_PIDFD f20fc1c548f2 UPSTREAM: Make anon_inodes unconditional de80525cd462 UPSTREAM: signal: use fdget() since we don't allow O_PATH 229e1bdd624e UPSTREAM: signal: don't silently convert SI_USER signals to non-current pidfd ada02e996b52 BACKPORT: signal: add pidfd_send_signal() syscall 828857678c5c compat: add in_compat_syscall to ask whether we're in a compat syscall e7aede4896c0 bpf: Add new cgroup attach type to enable sock modifications 9ed75228b09c ebpf: allow bpf_get_current_uid_gid_proto also for networking c5aa3963b4ae bpf: fix overflow in prog accounting c46a001439fc bpf: Make sure mac_header was set before using it 8aed99185615 bpf: Enlarge offset check value to INT_MAX in bpf_skb_{load,store}_bytes b0a638335ba6 bpf: avoid false sharing of map refcount with max_entries 1f21605e373c net: remove hlist_nulls_add_tail_rcu() 9ce369b09dbb udp: get rid of SLAB_DESTROY_BY_RCU allocations 070f539fb5d7 udp: no longer use SLAB_DESTROY_BY_RCU a32d2ea857c5 inet: refactor inet[6]_lookup functions to take skb fcf3e7bc7203 soreuseport: fix initialization race df03c8cf024a soreuseport: Fix TCP listener hash collision bd8b9f50c9d3 inet: Fix missing return value in inet6_hash bae331196dd0 soreuseport: fast reuseport TCP socket selection 4ada2ed73da0 inet: create IPv6-equivalent inet_hash function 73f609838475 sock: struct proto hash function may error e3b32750621b cgroup: Fix sock_cgroup_data on big-endian. 69dabcedd4b9 selinux: always allow mounting submounts 17d6ddebcc49 userns: Don't fail follow_automount based on s_user_ns cbd08255e6f8 fs: Better permission checking for submounts 3a9ace719251 mnt: Move the FS_USERNS_MOUNT check into sget_userns af53549b43c5 locks: sprinkle some tracepoints around the file locking code 07dbbc84aa34 locks: rename __posix_lock_file to posix_lock_inode 400cbe93d180 autofs: Fix automounts by using current_real_cred()->uid 7903280ee07a fs: Call d_automount with the filesystems creds b87fb50ff1cd UPSTREAM: kernfs: Check KERNFS_HAS_RELEASE before calling kernfs_release_file() c9c596de3e52 UPSTREAM: kernfs: fix locking around kernfs_ops->release() callback 2172eaf5a901 UPSTREAM: cgroup, bpf: remove unnecessary #include dc81f3963dde kernfs: kernfs_sop_show_path: don't return 0 after seq_dentry call ce9a52e20897 cgroup: Make rebind_subsystems() disable v2 controllers all at once ce5e3aa14c39 cgroup: fix sock_cgroup_data initialization on earlier compilers 94a70ef24da9 samples/bpf: fix bpf_perf_event_output prototype c1920272278e net: gso: Fix skb_segment splat when splitting gso_size mangled skb having linear-headed frag_list d7707635776b sk_buff: allow segmenting based on frag sizes 924bbacea75e ip_tunnel, bpf: ip_tunnel_info_opts_{get, set} depends on CONFIG_INET 0e9008d618f4 bpf: udp: ipv6: Avoid running reuseport's bpf_prog from __udp6_lib_err 01b437940f5e soreuseport: add compat case for setsockopt SO_ATTACH_REUSEPORT_CBPF 421fbf04bf2c soreuseport: change consume_skb to kfree_skb in error case 1ab50514c430 ipv6: Fix SO_REUSEPORT UDP socket with implicit sk_ipv6only f3dfd61c502d soreuseport: fix ordering for mixed v4/v6 sockets 245ee3c90795 soreuseport: fix NULL ptr dereference SO_REUSEPORT after bind 113fb209854a bpf: do not blindly change rlimit in reuseport net selftest 985253ef27d2 bpf: fix rlimit in reuseport net selftest ae61334510be soreuseport: Fix reuseport_bpf testcase on 32bit architectures 6efa24da01a5 udp: fix potential infinite loop in SO_REUSEPORT logic 66df70c6605d soreuseport: BPF selection functional test for TCP fe161031b8a8 soreuseport: pass skb to secondary UDP socket lookup 9223919efdf2 soreuseport: BPF selection functional test 2090ed790dbb soreuseport: fix mem leak in reuseport_add_sock() 67887f6ac3f1 Merge "diag: Ensure dci entry is valid before sending the packet" e41c0da23b38 diag: Prevent out of bound write while sending dci pkt to remote e1085d1ef39b diag: Ensure dci entry is valid before sending the packet 16802e80ecb5 Merge "ion: Fix integer overflow in msm_ion_custom_ioctl" 57146f83f388 ion: Fix integer overflow in msm_ion_custom_ioctl 6fc2001969fe diag: Use valid data_source for a valid token 0c6dbf858a98 qcacld-3.0: Avoid OOB read in dot11f_unpack_assoc_response f07caca0c485 qcacld-3.0: Fix array OOB for duplicate rate 5a359aba0364 msm: kgsl: Remove 'fd' dependency to get dma_buf handle da8317596949 msm: kgsl: Fix gpuaddr_in_range() to check upper bound 2ed91a98d8b4 msm: adsprpc: Handle UAF in fastrpc debugfs read 2967159ad303 msm: kgsl: Add a sysfs node to control performance counter reads e392a84f25f5 msm: kgsl: Perform cache flush on the pages obtained using get_user_pages() 28b45f75d2ee soc: qcom: hab: Add sanity check for payload_count 885caec7690f Merge "futex: Fix inode life-time issue" 0f57701d2643 Merge "futex: Handle faults correctly for PI futexes" 7d7eb450c333 Merge "futex: Rework inconsistent rt_mutex/futex_q state" 124ebd87ef2f msm: kgsl: Fix out of bound write in adreno_profile_submit_time 228bbfb25032 futex: Fix inode life-time issue 7075ca6a22b3 futex: Handle faults correctly for PI futexes a436b73e9032 futex: Simplify fixup_pi_state_owner() 11b99dbe3221 futex: Use pi_state_update_owner() in put_pi_state() f34484030550 rtmutex: Remove unused argument from rt_mutex_proxy_unlock() 079d1c90b3c3 futex: Provide and use pi_state_update_owner() 3b51e24eb17b futex: Replace pointless printk in fixup_owner() 0eac5c2583a1 futex: Avoid violating the 10th rule of futex 6d6ed38b7d10 futex: Rework inconsistent rt_mutex/futex_q state 3c8f7dfd59b5 futex: Remove rt_mutex_deadlock_account_*() 9c870a329520 futex,rt_mutex: Provide futex specific rt_mutex API 7504736e8725 msm: adsprpc: Handle UAF in process shell memory 994e5922a0c2 Disable TRACER Check to improve Camera Performance 8fb3f17b3ad1 msm: kgsl: Deregister gpu address on memdesc_sg_virt failure 13aa628efdca Merge "crypto: Fix possible stack out-of-bound error" 92e777451003 Merge "msm: kgsl: Correct the refcount on current process PID." 9ca218394ed4 Merge "msm: kgsl: Compare pid pointer instead of TGID for a new process" 7eed1f2e0f43 Merge "qcom,max-freq-level change for trial" 6afb5eb98e36 crypto: Fix possible stack out-of-bound error 8b5ba278ed4b msm: kgsl: Correct the refcount on current process PID. 4150552fac96 msm: kgsl: Compare pid pointer instead of TGID for a new process c272102c0793 qcom,max-freq-level change for trial 854ef3ce73f5 msm: kgsl: Protect the memdesc->gpuaddr in SVM use cases. 79c8161aeac9 msm: kgsl: Stop using memdesc->usermem. Change-Id: Iea7db1362c3cd18e36f243411e773a9054f6a445
| * msm: camera: Fix indentationsGeorg Veichtlbauer2023-05-10
| | | | | | | | Change-Id: I1bf8d016b276f53d87d831acd24a65b471192960
| * msm: camera: Fix code flow when populating CAM_V_CUSTOM1Georg Veichtlbauer2023-05-10
| | | | | | | | Change-Id: I431e987a5267bb0f28561382a5a4ce337846d7f4
* | camera: add default capsJean-Baptiste Théou2022-07-27
| | | | | | | | | | | | | | | | v4l2-ioctl.c triggers a warning in case the driver is not compliant with the capabilities. Change-Id: If231d20c1b3d1dc273da3687bf9396c2aa8be927 Signed-off-by: Jean-Baptiste Théou <jb@essential.com>
* | camera_v2: Restore old behaviour for frame dropsDavide Garberi2022-07-27
| | | | | | | | | | | | | | | | * This feature doesn't work on devices with old camera blobs * Restore the previous behaviour without having to revert 10 commits * Initial culprit commit: 39e7df335515c3f11859901d650d47ee983fcf6a Change-Id: Iadb6bd78350768153bb00236d72907c9572cf119
* | camera: ois: Fix no pinctrl and no gpio caseAngelo G. Del Regno2022-07-27
| | | | | | | | | | | | | | | | The return value check for function msm_sensor_driver_get_gpio_data was wrong. Fix it. Signed-off-by: Davide Garberi <dade.garberi@gmail.com> Change-Id: I008b6bdf6861b07084bbac390f9280ce04e52763
* | camera: cam_smmu_api: remove a rogue commaYaroslav Furman2022-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It _ruins_ ramoops logs. [ 1.089832] CAM-SMMU cam_smmu_populate_sids:2331 __debug cnt = 8, cb->name: :vfe sid [0] = 3072 , [ 1.089843] CAM-SMMU cam_smmu_populate_sids:2331 __debug cnt = 8, cb->name: :vfe sid [1] = 3073 [ 1.089843] ,CAM-SMMU cam_smmu_populate_sids:2331 __debug cnt = 8, cb->name: :vfe sid [2] = 3074 , [ 1.089858] CAM-SMMU cam_smmu_populate_sids:2331 __debug cnt = 8, cb->name: :vfe sid [3] = 3075 [ 1.089858] ,[ 1.090092] CAM-SMMU cam_smmu_populate_sids:2331 __debug cnt = 2, cb->name: :cpp sid [0] = 2560 , [ 1.090286] CAM-SMMU cam_smmu_populate_sids:2331 __debug cnt = 2, cb->name: :camera_fd sid [0] = 2561 , [ 1.090482] CAM-SMMU cam_smmu_populate_sids:2331 __debug cnt = 2, cb->name: :jpeg_enc0 sid [0] = 2048 , [ 1.090674] CAM-SMMU cam_smmu_populate_sids:2331 __debug cnt = 2, cb->name: :jpeg_dma sid [0] = 2049 , [ 1.095134] CAM-SOC msm_camera_get_reg_base:864 err: mem resource csiphy_clk_mux not found Signed-off-by: Yaroslav Furman <yaro330@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com> Change-Id: I124ed5023c34f4e90415d00fed154c97c89f48e7
* | camera: actuator: Import ZUK editsDavide Garberi2022-07-27
| | | | | | | | | | | | | | * Fixes the camera lens clicking * Thanks YaroST12 for the suggestion Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* | camera: Import flashlight control and some edits from ZUKYaroST122022-07-27
| | | | | | | | | | | | | | | | | | Striped version of https://github.com/YaroST12/Z2_PLUS_Kernel_EAS/commit/8d54fad0d22bd33ebebbbbed862b9dbaf4a1ff7a Signed-off-by: YaroST12 <yaro330@gmail.com> Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com> Change-Id: I2280d54fb6c51ad09b422f85c57dcbf34b835871
* | camera: ispif: fix wrong payload size errorYaroslav Furman2022-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Userspace expects msm_ispif_param_data_ext to have only 3 entries in it. Squash of following commits: commit e3a409b5e55f17a982c879db1a4ba23d8ed87cb4 (HEAD -> 4.4-eas-1.4) Author: Yaroslav Furman <yaro330@gmail.com> Date: Wed Jan 9 12:47:38 2019 +0300 Revert "msm: camera: ispif: adds 3D support" This reverts commit cea9ac19b93db10dd5d40367d6b09d46f6dd8c3a. commit 388522121977c93c1ec4f65c23740040a39c07ba Author: Yaroslav Furman <yaro330@gmail.com> Date: Wed Jan 9 12:46:56 2019 +0300 Revert "msm: camera: ispif: extend interface with line width" This reverts commit cb9a11cd759f1d3348b0f3deb296eb415619d06f. Signed-off-by: Yaroslav Furman <yaro330@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com> Change-Id: Ib42061ad37fde64cec8c3ce17bb7947c51d055bd
* | camera: Squash reverts to make ZUK's camera working for newer CAF tagsSubhajeet Muhuri2022-07-27
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Squash of: commit 9c909f4a62201b2ebb0ba56038d31bb85ae55d81 Author: Subhajeet Muhuri <kenny3fcb@gmail.com> Date: Sun Oct 28 14:47:09 2018 +0100 Revert "msm: camera: Add laser LED support for depth sensor" * "Camera error: Can't connect to the camera" This reverts commit 63f5792c5c6a8de2e40a9eee1195dfa264ff9431. Signed-off-by: Davide Garberi <dade.garberi@gmail.com> commit f7229d06853654871e970aa7bf604b01f38c3d37 Author: Subhajeet Muhuri <kenny3fcb@gmail.com> Date: Thu Oct 11 20:21:32 2018 +0530 Revert "msm: camera: Bypass redundant creation of video node in stereo" * Camera crashes upon launching This reverts commit f977e44aeaf5da07338a4649caa45367461226f0. Signed-off-by: Davide Garberi <dade.garberi@gmail.com> commit b0b964a9b6714ee4ff6af4e7f587f99921e3312a Author: YaroST12 <yaro330@gmail.com> Date: Sat Oct 6 18:36:18 2018 +0530 Revert "msm: cpp: Query buffer from buffer manager based on index" * Breaks slow motion video recording This reverts commit ddff1a93bac277b1a0ba14c601d5236c3c36365d. Signed-off-by: Davide Garberi <dade.garberi@gmail.com> commit 5e1c739e4622428fa0b8fd9350946c31d2424b8e Author: Davide Garberi <dade.garberi@gmail.com> Date: Sun Oct 28 14:32:43 2018 +0100 Revert "msm: camera: Framedrop notification" This reverts commit 5925180360bca209c21e9271e277caaca68bcad5. Signed-off-by: Davide Garberi <dade.garberi@gmail.com> commit 0ef5dc40955cd7946f0a851feda516c34dc40d6d Author: YaroST12 <yaro330@gmail.com> Date: Sat Oct 6 18:31:20 2018 +0530 Revert "msm: camera: sensor: Adapting sensor driver to soc layer" * Kernel panics at boot This reverts commit 6b99b4c9a1706f8f7f1745af97e0f4bddecf168b. Signed-off-by: Davide Garberi <dade.garberi@gmail.com> commit 1da8c59614f005d524455147fd78fc5f32cfa33b Author: Subhajeet Muhuri <kenny3fcb@gmail.com> Date: Fri Oct 5 12:24:29 2018 +0530 Revert "msm: camera: sensor: Updating soc layer clock API for i2c drivers" * Required for the proper revert of 6b99b4c This reverts commit a4663702036e6b0ae9b82691027d9913d65d7a02. Signed-off-by: Davide Garberi <dade.garberi@gmail.com> commit 1b138397ea01ae70f653baf6c812fb5748b3783b Author: Subhajeet Muhuri <kenny3fcb@gmail.com> Date: Sat Oct 6 18:19:19 2018 +0530 Revert "msm: camera: Add regulator enable and disable independent of CSID" * Required for the proper revert of 6b99b4c This reverts commit fd39134867896ec5c28ce348816e31e7785e06ba. Signed-off-by: Davide Garberi <dade.garberi@gmail.com> commit 12e0c65509260092e8c3f22717080427a78c9469 Author: Subhajeet Muhuri <kenny3fcb@gmail.com> Date: Sat Oct 6 18:16:32 2018 +0530 Revert "msm: camera: Add regulator enable and disable in csiphy" * Required for the proper revert of 6b99b4c This reverts commit d3e47e331617af3c87138bd205e65c6fa1a1bca7. Signed-off-by: Davide Garberi <dade.garberi@gmail.com> Change-Id: Iaa6aa22bb518b930141092fab9f51567c7eae092
* Merge tag 'LA.UM.9.2.r1-01800-SDMxx0.0' of ↵Michael Bestas2020-12-30
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://source.codeaurora.org/quic/la/kernel/msm-4.4 into lineage-18.1-caf-msm8998 * tag 'LA.UM.9.2.r1-01800-SDMxx0.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.4: sdm660-perf_defconfig changes defconfig: msm8998: enable LEDS_QPNP_HAPTICS HID: sony: Support PS4 BT defconfig: msm8998: enable LEDS_QPNP_HAPTICS ARM: dts: msm: Enable vibrator in msm8998 defconfig: Enable CONFIG_HID_NINTENDO for SDM660 FROMLIST: HID: nintendo: add nintendo switch controller driver defconfig: Enable UTS_NS for sdm660 ANDROID: selinux: modify RTM_GETLINK permission defconfig: Enable CONFIG_HID_NINTENDO for msm8998 defconfig: sdm660: enable LEDS_QPNP_HAPTICS ARM: dts: msm: Enable vibrator in sdm660 defconfig: Enable CONFIG_UTS_NS for msm8998 RM: dts: msm: add CPU dai for additional proxy ports msm: mdss: hdmi: parse physical screen dimensions from EDID msm: kgsl: Compare pid pointer instead of TGID for a new process binder: fix UAF when releasing todo list crypto: Fix possible stack out of bound error mdss_hdmi_tx: reset HDR flags on disconnect soc: add proxy ports for call screening in machine driver msm: isp2: fix close sequence of isp stats stream usb: dwc3: ep0: Return from handle_status if ep0_delegate_req succeeds Revert "include: Fix for compilation issue" msm: kgsl: Mark the scratch buffer as privileged include: Fix for compilation issue Conflicts: drivers/hid/Makefile security/selinux/ss/services.c Change-Id: Ia1f388435462703697ec52f6702b47f6653791df
| * Merge "msm: isp2: fix close sequence of isp stats stream"Linux Build Service Account2020-11-09
| |\
| | * msm: isp2: fix close sequence of isp stats streamVijayaKumar T M2020-10-16
| | | | | | | | | | | | | | | | | | | | | | | | Stats stream close is failing due to wrong array index(2) for rear camera which uses dual vfe. Change-Id: I26a0e1289f033aaad62cca24b064f1b0bf2788e2 Signed-off-by: VijayaKumar T M <vtmuni@codeaurora.org>
* | | msm: ais/camera_v2: remove gcc invocationsPetri Gynther2020-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove gcc invocations, so that we can move to pure clang compilation. Resolves: make CC=clang HOSTCC=clang mrproper ... Android GCC has been deprecated in favor of Clang, and will be removed from Android in 2020-01 as per the deprecation plan in: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md Bug: 141693040 Change-Id: I10557fb29b4a5d4139d690661c22ab5be3fedaaf Signed-off-by: Petri Gynther <pgynther@google.com>
* | | Merge tag 'LA.UM.8.4.r1-06200-8x98.0' of ↵Michael Bestas2020-12-09
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://source.codeaurora.org/quic/la/kernel/msm-4.4 into lineage-17.1-caf-msm8998 * tag 'LA.UM.8.4.r1-06200-8x98.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.4: crypto: Fix possible stack out of bound error ASoC: sdm660_cdc: Fix ear_pa_gain control soc: qcom: service-locator: Free PD list after client use cfg80211: Enhance the AKM advertizement to support per interface msm: kgsl: Don't wait for room in context queue when context is invalidated msm: kgsl: Don't allow re-importing memory owned by KGSL usb: dwc3: ep0: Return from handle_status if ep0_delegate_req succeeds scsi: ufs: Flush exception event before suspend msm: ipa: Fix deleting the routing entries mm-camera2:isp2: Add support for 12bit-plain16 raw format Revert "ipv6: defrag: drop non-last frags smaller than min mtu" usb: dwc3: ep0: Return from handle_status if ep0_delegate_req succeeds Change-Id: Ifcb5f033b250feaa41c4916bbbec757334e3429e
| * | mm-camera2:isp2: Add support for 12bit-plain16 raw formatVijayaKumar T M2020-10-01
| |/ | | | | | | | | | | | | | | | | | | VFE hardware is capable of handling 12 bit plain16 raw image format. As this support is not there in software, failure is returned whenever the raw format is 12bit plain16. Change-Id: Iceca409e33a19e5fe9e56dd563a535416bf7e107 Signed-off-by: VijayaKumar T M <vtmuni@codeaurora.org>
* | Merge tag 'LA.UM.8.4.r1-05700-8x98.0' of ↵Michael Bestas2020-07-23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://source.codeaurora.org/quic/la/kernel/msm-4.4 into lineage-17.1-caf-msm8998 * tag 'LA.UM.8.4.r1-05700-8x98.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.4: msm: adsprpc: Fix array index underflow problem profiler: Fix compilation errors fbdev: msm: fix ret value while translating to mdp format clk: msm: Fix compilation errors with clang ath10k: Fix compilation issue drm/msm/sde: Fix clang compilation in SDE driver ais: cam_soc_api: Fix compilation error msm: camera: reset atomic variable msm: v4l2loopback: Fix clang compilation error msm: Fix compilation error asoc: msm-8998: Add new FE's for TDM Primary diag: dci: Synchronize dci mempool buffers alloc and free headers_lib: rename Android.bp kbuild: skip install/check of headers right under uapi directories uapi: export all arch specifics directories kernel_headers: Fix headers not detected in incremental builds kernel headers: Update comparison logic Kbuild : Use no-export-headers to avoid exporting headers kernel_headers: kernel headers library package kbuild: replace genhdr-y with generated-y uapi: export all headers under uapi directories uapi: sound: move necessary sound headers under uapi kernel: Fix build errors with LLVM Revert "ARM: dts: msm: Remove cpu max frequency restriction on cold temp for msm8996." ARM: dts: msm: Remove cpu max frequency restriction on cold temp for msm8996. input: touchpanel: Fix compilation errors with clang asoc: msm-8998: TDM device grouping changes for capture path kbuild, x86: Track generated headers with generated-y kbuild: Remove stale asm-generic wrappers ARM: put types.h in uapi msm: ais: jpegdma: Fix uninitialized variable Makefile.headersinst: remove destination-y option msm: adsprpc: DSP device node to provide restricted access to ADSP/SLPI Conflicts: .gitignore drivers/mmc/core/sdio_cis.c Change-Id: I70cf2a0fbcfcbc834a21cf7fa8db9bd2e1c755b1
| * Merge "ais: cam_soc_api: Fix compilation error"Linux Build Service Account2020-06-08
| |\
| | * ais: cam_soc_api: Fix compilation errorSwetha Chikkaboraiah2020-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix below compilation error warning: address of 'pdev->dev' will always evaluate to 'true' [-Wpointer-bool-conversion]. Change-Id: I1ed3026b6689aae029dde35fe1a0556375b84872 Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
| * | msm: camera: reset atomic variableMeera Gande2020-06-08
| |/ | | | | | | | | | | | | | | | | | | Qos_request object is protected with an atomic variable as its used between two drivers. Made changes to reset the atomic variable at destroy.. Change-Id: I65e03ea6f556b4518927c1dd077dff4db1158c8b Signed-off-by: Meera Gande <mgande@codeaurora.org>
| * kernel: Fix build errors with LLVMSwetha Chikkaboraiah2020-05-21
| | | | | | | | | | | | | | | | This patch intends to fix compilation errors while building kernel with LLVM toolchain. Change-Id: I76c4f97d8a0efb44434d54fb07cae23b050d2003 Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
| * msm: ais: jpegdma: Fix uninitialized variableRichard J K2020-05-15
| | | | | | | | | | | | | | | | Initialze return variable. If it is not initialized, it returns improper value. Change-Id: Ib64bea00feaf32ab0b75c1bf0706dd9cd2402a12 Signed-off-by: Richard J K <rjk@codeaurora.org>
* | Revert "drivers: media: msm: don't use nested functions"Michael Bestas2020-07-23
| | | | | | | | | | | | | | | | * We'll take the upstream fix This reverts commit 8cdcd8cc5f3e325b2f050b1ba01584176630ed1e. Change-Id: I5f31a5e10d9e64bdf19d5c085ef00222ac25641b
* | Revert "msm: vidc: Resolve clang compilation error"Michael Bestas2020-07-23
| | | | | | | | | | | | | | | | * We'll take the upstream fix This reverts commit a30d5a11a3bbb78f625723d25cc90ee92729fd9f. Change-Id: I0a97424501809d75a76a327dce4b3d66537f7058
* | Merge tag 'LA.UM.8.4.r1-05500-8x98.0' of ↵Michael Bestas2020-06-03
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://source.codeaurora.org/quic/la/kernel/msm-4.4 into lineage-17.1-caf-msm8998 * tag 'LA.UM.8.4.r1-05500-8x98.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.4: ARM: convert to generated system call tables ARM: remove indirection of asm/mach-types.h mm/zsmalloc.c: change stat type parameter to int msm: sde: fix mem access of sde rotator regdma ram soc: qcom: Fix strlcpy compilation error with clang sysmon-qmi: Fix compilation error while using LLVM mm/zsmalloc.c: fix -Wunneeded-internal-declaration warning sched/sysctl: Fix attributes of some extern declarations ion: Fix typecasting of msm_ion_heap_types soc: qcom: glink_debugfs: Fix compilation error with clang msm: ipa3: Fix compilation errors after enabling LLVM msm: ipa: Fix assignment warning with clang mmc: host: sdhci-msm-ice: Fix clang warning with NOT operator usage driver : Fix warnings and errors with llvm soc: qcom: access smp2p_smem structure with I/O function Makefile: Disable undefined-optimized and tautological features ANDROID_BUILD_TOP is deprecated. AndroidKernel: Update the LLVM path AndroidKernel: Add configuration for the LLVM path AndroidKernel: Add LLVM support for Kernel drivers: hwmon: Fix compilation errors in ADC for kernel 4.9 msm: camera: Fix warnings and errors with llvm f_qc_rndis: Remove unused structure crypto: qcedev: Fix out of memory issue crypto: msm: update QTI crypto drivers for msm-4.4 fbdev: msm: wait for frame complete before triggering dma cmd msm: mdss: hdmi: don't reset CEC while triggering message send fbdev: msm: Fix race condition during te_irq calls msm: camera: Fix OOB issue in IR CUT driver Change-Id: Ib371d4baa8840eabda4bd825d3abcd86e79d5c7a
| * msm: sde: fix mem access of sde rotator regdma ramBenjamin Chan2020-04-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | regdma ram of sde rotator is mapped as device io, so any write access to it should be using writel interface. A direct u32 pointer manipulation will easily cause access page fault due to compiler optimization. This fix includes the following: - add proper __iomem attribute to allow sparse checking - using writel_releaxed_no_log macro for all write access to the regdma ram - maintain 32bit alignment for any regdma write pointer update. Change-Id: Idbb0681d501b4d960fddc80ac821c5564265ffc2 Signed-off-by: Benjamin Chan <bkchan@codeaurora.org> Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
| * msm: camera: Fix warnings and errors with llvmVijayaKumar T M2020-04-22
| | | | | | | | | | | | | | | | Fix pointer-bool-conversion, logical-not-parentheses errors and warnings with llvm. Change-Id: I5ffb2d5a699004362fa7f5a4cc50f4f57f06a2f0 Signed-off-by: VijayaKumar T M <vtmuni@codeaurora.org>
| * Merge "msm: camera: Fix OOB issue in IR CUT driver"Linux Build Service Account2020-04-18
| |\
| | * msm: camera: Fix OOB issue in IR CUT driverVijayaKumar T M2020-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If user passes an aribitary command with _IOC_DIR(cmd) == _IOC_NONE, "arg" should point to any arbitrary address. Check for invalid command and return error. CRs-Fixed: 2299560 Change-Id: Ic48c9526b914f97bfa76fda2d0b612e832cf91e9 Signed-off-by: VijayaKumar T M <vtmuni@codeaurora.org>
* | | Revert "msm: sde: fix unaligned memory read"Michael Bestas2020-06-03
| | | | | | | | | | | | | | | | | | | | | | | | * We'll take the upstream fix This reverts commit 39dc15657a8bdc6416db005bb6f508ddc823ec64. Change-Id: Idbcb1cbd1a2fbc7c5383e4aed7cd571968b46601
* | | Revert "msm: camera: Remove pointless NULL checks in ↵Michael Bestas2020-06-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | msm_camera_{get,put}_clk_info" * We'll take the upstream fix This reverts commit 6a98f85fe047f6e19f5372812e3f1caea0db8854. Change-Id: Ib54f5065dc35e7a1a4f9d8bdaac720ef384102b7
* | | Revert "msm: camera: Remove pointless NULL checks in ↵Michael Bestas2020-06-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {__,}msm_remove_session_cmd_ack_q" * We'll take the upstream fix This reverts commit 985459a99ce03a22f1ce450f1042c4454a30f3f1. Change-Id: Ia1f54776dfc167656ade12093bbae9f0abd2895c
* | | Revert "msm: camera: Remove useless NULL checks in msm_flash_i2c_release"Michael Bestas2020-06-03
| | | | | | | | | | | | | | | | | | | | | | | | * We'll take the upstream fix This reverts commit bd102f6eb980e510fab9f4c86309724c846c8382. Change-Id: Iaf2887d6975cf8083a92f90e5b96091db526af67
* | | Revert "msm: camera: Remove unnecessary parentheses in ↵Michael Bestas2020-06-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | msm_cam_sensor_handle_reg_gpio" * We'll take the upstream fix This reverts commit fdb099675aed5f42214bfd42bf8ccf21e8a8a3e9. Change-Id: I89b9c3ecf6fec7b62ec53d7d26ba63bc1e264c56
* | | msm: camera: ois: Prevent direct access to userspace memoriesAngga Satya Putra2020-06-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Privileged Access Never prevent the kernel driver from accessing userspace addresses, which this particular procedure did. Fix this by using copy_to_user function for this procedure instead and while we're at it, directly use the settings pointer rather than going through set_info hoops Change-Id: Ia06e1fa93e5f659241548b11e43b57588a6bd8f4 Signed-off-by: Angga Satya Putra <anggasp@hotmail.com>
* | | msm: vidc: Increase minimum input buffer count for VP9 decodeDeepak Kushwah2020-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | Increase minimum input buffer count for VP9 decode to 6,as for some vp9 clips which have superframes with more than 4 subframes require more than 4 reference buffers to decode. Change-Id: I561f4c3ad4c4a94c36293c26aab3a9c9423e9268 Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
* | | Merge tag 'LA.UM.8.4.r1-05300-8x98.0' of ↵Michael Bestas2020-04-14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://source.codeaurora.org/quic/la/kernel/msm-4.4 into lineage-17.1-caf-msm8998 * tag 'LA.UM.8.4.r1-05300-8x98.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.4: drivers/misc: check if mute_sink is a valid function pointer mdss: msm: hdmi: fix CEC broadcast loopback issue mdss: msm: hdmi: use circular buffer for CEC rx mdss: msm: hdmi: add CEC clear_logical_addr sysnode fbdev: msm: hdmi: read CEC msg before clearing interrupt msm: mdss: hdcp: synchronize HDCP1 qseecom commands msm: mdss: hdcp: handle hdcp1 mutex properly msm: mdss: hdcp: set hdcpsrm_supported flag correctly msm: mdss: hdmi: reset deep_color before parsing EDID msm: mdss: mdp: update CDM CSC coefficients during HDR playback msm: mdss: hdmi: update colorimetry in AVI infoframe msm: mdss: hdmi: parse E-EDID's COLORIMETRY data block msm: mdss: hdmi: modify min_enc_level logic msm: mdss: edid: conditionally set rgb_support for Y420 EDID modes msm: mdss: hdmi: validate EDID modes against max refresh rate msm: mdss: hdmi: set the output bitdepth msm: mdss: edid: modify the extended data block's length check msm: mdss: hdmi: handle wake_irq on suspend/resume msm: mdss: hdmi: handle HPD disconnect event during suspend msm: mdss: hdmi: set colorimetry info in AVI infoframe msm: mdss: hdmi: set quantization range in AVI infoframe msm: mdss: mdp: configure CSC_10 to set correct quantization range msm: mdss: hdmi: check if given resolution is CE video format msm: mdss: hdcp: read V' only for non-zero device count repeater msm: mdss: hdmi: set max tmds clock rate correctly msm: mdss: fb: fix panel reconfiguration check for format change msm: mdss: mdp: do null commit during panel reconfiguration msm: mdss: hdmi: modify HPD polarity change setup msm: mdss: hdmi: check HDMI 1.4 VSDB length msm: mdss: hdmi: set max TMDS clock rate msm: mdss: hdmi: fix parsing Y420CMDB block of EDID msm: mdss: hdmi: override default resolution after parsing EDID msm: mdss: hdmi: fix HDMI panel reconfiguration issue msm: mdss: hdmi: fix handoff if deep color is supported by TV msm: mdss: hdmi: support only progressive DTDs fbdev: msm: check for hdmi as primary msm: mdss: hdmi: parse extended EDID block map msm: mdss: hdmi: reset sink_caps before parsing EDID ARM: msm: dts: add splash memory region for APQ8098 msm: mdss: hdmi: skip pan_display during handoff net: ipc_router: Do not allow change of default security rule mm-camera2:isp2: Notify dual cam drop msm: mdss: mdp: fix parsing total number of displays Change-Id: I17f2df832abc746d23f89670c9a5b0aeb5e6d625
| * | mm-camera2:isp2: Notify dual cam dropMeera Gande2020-02-10
| |/ | | | | | | | | | | | | | | | | | | In case of drop due to sw sync logic in dual camera, need to update the isp page with the number of frames that are dropped. Change-Id: I18c4bbf781a5f1f2bf2f48518464b2e459ac7892 Signed-off-by: Meera Gande <mgande@codeaurora.org> Signed-off-by: Sumalatha Malothu <smalot@codeaurora.org>
* | Merge tag 'LA.UM.8.4.r1-05200-8x98.0' of ↵Michael Bestas2020-03-07
|\| | | | | | | | | | | | | | | | | | | | | | | https://source.codeaurora.org/quic/la/kernel/msm-4.4 into lineage-17.1-caf-msm8998 * tag 'LA.UM.8.4.r1-05200-8x98.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.4: msm: vidc: avoid OOB write while accessing memory asoc: msm-compress: Replace goto with return in case of invalid value asoc: msm-compress: Add lock in controls _put() and _get() callback msm: vidc: remove additional checks in response_handler Change-Id: I14759735309e0e02b2cf5ffb403877026c69c0db
| * Merge "msm: vidc: avoid OOB write while accessing memory"Linux Build Service Account2020-01-20
| |\
| | * msm: vidc: avoid OOB write while accessing memoryDikshita Agarwal2020-01-20
| | | | | | | | | | | | | | | | | | | | | | | | Exclude 4 bytes which holds the size of the buffer while calculating the actual buffer size to avoid OOB write. Change-Id: I5471fabc3652a942797019c5beb06d17a713b079 Signed-off-by: Dikshita Agarwal <dikshita@codeaurora.org>
| * | msm: vidc: remove additional checks in response_handlerGovindaraj Rajagopal2020-01-06
| |/ | | | | | | | | | | | | | | | | | | | | | | possibility of OOB access on device->response_pkt in __response_handler. for e.x if msg queue contains 1000 messages and all 1000 were read and queue is empty. So __get_q_size api will return zero and _iface_msgq_read will go in an infinite loop, even if packet_count == max_packets. Change-Id: I3c0fb095feff0ba5d4d6dab65ed9d5111f1b6f05 Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
* | msm: camera: Remove unnecessary parentheses in msm_cam_sensor_handle_reg_gpioNathan Chancellor2020-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang warns: ../drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c:1356:48: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((gconf->gpio_num_info->valid[gpio_offset] == 1)) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ../drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c:1356:48: note: remove extraneous parentheses around the comparison to silence this warning if ((gconf->gpio_num_info->valid[gpio_offset] == 1)) { ~ ^ ~ ../drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c:1356:48: note: use '=' to turn this equality comparison into an assignment if ((gconf->gpio_num_info->valid[gpio_offset] == 1)) { ^~ = 1 warning generated. Fixes: 92a558c15e80 ("msm: camera: Add support to enable eLDOs through GPIOs") Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* | msm: camera: Remove useless NULL checks in msm_flash_i2c_releaseNathan Chancellor2020-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang warns: ../drivers/media/platform/msm/camera_v2/sensor/flash/msm_flash.c:366:21: warning: address of 'flash_ctrl->power_info' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!(&flash_ctrl->power_info) || !(&flash_ctrl->flash_i2c_client)) { ~ ~~~~~~~~~~~~^~~~~~~~~~ ../drivers/media/platform/msm/camera_v2/sensor/flash/msm_flash.c:366:51: warning: address of 'flash_ctrl->flash_i2c_client' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!(&flash_ctrl->power_info) || !(&flash_ctrl->flash_i2c_client)) { ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 2 warnings generated. While we are at it, remove rc's useless assignment to zero. Fixes: 12d7df3314bf ("msm: camera: Add all camera drivers") Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* | msm: camera: Remove pointless NULL checks in {__,}msm_remove_session_cmd_ack_qNathan Chancellor2020-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang warns: ../drivers/media/platform/msm/camera_v2/msm.c:625:18: warning: address of 'cmd_ack->command_q' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!(&cmd_ack->command_q)) ~ ~~~~~~~~~^~~~~~~~~ ../drivers/media/platform/msm/camera_v2/msm.c:635:32: warning: address of 'session->command_ack_q' will always evaluate to 'true' [-Wpointer-bool-conversion] if ((!session) || !(&session->command_ack_q)) ~ ~~~~~~~~~^~~~~~~~~~~~~ 2 warnings generated. This matches what is present in msm-4.14. Fixes: 12d7df3314bf ("msm: camera: Add all camera drivers") Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* | msm: vidc: Resolve clang compilation errorPriyanka Gujjula2020-02-02
| | | | | | | | | | | | | | | | | | | | | | | | pkt->rg_buffer_info will always evaluate to 'true', hence refining the code. Change-Id: Ifb686c991b9ae06d449a5a1ec3485823ca9b926c Signed-off-by: Priyanka Gujjula <pgujjula@codeaurora.org> [nc: Apply the same resolution as below, conflict was due to no case to struct hal_buffer_info *] Link: https://source.codeaurora.org/quic/la/kernel/msm-4.9/commit/?id=863bd77bde408d54f66a7238fcb4146001428d2e Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* | msm: camera: Remove pointless NULL checks in msm_camera_{get,put}_clk_infoNathan Chancellor2020-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang warns: ../drivers/media/platform/msm/camera_v2/common/cam_soc_api.c:208:23: warning: address of 'pdev->dev' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!pdev || !&pdev->dev || !clk_info || !clk_ptr || !num_clk) ~ ~~~~~~^~~ ../drivers/media/platform/msm/camera_v2/common/cam_soc_api.c:510:23: warning: address of 'pdev->dev' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!pdev || !&pdev->dev || !clk_info || !clk_ptr) ~ ~~~~~~^~~ 2 warnings generated. Fixes: a4663702036e ("msm: camera: sensor: Updating soc layer clock API for i2c drivers") Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* | drivers: media: msm: don't use nested functionsGreg Hackmann2020-02-02
| | | | | | | | | | | | | | | | | | | | clang doesn't support nested functions, and there's no compelling reason that these functions need to have such a restricted scope. Change-Id: I698f7b19de8f6dff46a717403c1f518446748b18 Signed-off-by: Greg Hackmann <ghackmann@google.com> Link: https://android.googlesource.com/kernel/msm/+/a7812babae94ac48da09e7e967c0b55d24a77994 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>