Export msm_dsps.h to user space to interact with DSPS
driver.
Change-Id: I0cfcc883e704c8e59a0cb7c76ef56a3680573e4e
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
On certain targets the worst case console buffer draining time can
exceed the aggressive spin dump timeout value. Relax the timeout value
to cater to these scenarios.
Change-Id: I7312ffe06bafd2dc7adf0f4e8b73a53fc5839235
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
At the moment if the block layer issues an URGENT request notification
before receiving a complete on the URGENT request currently handled by
the device driver - the system crashes with a BUG_ON().
This change enables multiple block layer urgent request notification to
be handled by MMC layer by removing single notification enforcement.
CRs-fixed: 517724
Change-Id: Idfa410d0c2286146f8d58a38b5abd6886036317c
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
8610 video firmware is now optimized to support 1080p.
This change modifies the max supported load from 720p to
1080p.
Change-Id: Idaa062cb9050bf31eab99273e5cf58f44595d57a
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
Add in-sensor mode calibration support for eeprom.
User are able to write back calibration settings
via ioctrl interface of the sensor.
Change-Id: I5fbfa8967885b683e498fe670a0c36d58d4b44e7
Signed-off-by: Ju He <juhe@codeaurora.org>
The value csi_lane_mask which is uint16_t is controllable from userspace.
The while loop can loop for 2^16 - 1, Hence extract the required
bit combination from the userspace argument, used it for further
processing.
CRs-Fixed: 511976
Change-Id: I80b0fe7ac273352503d9705510f05debe6cbb10a
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
Local structures have not been initialized to all zeroes, so fix
this by setting them to all zeroes to prevent uninitialized memory
being copied to userspace.
CRs-fixed: 518478
Change-Id: I6e76355c3f854514def1bd18dcc5c3ef6db38f16
Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
Add a check for upper and lower bounds in msm_cpp_subdev_ioctl() for
command code VIDIOC_MSM_CPP_DEQUEUE_STREAM_BUFF_INFO.
CRs-fixed: 518731
Change-Id: I72996e13b7370a3b49f645297c52a118775b2b12
Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
Insertions and deletions into the session based command
ack queue need to be synchronized since they may be accessed
from more than one context.
CRs-fixed: 516599
Change-Id: Ia8b4c10666ceede41352baa652f28e7e4ed8e5fc
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
For Start of frame event send to userspace,
we need to know whether it is coming from the
pixel interface or the raw interface.
This change add the code to populate the
interface information.
Change-Id: Ie81473d9797e4514394fb89c39f576396e8ff478
Signed-off-by: Peter Liu <pingchie@codeaurora.org>
Currently, the BMS and Charger tries to load battery properties from
the devicetree battery data node. However, currently the drivers only
check for a non-negative number before loading the properties. This
can cause null batterydata nodes to be loaded as 0s for all
properties.
Fix this by first intializing the properties to -1 before loading the
batterydata.
CRs-Fixed: 518407
Change-Id: Iede14a6ba5dd0d307a1bdd8f813c509f718acfe6
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
The BMS peripheral interrupts were reversed for MSM8226 and MSM8610.
This may cause accidental wakeups during sleep because the sw_cc_thr
irq is switched with good_ocv. Since the BMS driver registers
sw_cc_thr as a wakeable interrupt and sw_cc_thr actually registers
the good_ocv irq, the device will wake up every time the BMS
peripheral gets a good OCV reading.
Fix this by correcting all the IRQs in the BMS device tree node.
CRs-Fixed: 519868
Change-Id: I2e3ae128fa2a79bd527d6293d8ac592790847b58
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
If ioremap is used, iounmap has to be called. Missing iounmap call
cause flooding vmalloc table which will end up with random crashes.
CRs-fixed: 502923
Change-Id: I45fa48d583503470c8fa9549c9c5f60d903e38ed
Signed-off-by: Fred Oh <fred@codeaurora.org>
If ioremap is used, iounmap has to be called. Missing iounmap call
cause flooding vmalloc table which will end up with random crashes.
CRs-fixed: 502923
Change-Id: I7fd9bc1367ef50afe9b586e66c014f4af677bc4e
Signed-off-by: Fred Oh <fred@codeaurora.org>
Issue a reg update command in case of raw
snapshot to fix the failure of raw snapshot
Change-Id: I38dce970979d34ad720ba61fb8a1b65dc53cff66
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
Add LED flash driver for adp1660 as i2c node.
Create v4l2 node and add control logic for i2c
LED Flash driver.
Change-Id: Iccdd341c280e58dfa5b374d06b16c2d9d344f748
Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
On few legacy platforms, USB PHY is having dedicated reset clk.
It is used to reset USB PHY after putting USB PHY into low power
mode and for calibration of USB PHY. Putting USB PHY into low
power mode is causing ulpi read/write timeout as expected USB PHY
reset clk is not available on newer platform. Hence remove USB PHY
reset clk usage and related reset code.
For 28nm PHY, Reset USB PHY after resestting USB LINK. Also reset
USB PHY using USB_PHY_PON bit with USB_OTG_HS_PHY_CTRL register
after programming USB PHY Override registers as suggested with
hardware programming guidelines. Also debug out important USB
register when ulpi read/write timeout is seen with USB PHY.
CRs-Fixed: 511102
CRs-Fixed: 511397
Change-Id: I8f0f49211a64aa6eac7643cd91a652aed40132e3
Signed-off-by: Mayank Rana <mrana@codeaurora.org>