mmc: msm_sdcc: prevent possible NULL pointer access

mmc_signal_sdio_irq() should only be called if SDIO interrupt is
received for SDIO card. If mmc_signal_sdio_irq() function is called
when card is not present or for non-SDIO card, it may result into
NULL pointer access (due to uninitialized spin lock access) inside
mmc_signal_sdio_irq() function.

This change fixes the above issue by adding relevant safety checks in
driver.

CRs-Fixed: 423795
Change-Id: I1829acd81f91b4d0e01d509dd9e0926547cec7a0
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
msm: display: remove redundant GPIO control

PM GPIO 37 is used as power switch for FPD-Link 3 interface. Therefore,
control should be moved to FPD-Link 3 driver.

Change-Id: I91b7b92452618e6d95ef80eccff90392daf37abc
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
usb: Add support for vendor id 0x1e2d and product id 0x0060

This product id supports DIAG, ADB, MODEM, NMEA, QMI_RMNET
interfaces.

Change-Id: I3d4b1b42541410761e574cd932184a1a3fa984ff
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
board-8064: msm: Configure MPP pins for MDM contrl signal

Configures MPP pin 1 for MDM_STATUS, pin 2 for MDM_ON_OFF
and pin3 for MDM_RESET control lines.

Change-Id: Ib68aa442d6675633fd4c95ab9a3864a06af97045
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
defconfig: apq8064: Enable usbnet driver

This allows to load embedded rmnet usb driver.

Change-Id: I5b5b72c042ce54cd20ce997e64590d6293bbe8e0
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
defconfig: apq8064: Enable usb serial driver

This allows to load csvt usb serial driver for
dial-up networking.

Change-Id: I362ea8eda0001418aefeae477158de42e7f3e378
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
defconfig: Add Wlan SDIO config flag

SDIO driver is required for WLAN high latency data path.
The compilation flag is added to enable wlan SDIO driver
build.

Change-Id: Idbe529a295b57f1f7e5d0578fce2413b97f58d11
Signed-off-by: Peng Xu <pxu@codeaurora.org>
scripts: Build dtbs as part of 'all' builds

Make sure to build the dtb targets so that these are tested as part of
building all targets.

Change-Id: I351527d197ef6a60fefe43f3a16b34be86a74dd1
Signed-off-by: David Brown <davidb@codeaurora.org>
scripts: Build make targets sequentially.

Added omap2 to the list of defconfigs to scan.
Install headers and kernel modules to separate staging directories
by setting values for INSTALL_HDR_PATH and INSTALL_MOD_PATH.
Build make targets sequentially instead all on one invocation.

Signed-off-by: Andrew Walker <andreww@codeaurora.org>
Change-Id: I87dae363bd536808a74ff368b905d18ae11607b2
Remove the build of omap2plus from build-all.py

This tree doesn't maintain support for omap2plus, thus it makes
sense to remove omap2plus build from build-all script.

Change-Id: I54de554a0bc12f5fc26af589dc58c1beb532994f
Signed-off-by: Adrian Alexei <aalexei@codeaurora.org>
build-all.py: Add support for msmkrypton_defconfig

There is an msmkrypton_defconfig which does not match the
existing msm pattern by virtue of not containing a number
after the 'msm' prefix. Compile it too.

Change-Id: I19535afe7912487cb6882adec89e3fd8138ed904
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
scripts: only set CROSS_COMPILE when unset to begin with

Don't mess with CROSS_COMPILE if it's already set up in the user's
environment. This allows the user to specify the cross compiler that
they wish to use.

Change-Id: I15873f79a30e1da91ee34eb31c713e5cd767c372
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
build-all.py: Add support for mpq*_defconfig

mpq8092_defconfig does not match the existing msm pattern
because of not having its name started with msm prefix.
Compile it too.

Change-Id: I1b758e33fa550fdac539a18cc61a6a8348f61f71
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
scripts: Reorganize build-all for multi arch

Move most of the build work into a Builder class, which is given a
name and a specific defconfig.  If the arch contains arm64, build
using the CROSS_COMPILE64 compiler rather than the CROSS_COMPILE
compiler.

Defconfigs that match the globs in arm64 will have a "-64" appended to
the name, to avoid conflicts when the same target has both a 32-bit
and a 64-bit build.

The main visible change to this is that CROSS_COMPILE now must be set
before invoking this script.  If CROSS_COMPILE64 isn't set, it won't
be willing to build any 64-bit targets.

Change-Id: I0bd9a7bff22f9c21371c663aff9e8be5116fcdae
Signed-off-by: David Brown <davidb@codeaurora.org>
scripts: Keep appending log between build parts

Instead of wiping the log file for each make target, only wipe it
initially, and then continue to append to it.  Instead of closing
between files, just flush.  Although the last use doesn't ever close
the file, it is flushed, and will be closed on exit.

Change-Id: Ic4b38cdad993bc32711f832ce30ca8d8dead0db6
Signed-off-by: David Brown <davidb@codeaurora.org>
scripts: Use custom defconfig for 64-bit targets

Use a different set of defconfig patterns for 64-bit targets.
Currently, msm_defconfig needs to not be built for 32-bit, and is the
only defconfig for the 64-bit target.

Change-Id: I2c3840fd668aa9a1dbd304c64484f6735f1aeea1
Signed-off-by: David Brown <davidb@codeaurora.org>
scripts: Refactor build-all.py's build

Build all consists of a mismash of figuring out variables, running
shutils, and actually executing commands.  In preparation for parallel
builds, change this to build up the commands in advance, and then have
a tracker go through and actually run the commands.

Change-Id: I24215b14e5d045f8269bbdc2af9989ab21b2310b
Signed-off-by: David Brown <davidb@codeaurora.org>
scripts: Build in parallel if requested

Instead of passing -jn directly through to make, and then building
each target in sequence, use the -j and -l options to determine a
number of threads to perform parallel invocations of make in.

The build results are collected, and printed when each build finishes,
which eliminates the interleaving that would otherwise occur between
builds.

Change-Id: Ieef0dcc8adfc72cbe043a3491d4d6f6c23fede31
Signed-off-by: David Brown <davidb@codeaurora.org>
Merge "defconfig: Add Wlan SDIO config flag"
Merge "usb: Add support for vendor id 0x1e2d and product id 0x0060"