msm: bam_dmux: Fix potential memory leaks

Added code to fix potential memory leaks.

Change-Id: I76f92fc95539feee67600a6ab4a730bbb50643a1
Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
msm: ipc_router: Fix potential leaks and null dereferences

Added null pointer checks to avoid potential null pointer dereferences
and free statements to avoid potential memory leaks

Change-Id: I0553dfe6c61260a700a9dc6a411dcec6483e0eb8
Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
msm: ipc: Access pointers after a successful check

Some pointers in msm_ipc_router_extract_msg function are accessed either
before a NULL pointer check or if one of the conditions in the check is
true.

Fix the code to dereference those pointers only after the pointer is not
NULL and the other associated conditions are true.

CRs-Fixed: 471110
Change-Id: Ic45fe118818caa6985e5e56403ab3cc467174cf6
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
cpufreq: Resolve CPUFREQ_NOTIFY issue

When the cpufreq_stat receives the frequency policy notification,
it checks if the frequency table and stats table are present for the cpu.
If both are present, it returns with -EBUSY error to the notification.
Due to this, none of the other registered modules receive this
notification.

If the stat table and sysfs nodes are already created, return 0 instead
of returning EBUSY error.

Change-Id: I1fd4a46e6a65edfc6253c4271288f10912ae2ad7
Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
msm:rq_stats: Register for Cpufreq policy notification

Currently the load of the system is calculated using the max
frequency that is read during startup(It does not get updated
when the policy changes). As a result, the average load of the
system is incorrectly calculated and the system might not bring
the cpus online to manage the additional load. This
reduces the performance of the system.

To fix this issue, register rq_stats to receive cpufreq policy
notifications. Update the policy's max frequency when a
notification is received and use that value to calculate the load.

Change-Id: Icc78e28c736c170e198f723fd96c13dfb2dafe8a
Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
Signed-off-by: Anji Jonnala <anjir@codeaurora.org>
tty: n_smux: Add SMUX documentation

Add SMUX documentation that was missed when the initial
driver was added.

Change-Id: I5b23e451ff48d1eac05b22de3e5f0e017a6f7b0c
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: mdm: Disable panic on external mdm boot timeout

We now have the ability to not panic when we see a external modem has
not booted up within the expected timeframe. This functionality is
required in order to debug early bootup issues on the mdm's and is
configured via a sysfs flag.

Change-Id: Iac3bf980b239fdbe2ffdc8a5a25b875d47f0384c
Signed-off-by: Ameya Thakur <ameyat@codeaurora.org>
msm: board-8930: Add correct regulators for isa1200 chip

The regulators used by isa1200 in 8930 are differenet from
schematics. So, fix the regualtor entries for isa1200.

CRs-fixed: 473633
Change-Id: I4a8edd1428f93810b7216c4b4efb878c12820925
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
input: touchscreen: Change the file system permission of synaptic driver

Some of the sysfs files of synaptic driver has "write"
permissions. Change them to "read" only.

CRs-Fixed: 454347

Change-Id: Ic64ebfe30b9fe351e6556951f9d0981077e7a076
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Merge "cpufreq: Resolve CPUFREQ_NOTIFY issue"
Merge "msm:rq_stats: Register for Cpufreq policy notification"
Merge "msm: board-8930: Add correct regulators for isa1200 chip"
Merge "input: touchscreen: Change the file system permission of synaptic driver"
msm: socinfo: Add new hw_platform for QRD

New hardware platform added for QRD targets.

Change-Id: I1a94218789dd8dc51bdd16969f081b2949887d5d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
msm_fb: display: add an extra write of 0 to clear dsi-ack-err bit

In addition to writing 1 to clear dsi-ack-err bit, an extra write of 0
is also need to clear error bit completely.

CRs-fixed: 478443
Change-Id: Id4c3e2a5a29534d65601999d3bbf9f30ebc73896
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Merge "msm: socinfo: Add new hw_platform for QRD"
Merge "msm_fb: display: add an extra write of 0 to clear dsi-ack-err bit"
msm: camera: Correct hfr register settings for OV8825

when we power up the sensor with present hfr register settings
the preview is not coming up. so corrected the register setting
values to fix the issue.

CRs-Fixed: 482257

Change-Id: Ic3e8adea43ecc7eb621506aa6b2d14292dd84a5c
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
Merge "msm: camera: Correct hfr register settings for OV8825"
Merge "msm: bam_dmux: Fix potential memory leaks"