Temp changes.
msm: smd_pkt: catch possible array out of bounds accesses

Check to see that the device timeout that is being accessed is a valid
device instead of always assuming we get a valid device, and thus prevent
an array out of bounds access.

Change-Id: I9690bede1820b9920594e3533c14b8a5c20b337f
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
msm: smd_pkt: Remove hard-coded PIL names

Update PIL subsystem naming to use SMD lookup
instead of hardcoding the subsystem names.

Change-Id: I3996464395f7bedbdaa8149f3b7047061051fa6e
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: smd_pkt: Register the platform driver while performing open operation
Defer registering the platform driver for an SMD channel until the SMD_PKT
driver open operation is invoked.

Previously during initializaton, SMD_PKT driver would register a platform
driver for all SMD channels in the configuration table. This prevented
other drivers from being able to register for the same SMD channel, even
if the SMD_PKT driver never uses that channel.

Change-Id: Ie9b80329093c0b14bf0f74280fb30bdd3d3aa7a9
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/smd_pkt.c')
Update smd_pkt to newer 3.4 version.
msm: ipc: Add SMD link to interface with WCNSS

This new SMD link will enable QMI/IPC Router communication between
Application processor and WCNSS.

Change-Id: I140834bd193e110e636d3945aa5dc93b3306ef05
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Save changes.
Revert.
Revert "Revert."

This reverts commit 921bde52471c69d8cf2b6f55a05a539201e802dd.
Revert.
Revert "Revert."

This reverts commit 7f055d55a5ba50fbfbf4d4799165c79adcb45324.
wcnss: wake lock APIs for host drivers

wcnss related host drivers can use these APIs to prevent Apps suspend.
WLAN driver uses this API to prevent suspend, when it's module
initialization routines are being executed.

Change-Id: Id072804e6ccc953c78caf6cf11c73e0ea1d71d18
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
wcnss: new SMD control channel with WCNSS

A new SMD control channel is opened with WCNSS, currently only the
version information is exchanged thru this channel. WCNSS version is
exposed thru /sys interface.

Change-Id: I45638bdd992846fa6087b6131180684d30805002
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>

Conflicts:
	drivers/net/wireless/wcnss/wcnss_wlan.c
wcnss: Add interface to Reset wcnss

Add wcnss reset interface, this interface generates an FIQ to Riva.
Upon receiving this interrupt, Riva will execute the ERR_FATAL
routine and invoke SSR.

Change-Id: I74c293121cb69b312ed980902a12019adb700792
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
msm: qdsp6v2: Move away from the subsystem map apis

The subsystem map APIs are no longer the prefered method for
mapping into the kernel address space. Use ioremap directly for
physical memory to be accessed for debugging.

Change-Id: Ib7c2277f284f4a2a274e318f4b6e873027c179a5
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
msm: Use defined IMEM address for writing cache dumping address

Instead of manually calling ioremap again, use the defined
MSM_IMEM_BASE to get the start of IMEM to use as a base of
where to write the L2 address.

Change-Id: I29d2d9b7abce8157f1a378be3088d8f19ef8ead2
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
msm: pil: Correctly check for overwriting memory

memblock_is_region_memory() checks to see if the region specified
is fully contained within a memory block (i.e. it is a subset of
a memblock). For PIL use cases we want to know if the region
we're loading the image into overlaps with a memory region that
the kernel is actively using. Use memblock_overlaps_memory() to
check for this case.

While we're here update the error message to be more informative
by printing the address range that failed to pass.

Change-Id: I543fb04624dbf8698ce8ef8ca2726145c5e6069e
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/peripheral-loader.c
Revert "wcnss: Add interface to Reset wcnss"

This reverts commit ee6c5bbae21d7d4e6a1aa2fe87517e007b78d13a.
Revert "msm: pil: Correctly check for overwriting memory"

This reverts commit d5998d4e424020355ec821c55fad8065a4038f50.
ARM: 7401/1: mm: Fix section mismatches

WARNING: vmlinux.o(.text+0x111b8): Section mismatch in reference
from the function arm_memory_present() to the function
.init.text:memory_present()
The function arm_memory_present() references
the function __init memory_present().
This is often because arm_memory_present lacks a __init
annotation or the annotation of memory_present is wrong.

WARNING: arch/arm/mm/built-in.o(.text+0x1edc): Section mismatch
in reference from the function alloc_init_pud() to the function
.init.text:alloc_init_section()
The function alloc_init_pud() references
the function __init alloc_init_section().
This is often because alloc_init_pud lacks a __init
annotation or the annotation of alloc_init_section is wrong.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>