NFC: Read core reset notification

After chip has cold booted wait maximum of 50ms to
receive core reset notification.
Implement kernel ioctl to read whether core reset
notification has recieved before timeout.
Cold boot implementation of NFCC had a bug,
GPIO disable needs to be held high for atleast
100ms before switching it to low for a clean cold
boot.

CRs-Fixed: 729456
Change-Id: I11a213d68ff1b44f433706e104bbaeac406bd5d6
Signed-off-by: Nakul Kadannavar <nakulk@codeaurora.org>
msm: mdp: Validate input arguments from user space

Fully verify the input arguments from user client are safe
to use.

Change-Id: Ie14332443b187951009c63ebfb78456dcd9ba60f
Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org>
USB: gadget: f_rndis: Add check before queuing notification available

There is a chance that rndis_response_available() and unbind() race each
other due to which request's buffer might have freed and could cause
accessing freed buffer pointer. Hence add check before accessing buffer
pointer of USB request for interrupt endpoint.

CRs-fixed: 731323
Change-Id: I2082e54cbdc28817651e75e8e8ed13d0ee61a6d5
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
ASoC: msm: reorg q6core header file

This is needed to allow include from
non soc folder.

CRs-Fixed: 689849
Change-Id: I753012d5ce9c5a788e75b4edf9b0099b58b30ec0
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
avtimer: msm: allow driver to register to SSR framework

Sub System Restart[SSR] framework allows driver to handle
unexpected crash in middle of operation.
Also, adding support clk_div dtsi entry to calculate
avtimer_lsw value.

Change-Id: I521e3c010dadd00a06a0fe8998a1759b2eb81b55
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
avtimer: msm: fix to avoid timejump in avtimer

In VT call, observe timestamp jump in avtimer
causing issue in camera timestamps.
By doing division with clk_div on avtimer tick,
timestamp is calculate correctly now.

Change-Id: I8d1c8d162ee28b6430c9c2e6ca323e212bacfbf2
CRs-Fixed: 726296
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
avtimer: avoid timer query from clients during SSR

Update AV timer driver to schecdule a workqueue to
make sure the ADSP on modem is up while honouring the
requests from client for timer query.

Change-Id: I3c3283e778c836fce1a68cf8a5dc439124ef2f1f
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Enable NEED_NETDEV for vendor command support.

The Vendor command needs to have the NEED_NETDEV internal flag set
for the corresponding vendor_cmd function to initialize correctly
and call the vendor subcommand specific doit function.

Change-Id: Icc46438dc9467fe0344cb832633c49466e2d20d0
CRs-fixed: 633799
Signed-off-by: Subhani Shaik <subhanis@codeaurora.org>
Merge "USB: gadget: f_rndis: Add check before queuing notification available"
Merge "ASoC: msm: reorg q6core header file"
Merge "avtimer: msm: allow driver to register to SSR framework"
Merge "avtimer: msm: fix to avoid timejump in avtimer"
Merge "avtimer: avoid timer query from clients during SSR"
Merge "Enable NEED_NETDEV for vendor command support."
Merge "Merge "Enable NEED_NETDEV for vendor command support.""
NFC: Wake up HOST from NFCC read interrupt

Wake up HOST only when NFCC wants to inform HOST for
transaction completion notification when HOST is suspended.

CRs-Fixed: 744954
Change-Id: Ib512a72eb0771ba062b57c45411972108e4a4664
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Nakul Kadannavar <nakulk@codeaurora.org>
Signed-off-by: Houston Hoffman <hhoffman@codeaurora.org>
Merge 50588d0e317ea8d27ef99011cfccb87d79abcef9 on remote branch

Change-Id: I41339da7dd8d53cb53558454a294be081c2fe13c
Merge "Merge 50588d0e317ea8d27ef99011cfccb87d79abcef9 on remote branch"
Merge "msm: mdp: Validate input arguments from user space"
Merge 3d272df48e0fdc9ef1eaa660989563e944a50b4c on remote branch

Change-Id: Ifb5ab1082341cab701f74cd5e6cdac67c89c0f79