* new: (106 commits)
spi: spi-geni-qcom: Fix slab out of bounds error
msm: camera: Fix arbitrary kernel write
af_key: unconditionally clone on broadcast
Revert "msm: camera: isp: Select epoch config based on Hardware"
msm: camera: disable power collapse when camera is working
Revert "Revert "msm: camera: eeprom: set platform driver data to null""
msm: camera: flash: Remove race condition in subdev close
msm: camera: flash: Remove regulator power up/down from early PCR
msm: camera: isp: Initialize isp_dev's mutex
msm: camera: isp: clean up logic to handle bubble
msm: camera: isp: Preserve the default min hbi value.
msm: camera: isp: Enable early EOF
msm: camera: isp: Add debugfs to dump hbi/vbi info
msm: camera: flash: Add i2c hw support
msm: camera: icp: Avoid accessing unclocked registers
msm: camera: icp: Reset pwr_ctrl register as part of PC
msm: camera: Modify shutdown sequence in KMD
msm: camera: sensor: Protect link/unlink calls
msm: camera: fd: Add mutex protection to frame done processing
msm: camera: csiphy: Adding support of secure camera
...
Change-Id: I9fd06fa92b2dcbb1f4d8308efb6dbdb7155fa33c
1. the eeprom bring up for altek chip to use.
2. enable altek module board power on/off function
3. new solution for blocking aec in ov9282 sensor.
Issue-Id: task82581
Change-Id: I1d9329957ab1d0bddf40b3b17f36f37c645fc5b9
In cam_sensor_core.c file, the tof flags use globle shared variance this
will cause error when more one sensor run. And optimize eeprom op.
Issue-Id: task82581
Change-Id: Icae831ee293f7062ad69b8748b815a652ec9f9fe
split eeprom consequence read size into small blocks to void rpmh timeout that
cause system dump.
Issue-Id: task82581
Change-Id: I454696658c942a557ec3e48faa5e6f4f1eab0e36
Passing incorrect argument to pm_runtime_status_suspended
function is causing slab out of bounds error. Pass
structure device type pointer as argument to
pm_runtime_status_suspended.
Change-Id: I59df6574496b9228c9238fe65673060d4ca141ef
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
In 64 bit kernel and 32 bit userspace, ioctl_ptr from
kernel space, should NOT call the copy_from_user.
In 64 bit kernel and 64 bit userspace, ioctl_ptr from
user space, use the copy_from_user to copy data.
use the is_compat_task to distinguish two condition.
CRs-Fixed: 2283160
Change-Id: If9205e4f3176a52e52f694a3183dc9c5b7617a97
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
Attempting to avoid cloning the skb when broadcasting by inflating
the refcount with sock_hold/sock_put while under RCU lock is dangerous
and violates RCU principles. It leads to subtle race conditions when
attempting to free the SKB, as we may reference sockets that have
already been freed by the stack.
Unable to handle kernel paging request at virtual address 6b6b6b6b6b6c4b
[006b6b6b6b6b6c4b] address between user and kernel address ranges
Internal error: Oops: 96000004 [#1] PREEMPT SMP
task: fffffff78f65b380 task.stack: ffffff8049a88000
pc : sock_rfree+0x38/0x6c
lr : skb_release_head_state+0x6c/0xcc
Process repro (pid: 7117, stack limit = 0xffffff8049a88000)
Call trace:
sock_rfree+0x38/0x6c
skb_release_head_state+0x6c/0xcc
skb_release_all+0x1c/0x38
__kfree_skb+0x1c/0x30
kfree_skb+0xd0/0xf4
pfkey_broadcast+0x14c/0x18c
pfkey_sendmsg+0x1d8/0x408
sock_sendmsg+0x44/0x60
___sys_sendmsg+0x1d0/0x2a8
__sys_sendmsg+0x64/0xb4
SyS_sendmsg+0x34/0x4c
el0_svc_naked+0x34/0x38
Kernel panic - not syncing: Fatal exception
CRs-Fixed: 2251019
Change-Id: Ib3b01f941a34a7df61fe9445f746b7df33f4656a
Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>
To avoid CPU goes into power collapse mode,
set PM QOS latency to 100 when opening camera,
and reset it to -1 when closing camera.
Change-Id: I4472f64ac853d822a77367b843287a9a7c9d83d9
Signed-off-by: Haizhou Fan <haizhoufan@codeaurora.org>
Subdev close is calling flash_shutdown() to flush req and release
device operation. flash_subdev_close() does the mutex lock already.
Removing same mutex lock opertion from flash_shutdown() function
to remove race condition.
Change-Id: Id2fb7c1b73d4294d1e164df3b44e51455ba15b7f
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Regulator is enabled at the time of flash init. Early PCR tries to
enable regulator again which is not correct operation. This change
fixes this error by removing regulator in early PCR operation.
Change-Id: Ice6cd13ab1724d15950458579ab60aedd15103fa
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Accessing uninitialized mutex is not recommended.
Prevent such handling by initializing the mutex
during probe.
Change-Id: Iff3bc8d390fe59f5fc71cdadfa53e66077b59e1b
Signed-off-by: Abhilash Kumar <krabhi@codeaurora.org>
Move request to active list whenever bubble is detected and wait for
buf done. Remove the request from active list after buf done from all
the ports are returned.
Change-Id: Ic9e3b0d28ab8beef7018b781fbcfcba83add8281
Signed-off-by: Junzhe Zou <jnzhezou@codeaurora.org>
For the IPP & PPP paths the default min hbi between lines
is specified to be 4. The value is overwritten while
configuring other bits in this register. This change ensures
that we retain the default register value for min hbi.
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Change-Id: If39c58f7208d61e711d32000f5481d99f6fc80c5
This change enables generating EOF strobe immediately after
last line of the image. This feature reuses the START_LINE and
END_LINE fields of the VCROP register to know what the actual
frame height is. Hence this bit is enabled only when user
correctly programs the start and end lines of the vcrop register.
Also the change adds a debugfs to disable this feature.
Change-Id: I3b884a18ea50931cad58ee7d03829bfb596e01a2
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Add i2c related operations which include command buffer parsing,
apply settings and delete settings.
Change-Id: I1e5a23ba7f76ed14f0ba0115d092e8248f2e9999
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>