Commit graph

576422 commits

Author SHA1 Message Date
Bhalchandra Gajare
4f284f6dbb ASoC: wcd-spi: Add memory read debug support
To help debugging, change adds support to read address and size from
the debugfs nodes and provide the memory content through the
mem_read debugfs node.

CRs-Fixed: 1064870
Change-Id: I151bc5d373129e3599baf6d3217b65843c0f16d0
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-10-18 16:03:13 -07:00
Abhijeet Dharmapurikar
eb9868d449 qpnp-smb2: handle DC insertion
Update the power_supply framework of a dc insertion/removal.

Change-Id: I786d0774589ae64b298754286be28d67d394a66d
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-10-19 06:58:47 +08:00
Bhalchandra Gajare
0aab42e7e8 ASoC: wcd-spi: fix the maximum transfer unit setting
Current maximum transfer unit in the driver is set to 16K bytes,
whereas the maximum possible is upto 64K bytes. Update the driver
to use the maximum possible transfer unit and split the read and
write requests into chunks of this maximum possible transfer length.

CRs-Fixed: 1070087
Change-Id: I271cf0ad12652421ab3ae8770714ccb78c043efa
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-10-18 14:49:07 -07:00
Olav Haugan
651e7eb964 core_ctl: Add refcounting to boost api
More than one client may call the core_ctl_set_boost api. Add support
for this.
Also add a new trace event that is emitted when this api is called.

Change-Id: Iad0a9fc45f1ce87433995e8e549bfca80e8b9cb2
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-10-18 14:48:14 -07:00
Girish Mahadevan
2ea1cecd04 serial: msm_serial_hs: Move HS UART pins to known state at probe
During probe the driver does a devm_pinctrl_get() on the GPIOs assigned
to it. This call doesn't move the state of pins (bias/drv strength) to a
known state, rather only sets the function mux for those pins. As a result
the pins are in an unknown/floating state till a usecase for the port
begins.
Instead move the pins to the "sleep" state during probe to put them into a
known state.

Change-Id: Ifc6102d367fb0ca9fffbd50a6077dccd779e9a6c
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
2016-10-18 11:48:27 -07:00
Skylar Chang
fc5f718836 msm: ipa: fix reference count in rm
IPA RM keeps reference count for consumer resources.
In some cases where the client driver returns failure
on request_resource callback, the reference count may get
out of sync.

Change-Id: I6be84411e0bfe4f90570ab62c2d0a0c8539b8f34
CRs-Fixed: 1070261
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-10-18 10:37:58 -07:00
Prashanth Bhatta
cf9c784ceb icnss: Fix return value for register_driver
With change commit 0da8e4a21c ("icnss: Wait uninterruptible for
unregister driver"), return value changed from -ERESTARTSYS to -EINTR to
provide right return value to user space but as part of the change,
missed to update register driver case. Returning error even when driver
register is failed causes the module loader to remove the module because
of failure even though register driver as such is success.

CRs-fixed: 1078316
Change-Id: Ib3d13360def3ab47f121c66057c96977f5264043
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-10-18 10:37:26 -07:00
Ram Chandrasekar
57f00199bc driver: bcl_peripheral: Input correct dmac flush range argument
Correct the input argument to pass in the valid end address for the dmac
flush range function.

Change-Id: If6db015558a6a9e3db53ba7f1455808e779da908
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-10-18 09:52:25 -06:00
Ram Chandrasekar
5e66f22b64 driver: msm_thermal: Input correct dmac flush range argument
Correct the input argument to pass in the valid end address for the dmac
flush range function.

Change-Id: Ib0e9690fc158a76dcebbd5ae45f67aaeca016a48
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-10-18 09:51:24 -06:00
Ram Chandrasekar
f34a7e343a driver: msm_lmh_dcvs: Input correct dmac flush range argument
Correct the input argument to pass in the valid end address for the dmac
flush range function.

Change-Id: I2bc1eb26bcc7ed4aaa381417045d08b6779679ee
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-10-18 09:50:59 -06:00
Ram Chandrasekar
cb0945c450 driver: lmh_lite: Input correct dmac flush range argument
Correct the input argument to pass in the valid end address for the dmac
flush range function.

Change-Id: Iefcf85eaa5ea5542888269b7506b8f6e0e861243
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-10-18 09:50:12 -06:00
Ghanim Fodi
bdb2290087 msm: ipa3: Do not wait for IPA DMA_TASK H/W ACK for GSI
Stop GSI channel for IPA producer endpoint includes
sending IPA DMA_TASK immediate command to IPA.
If the IPA DL group is in HOLB state, the DMA_TASK
will not be processed and ACK on it will not be sent to
the driver. In this case, ACK is redundant as the DL
data will release the IPA TX and GSI STOP indication
will be sent to S/W.

CRs-fixed: 1078380
Change-Id: I115524d562b63a8ec76b327207919b6ac9327fe2
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-10-18 04:57:43 -07:00
Linux Build Service Account
c6b7d9674c Merge "msm: ipa3: Add specific logs to improve debugging capabilities" 2016-10-18 03:25:05 -07:00
Linux Build Service Account
240bddf76e Merge "soc: qcom: Acquire mutex before checking for service" 2016-10-18 03:25:04 -07:00
Linux Build Service Account
cfb87a7e1f Merge "clk: msm: clock-mmss-cobalt: Update the FMAXes for dp_pixel_clk_src" 2016-10-18 03:25:03 -07:00
Linux Build Service Account
0efa66ae3e Merge "sched/fair: Fix issue with trace flag not being set properly" 2016-10-18 03:25:03 -07:00
Linux Build Service Account
a8cbf3d8be Merge "ARM: dts: msm: Add support for Lpass PIL on msmtriton" 2016-10-18 03:25:02 -07:00
Linux Build Service Account
1f7a8f328d Merge "usb: gadget: f_midi: Fix use after free bug" 2016-10-18 03:25:00 -07:00
Linux Build Service Account
083bcc387b Merge "msm: camera: isp: Set the clock rate before ahb vote" 2016-10-18 03:24:53 -07:00
Linux Build Service Account
02be6e0578 Merge "smb138x-charger: supporting switching freq prop" 2016-10-18 03:24:45 -07:00
Linux Build Service Account
d5fe1119ae Merge "power_supply: add property to reflect switcher frequency" 2016-10-18 03:24:43 -07:00
Linux Build Service Account
0fe66ef383 Merge "smb-lib: provide insertion removal functions" 2016-10-18 03:24:43 -07:00
Linux Build Service Account
02821f198d Merge "arm64: mm: Log the process id in the rtb" 2016-10-18 03:24:41 -07:00
Taniya Das
1c21db3c98 ARM: dts: msm: Enable RPM clock support for MSMfalcon/Triton
RPM clocks are required for allowing clock operations on the clocks
managed by RPM. Add support for the same.

Change-Id: I622533807c7e4653a7aa3c51bf4e4f0db1a7a5ff
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-18 11:34:55 +05:30
Shantanu Jain
1445e21c5d input: misc: pat9125: add sysfs for suspend-resume test
Add sysfs for suspend-resume test in pixart pat9125 driver.
This sysfs is used for doing regression testing for pixart
pat9125 device.

Change-Id: Ia90832f9280f69c367c5d9f404b0d27c656e5c28
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-18 11:33:43 +05:30
Vevek Venkatesan
a96fe06a1e input: misc: pat9125: add regulator framework support
Add regulator framework support for Pixart pat9125 driver.

Change-Id: Ia4893c31eefcb5ac23440c67669af936620b31c1
Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
2016-10-18 11:33:32 +05:30
Ghanim Fodi
d51f2f62e4 msm: ipa3: Add specific logs to improve debugging capabilities
Add some debug logs to specific places at IPA driver
to improve debugging capabilities.

Change-Id: Ibc53bd27a58c90d309a38937d6de6eef62ddc99a
CRs-Fixed: 1073482
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-10-17 22:57:02 -07:00
Linux Build Service Account
ff02182ddb Merge "msm: mdss: fix typo in the error message for multirect validation" 2016-10-17 21:00:48 -07:00
Linux Build Service Account
79fd9cc15e Merge "msm: camera: cpp: Add validation for v4l2 ioctl arguments" 2016-10-17 21:00:45 -07:00
Linux Build Service Account
2e25f74964 Merge "clk: msm: clock-mmss-cobalt: Update the CPP clock frequency table" 2016-10-17 21:00:45 -07:00
Linux Build Service Account
04e78b618d Merge "ARM: dts: msm: Add cpp root clock for msmcobalt" 2016-10-17 21:00:44 -07:00
Linux Build Service Account
b6cab4d0be Merge "msm: camera: isp: Update burst length for msmfalcon" 2016-10-17 21:00:43 -07:00
Linux Build Service Account
1fa5af7193 Merge "msm: sensor: Update CSI PHY 3 phase settings for msmcobalt" 2016-10-17 21:00:42 -07:00
Subbaraman Narayanamurthy
674a59bceb fg-util: fix a possible buffer overflow
If the string passed is of a huge size, then bytes_read can be
higher and can overflow "pos" to a small value. This can cause
a potential buffer overflow when "pos" is used again in sscanf.
Fix this by validating bytes_read before it is used.

CRs-Fixed: 1077693
Change-Id: I59d4472b49b67f481992867a34e6779a4589d035
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-17 19:17:37 -07:00
Olav Haugan
34418fc16e sched/fair: Fix issue with trace flag not being set properly
During scheduler boost the sched_task_load ftrace event might not log
the correct flag value. Ensure that the flag is always initialized with
the selected cluster information.

Change-Id: Ia986d0fbc512c8e9ed1b5fb5b2ac4bc564cc4ba9
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-10-17 17:05:54 -07:00
Puja Gupta
81e4df5b4a Revert "soc: qcom: Listen to SUBSYS_AFTER_SHUTDOWN notification"
Revert commit 238f87868d ("soc: qcom: Listen to
SUBSYS_AFTER_SHUTDOWN notification").

SUBSYS_AFTER_SHUTDOWN notification is late for subsystem as they
are not able to communicate with firmware.

CRs-Fixed: 1078743
Change-Id: I61b308dce7e92b0e28033750885eac4a003dc01a
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-10-17 13:58:52 -07:00
Abhijeet Dharmapurikar
2bfdf68177 smb-lib: qpnp-smb2: cleanup parallel charging code
The parallel charging code has grown organically.
Clean up the following:
1. Use correct units for all unit based variables.
2. Use slave percent instead of master percent.
3. Remove parallel master module parameter.
4. Put PARALLEL_DISABLE where it belongs in battery psy.
5. Create a get_jeita_cc_delta function similar to get_step_cc_delta
   function.
6. Print errors when returning error codes.

Change-Id: I27ec29c3a6c5f3aac31705e60e1b8cf3270322a1
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-10-17 13:56:25 -07:00
Linux Build Service Account
7fcfd3ec06 Merge "ARM: dts: msm: add smmu impl-def registers for msmfalcon" 2016-10-17 13:34:12 -07:00
Linux Build Service Account
d5bdc231bc Merge "ARM: dts: msm: add the smmu dt nodes for msmfalcon" 2016-10-17 13:34:11 -07:00
Linux Build Service Account
0573581457 Merge "mmc: host: Register changes for msmfalcon" 2016-10-17 13:34:11 -07:00
Linux Build Service Account
244d98ccc7 Merge "msm: mdss: Fix the cursor max size for msmcobalt" 2016-10-17 13:34:08 -07:00
Linux Build Service Account
67846eadb1 Merge "msm: mdss: Update memory retention and periph control setting" 2016-10-17 13:34:07 -07:00
Linux Build Service Account
7691180c04 Merge "msm: mdss: dp: add support for logging event names" 2016-10-17 13:34:05 -07:00
Linux Build Service Account
2c4448cb42 Merge "msm: mdss: dp: update Clock Recovery phase of link training" 2016-10-17 13:34:05 -07:00
Linux Build Service Account
9c0815e32f Merge "msm: mdss: displayport: fix alt mode sequence" 2016-10-17 13:34:04 -07:00
Linux Build Service Account
ca2803ad16 Merge "clk: msm: mdss: fix DSI PLL post vco divider configuration" 2016-10-17 13:34:03 -07:00
Linux Build Service Account
dd0fa9929b Merge "scsi: ufs-qcom: avoid sleep in atomic context" 2016-10-17 13:34:01 -07:00
Linux Build Service Account
5699e2b539 Merge "msm: kgsl: Remove DPM registers from snapshot" 2016-10-17 13:34:00 -07:00
Linux Build Service Account
2048927de0 Merge "ARM: dts: msm: Enable SD card for msmcobalt QRD VR1 board" 2016-10-17 13:34:00 -07:00
Linux Build Service Account
a18f0e81de Merge "PM / devfreq: memlat: add device attribute to show core to device bw map" 2016-10-17 13:33:59 -07:00