shit,i forgot gitigore
 msm: adsp: qdsp5v2: Increase retry duration to 5msecs.
When DSP is not ready to accept a command, ADSP driver retries
for 40 times with 50 usecs delay each time which amounts to
2 msec in total. But when DSP is busy processing commands it may
take more than 2 msec to respond to requests from application
processor.

Hence updating the number of trials to 100 with 50 usecs delay each
time thus increasing the maximum delay to 5 msecs.

CRs-fixed:242965
Change-Id: I80eafe06d8b2188214e3cc81d144e2a51d470eb7
Signed-off-by: Suresh Vankadara <svankada@qualcomm.com>
PM: Provide generic subsystem-level callbacks

There are subsystems whose power management callbacks only need to
invoke the callbacks provided by device drivers.  Still, their system
sleep PM callbacks should play well with the runtime PM callbacks,
so that devices suspended at run time can be left in that state for
a system sleep transition.

Provide a set of generic PM callbacks for such subsystems and
define convenience macros for populating dev_pm_ops structures.

Change-Id: If7f7a063918db76c5c14adb4c1e393cce675c747
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
[dkulinsk@codeaurora.org: added KConfig change and resolved conflicts]
Signed-off-by: Derek Kulinski <dkulinsk@codeaurora.org>
PM / platform_bus: Allow runtime PM by default

Currently the default runtime PM callbacks for platform devices return
-ENOSYS, preventing the use of runtime PM platforms until they have
provided at least a default implementation. This hinders the use of
runtime PM by devices which work with many platforms such as memory
mapped devices, MFDs and on chip IPs shared by multiple architectures.

Change the default implementation to the standard pm_generic_runtime
one, allowing drivers to use runtime PM without per-architecture
changes.

Change-Id: I8b985a20bac055b512e94594694b98500a8249ce
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Derek Kulinski <dkulinsk@codeaurora.org>
msm: alsa: fix for routing to external codec devices

Problem
The current implementation does not handle external codec
routing properly.The driver attempts to route to icodec device
ignoring all routing.

Impact
audio playback failure on all devices except icodec

Solution
modified to handle runtime switching and cache all routing
done before playback and record starts.

CRs-fixed: 246640
Change-Id: Ie5fbd424fc09a741a9842118cb5ebdab34122bfe
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
msm: mm: Fix errors when turning on SPARSEMEM

Carry forward the fix from 2.6.29b kernel to handle the
NR_SECTION_ROOTS == 0 case when turning on SPARSEMEM on MSM.
Also fix the linux coding style typos by replacing
"foo* bar" with "foo *bar".

Change-Id: I77f259f3d62980a37f4ae7c4680a3617c9b4f563
Signed-off-by: Naveen Ramaraj <nramaraj@codeaurora.org>
msm_fb: Write proper FPGA value to avoid conflict with UART

Write proper FPGA value into SIGNAL_EXPANDER registers in HDMI
driver to avoid conflict with UART GPIO's selection.

CR's fixed: 241467

Change-Id: I5880b287454870e2c1fae82691b9584a3ae27027
Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org>
msm: msm_nand: Configure EBI2_CFG register once during driver probe.

Configure EBI2_CFG register once during driver probe instead setting
and clearing everytime in read/write functions of ping pong mode for
7x30.

CRs-fixed: 247540
Change-Id: I570f654a52ae424cefae4fb9ddbcc58a8ec62152
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
msm: rpc: Modify classification of SDIO XPRT log messages

Log debug message for sure, in case of failure conditions, using
printk. Change certain INFO message types to DBG message types.
Log only INFO messages by default.

Change-Id: Id8a5f7add6397d7c34bab3da6c30fc8271f34866
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
diag: Disable interrupts before acquiring spin locks
DIAG uses spinlocks before calling SMD API. Now these SMD APIs can be
called from either USB ISR or SMD ISR. Hence disabling interrupts before
acquiring spin locks.

Change-Id: I57204c177c8f70a3deb146429f5a60a68e2c44d8
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
msm: rmnet: Initialize the wakelock before taking the lock

Wakelock is being initialized after the sdio_open call.
This introduces a corner case where taking the lock is
attempted from read task before lock is initialized.
Initialize wakelock before sdio_open call.

Change-Id: I32ef6d230c3a5b7fa8b59f9c97bfcea0947c00dc
CRs-fixed: 247808
Signed-off-by: Niranjana Vishwanathapura <nvishwan@codeaurora.org>
USB: Minimize delays involved in root hub initialization during HNP

Host controller driver may register root hub during HNP while
becoming B-Host.  Remove delays involved in debouncing and
applying port power.  This helps B-device to meet TB_ACON_BSE0
timing parameter and A-device will not find bus idle for longer
than TA_BIDL_ADIS.

Change-Id: Ib5df6417b10c6bde5bf5b9fd688c13a305ce7a4d
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
CIFS: initialize nbytes at the beginning of CIFSSMBWrite()

commit a24e2d7d8f512340991ef0a59cb5d08d491b8e98 upstream.

By doing this we always overwrite nbytes value that is being passed on to
CIFSSMBWrite() and need not rely on the callers to initialize. CIFSSMBWrite2 is
doing this already.

Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Reviewed-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
cifs: guard against hardlinking directories

commit 3d69438031b00c601c991ab447cafb7d5c3c59a6 upstream.

When we made serverino the default, we trusted that the field sent by the
server in the "uniqueid" field was actually unique. It turns out that it
isn't reliably so.

Samba, in particular, will just put the st_ino in the uniqueid field when
unix extensions are enabled. When a share spans multiple filesystems, it's
quite possible that there will be collisions. This is a server bug, but
when the inodes in question are a directory (as is often the case) and
there is a collision with the root inode of the mount, the result is a
kernel panic on umount.

Fix this by checking explicitly for directory inodes with the same
uniqueid. If that is the case, then we can assume that using server inode
numbers will be a problem and that they should be disabled.

Fixes Samba bugzilla 7407

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-and-Tested-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
CIFS: Allow null nd (as nfs server uses) on create

commit fa588e0c57048b3d4bfcd772d80dc0615f83fd35 upstream.

While creating a file on a server which supports unix extensions
such as Samba, if a file is being created which does not supply
nameidata (i.e. nd is null), cifs client can oops when calling
cifs_posix_open.

Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>