This will fix the race between jpeg dma ISR and userspace call.
Without this fix jpeg dma may randomly crash due to invalid pointer
access.
Change-Id: I559ae08b9a46d5d3c35f8be509976a25faa967f9
CRs-Fixed: 1083323
Signed-off-by: Krishnankutty Kolathappilly <kkolatha@codeaurora.org>
This change enables USBNET driver which allows USB ethernet class
driver to register USB ethernet device as network device with Linux
Network Stack and allows USB IOs with USB Host Controller driver.
Change-Id: Iba036ce43656979df0b9ea228b57bc980c4c53bc
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This is required to control the FDE/FBE key size from kernel.
Same TZ image can now be used for different encryption key sizes.
The key size will not be fixed and will be controlled with
this flag in qseecom driver.
Change-Id: Iac5c25ba5dc7d22cd7a4961dd5058db0088995ca
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
ICE crypto engine key size can now be configured using dtsi flag.
This is required to facilitate usage of common TZ image with variable
key sizes and also provides flexibility in handling different key sizes
requirement in future. This flag is parsed in driver and depending upon
the value HLOS decides on key size to be passed to TZ.
Change-Id: If40f83a943e5ae8333d171c21823a16816d7ddd4
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
Add DTSI configuration for camera node 1. Used by
all sensor modules that are connected to this port.
Change-Id: I3301d822a3664869d8531d7ff0efa20e22996763
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
CPP poll failure can happen if vbif reset is not proper. Reset vbif
and load firmware on poll failures to recover from error scenario.
CRs-Fixed: 1098549
Change-Id: I38ef1c9478450c98c8379d8b1c085b31209cb48e
Signed-off-by: Krishnankutty Kolathappilly <kkolatha@codeaurora.org>
Add NULL check and initialize the variables to
default values in camera.
CRs-fixed: 994317
Change-Id: I165f1c39c1332737a644c6650bc40f4c718a7ee8
Signed-off-by: Manish Poddar <mpoddar@codeaurora.org>
The fmax corner frequencies have got updated, and also new frequencies have
been added for few clocks, so fix and update the same.
Change-Id: Ic6e2c2208a8971b07ed6ccfc8d63091e4692301f
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Currently USB driver is not failing probe if USB core-clk-rate property
is not exist. This leads to USB enumeration failures across connect/
disconnect. Hence make core-clk-rate property mandatory and if in case
not defined, fail the probe. Also Fail probe if extcon property not
defined in case of OTG mode.
Also return error if dwc3_core_pre_init() fails during dwc3-msm_resume()
due to phy init fails and don't go ahead with setting up event buffers
as event buffers allocation is done.
Change-Id: I3927ad2f670e45acd10f8568857cf9f3434df657
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Add required regulator changes in msm8998-v2.1-interposer-msmfalcon.dts
file for USB functionality to be working.
Change-Id: I3e4a43de0c1de6573fea8a52929f6c7af5259755
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Enable various voltage regulators, clocks required to enable bluetooth on
msm8998 interposer.
CRs-Fixed: 1097035
Change-Id: I9f70b74b7ccfb84fec721dbfa1d838d183419cb9
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
This change enables USB RNDIS and RMNET drivers for BAM2BAM communication.
Change-Id: Ibfd9d12503248a3589bbda94096d40856ccba2c4
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Add bluetooth node for wcn3990 on msmfalcon. This change configures
various voltage regulator and clocks.
CRs-Fixed: 1100113
Change-Id: I403c9def4f90832174f45e21e6c6fceb4a77a2a0
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
Add camera related device nodes for msmfalcon interposer qrd.
That includes front/rear/aux sensor device nodes, and
corresponding eeprom/actuator/ois device nodes.
Change-Id: I4f8ca4182f9807d970184c85a58989b41755b163
Signed-off-by: Kui Wang <kuiw@codeaurora.org>
Change the bus settings and clocks based on the user
settings while streaming is in progress.
CRs-Fixed: 985849
Change-Id: If9307ffd47854afe6101671ce911631b52a6dff9
Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
On detecting a VBIF hang, reset the VBIF and FD core
and if there is an active buffer, queue back the
active buffer and start processing again.
CRs-Fixed: 961394
Change-Id: I1ed035c8a8efb20d31da9556c5d5b810f81c44d2
Signed-off-by: Ashwini Rao <ashwinik@codeaurora.org>
Reset and halt the bus when bus hang with cpp timeout.
CRs-Fixed: 961394
Change-Id: Id3612b134e3db19f1f8e2e2b3b444f0b6284c4d1
Signed-off-by: Peter Liu <pingchie@codeaurora.org>
Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>
On stream off, if there is a timeout waiting for
the current buffer to complete, do a
vb2_buffer_done on the active buffer before it is
removed from the queue. Reduce the timeout
wait time to 150ms
CRs-fixed: 961394
Change-Id: I57d616e9cf89f7722483fe0d49a0b5e44f0e4782
Signed-off-by: Ashwini Rao <ashwinik@codeaurora.org>
When host RNDIS sends reset message it skips response available
notification and directly sends get encap response. This causes
notify count to become > 1. As a result when notify completion happens
driver is queuing another notify response available when there is
no legitimate response to send from device side. Hence reset notify
count back to 0 after the completion of notify response, so that
next notification will only be sent when there is a send encap
command sent by host.
Change-Id: I242478408f8cb60fb5af5c741dbf2e8bf3e38af8
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
If PMIC provides boost power for VBUS in host mode, it may
need to know the amount of current of an attached device
in order to optimize for overall power consumption. We can
pass the bMaxPower obtained from a device's configuration
descriptor when it is attached. This only affects devices
(including hubs) directly attached to the root port, as
any device downstream of a hub will either consume part of
the hub's budget or has external power.
Change-Id: I1ad2cfecb7a2f6bdeaced29a1753cdc1bf3849db
Signed-off-by: Jack Pham <jackp@codeaurora.org>
In order to avoid leakage between the graphics and the CX
rails, set the GPU_DD_WRAP_CTRL__GFX_PDN bit.
Change-Id: I7b2e59606e73c467c2b862f0162a176611d7ae3d
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
If device is disconnected in the middle of data transfer
there is a possibility of pending events in the secondary
event ring. As a result when xHC is halted as part of device
disconnect, device is not getting detected upon re-connect.
Fix the issue by acknowledging the pending events upon
device disconnect. Also this allows to finish the clean up
of event ring otherwise this results into a memory leak.
Change-Id: I2ec3d74867e0129dad395d1dbe920b468ac5949d
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
As part of bus suspend if xHC is halted when there are pending
events in the event ring, xHC stops responding to xhci commands
upon host or device initiated bus resume. Fix this issue by
going over all the pending events and writing address of xHC
event ring enqueue pointer to ERDP register. This indicates to
xHC that system software has processed all Events in the ring.
Change-Id: I0c1fafb03c9848d043599fcee19e9bf07c3a3acd
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
The current API exposed to clients for doing
cache operations didn't provide option to
specify offset within ion buffer and goes
and performs operation on complete buffer.
Export new function for clients which wants to
perform cache operation on specific range
within ion buffer.
We would also need to amend the current generic
ion_do_cache_op function to correctly take into
account the offset within buffer.
Change-Id: I5e4e7beda47cbbd43783048c64fe5adb2beb7023
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Currently, in the power supply notifier callback, GEN3 FG driver
calls pm_stay_awake() which increases the wake source count on
its device before it schedules status_change_work. In case, if
status_change_work is already pending, then pm_stay_awake() will
not have a balanced pm_relax() call as the work will not get
scheduled again if it's pending already. Fix this by scheduling
status_change_work and hence call pm_stay_awake() only if it is
not pending.
Change-Id: I2b8e28f6bfe1a5813410c7b1276d4e229eb67e84
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Currently, GEN3 FG driver uses a debug battery id threshold of
7 KOhms. However, depending on the battery id chosen by the user
this threshold can be modified in the bootloader. Hence, add
support to read the debug battery id thresholds directly from
RR_ADC peripheral registers. This can be used to decide whether
a fake battery SOC (67) can be displayed to the user.
Change-Id: I22ab702e10c310e4f847c6c81a48a8f0f3188429
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Add support to configure battery connector resistance (Rconn) so
that battery resistance can take into account of that along with
ESR and Rslow.
Change-Id: Ib330c4f9b6d55c75aeb8e8fd5cea4dd92b0f64cf
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Add initial set of configuration for GPU mempools
to reserve page pools at init time of kgsl driver.
Change-Id: I088aafe8cef621550b1776ca5a652c66e8ac5b62
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
Remove dev reference in icnss_set_wlan_mac_address as
this function is called by external module and won't
be able to get ICNSS dev pointer.
CRs-Fixed: 1099641
Change-Id: I21c992676c41b6cdc3ea53722806e8d0be78d9d5
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>