Adding Dogo device support

Change-Id: I3932ed7286f9b24e9991ac124e3acd98cdda86c5
staging: prima: merge of 3.2.6.101 (f067070)

changelog:

8b87aa1 wlan: set appropriate flags for wiphy device based on current regdomain
1f226ac wlan: Update definition of tPrefNetwFoundParams.
095d0ea wlan: Update SME scan cache with PNO candidate information.
e3e7957 wlan: reload WLAN driver if cannot recover from RX low resource
2683913 wlan: Updating dwelltime in run time.
ac27bc7 FT : Remove unwanted duplicate call to limSetLinkState
44aee38 TDLS frames include vhtCap IE only if hardware supports 11ac
25c5ad2 Revert "wlan: RX thread access HW register protection"
4c6a0ea wlan: Address VOS_ASSERT on continuous connect/disconnect operations
3791e30 wlan : Revision 3.2.6.101
611375d Destroy the TDLS peer specific timers on a disconnect.
3ba3690 wlan: False SSR and RIVA crash fix
0c2c215 Fix for tdls explicit trigger failure
b3d6def wlan : Revision 3.2.6.100
4237a4e wlan:SoftAP auto channel selection
e3e7957 wlan: reload WLAN driver if cannot recover from RX low resource
25c9caf Fix VOS ASSERT while unloading the driver.
ea36295 Fix rejecting TDLS change station exhausts RX buffer
4d53b8b wlan: Fix memory corruption in GTK offload callback API
6ab3f19 wlan: RX thread access HW register protection
24eb9f8 WLAN: DUT sets NV default country code when disconnects from AP
3ba7c0d wlan:Removal of redundant code in SME

Change-Id: I68b11a8c6fa3ab253fdc76faf075cb28ecbdce5a
Revert "msm: camera: restore Sony 10.1.1.A.1.253 camera driver"

This reverts commit 5a867d8dd8fa830a017c42d3c4053959b6db62bc.

Change-Id: If79c7c2caf7b61b7d770879b3bc8f33424cd6b85
Revert "ion: ioctl compat with old api"

This reverts commit 857b0f1ce46efbaf214cc7615f0a81f0a544cbe0.

Change-Id: Ia9acc97bc2c7cb6183f9704c1d382f204e5cd040
msm: camera: Add NULL pointer check for regulator

To avoid potential crashes, Null pointer check is added
before regulator calls are made

Change-Id: I3c745ff0600971d07d10b7a537e6f2375a2bf4ab
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
msm: camera: Fix event queue drain issue

when camera daemon is killed, then command processing
timeout happens and there is a possibility of pending
event payload data. It creates a problem for further
command processing due to mismatch of event ids.
Drain the event payload queue when there is a timeout
for any event.

Change-Id: I046baf5ecc8abc8e795f96f8a1701da5c8506b88
CRs-Fixed: 467053
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: camera: Release mutex lock in case of failure

Release mutex lock in camera driver in case of a
failure.

Change-Id: Idc7de63b320df69754ad26fa9ae9639a08c96fc4
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: camera: Fix camera crash in msm_open_config

Add proper check before accessing mctl handle to
avoid camera crash.

Change-Id: I1413f086ab7d94fe223a814bb16867d1dcc0a4bf
CRs-Fixed: 481757
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: camera: Fix camera crash when ctrl_q is empty

Add proper error condition if the list is empty and
return error value to upper layers instead of BUG_ON.

Change-Id: I89237e7a27d5fb1e1fd5f1a8a2dfd7ea9a1afff5
CRs-Fixed: 481759
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: camera: Fix mctl release crash issue.

After mctl release initialize pointer to NULL to
avoid crash.

Change-Id: Ia3e0b1b809f85760a92b5248f402df589c6ace04
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
 msm:camera: Fix overflow issue in ioctl_hw_cmds function

    'len' is of type signed int 32bit,but the assigned value
    may exceed maximum unsigned int32 range.Add overflow check
    and graceful exit if 'm'exceeds UINT32_MAX value.

Change-Id: I38f0d10a0cb44d08d0054f91044fc891c246ebd1
CRs-Fixed: 493314
Signed-off-by: Monika Alekhya <malekh@codeaurora.org>
msm:camera: Fix signedness issue in hw_exec_cmds

  In hw_exec_cmds()second argument m_cmds should be
  of type unsigned interger

Change-Id: Idad2eb1a59481f3fe9f90221ff2061e8dae57013
CRs-Fixed: 493314
Signed-off-by: Monika Alekhya <malekh@codeaurora.org>