msm: smd_pkt: add enforcement that array lengths match number of ports

Additional checks are added to enforce that ports are equal in number
to the size of their representative arrays, to provide sanity checks when
ports are added or removed.

Change-Id: I83e7d74b8c21df8e357a817b7e542006b9b675a8
Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
prima: release v3.2.3.19

    git://codeaurora.org/external/wlan/prima.git

    5055f36 wlan : Revision 3.2.3.19
    273af47 Session was invalid which was causing the pointer dereferencing.

Signed-off-by: Ed Tam <etam@google.com>
Update version to 77u-r6
Update version to 77u-r6
Revert "msm: krait: fixed voltages userspace interface"

This reverts commit c9774981733fde2fcb57991fd485907ac5dbd49f.
Revert "msm: krait: extend voltage control range"

This reverts commit 06bd272ab9fddadc915e50163085f4ee7e507f57.
Revert: msm: krait: added userspace voltage control

Conflicts:
	drivers/cpufreq/cpufreq.c

Conflicts:
	drivers/cpufreq/cpufreq.c

Conflicts:
	drivers/cpufreq/cpufreq.c (reverted from commit bf2fad3456e1a3961083e5228a606749686ced74)
Revert "msm: krait: adjust min/max vdd limits"

This reverts commit 12ef166ea84c44e982e417bcaf1954313c9cf953.
msm: acpuclock-krait: Inline some functions

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: acpuclock-krait: Add undervolting support

Add undervolting support using 3 module parameters:
- lower_uV: undervolting value for lower frequencies
- upper_uV: undervolting value for upper frequencies
- upper_khz_thers: above this frequency upper_uV will be used. Else
lower_uV will be used.

Undervolting value is subtracted from stock voltage. The final voltage
for each frequency is calulated:
Vdd(final) = Vdd(core) + boost_uV - uV

Also debugfs (acpuclk/acpu_table) is used to show the acpu table
frequencies and voltages.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: acpuclock-krait: Replace 'upper' with 'higher'

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: acpuclock-krait: Use conditional directives for debufs parts

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: acpuclock-krait: Remove unused ua_core calculation

ua_core data are not provided.
So, remove unused calculations.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: acpuclock-krait: Add a column with undervolting value in debugfs

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: acpuclock-krait: Fix type in message

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: acpuclock-krait: Fix checkpatch warnings

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: mako: Change CPU regulators min_uV to 700mV

Thanks to sirxdroid for reporting this.
Thanks to thracemerin for help.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
mach-msm: acpuclock-krait: Change the pvs bin retrieval

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
mach-msm: acpuclock-krait: Fix build error

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
mach-msm: acpuclock-krait: Fix PVS name in table show

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>