mako: msm: hsic: Disallow processor idle sleep while driving resume signal

HSIC controller should send SOF with in 3 msec after completing
the resume signal.  If processor is in idle sleep state, the timer
interrupt generated by HSIC controller to indicate resume completion
gets delayed.  If the interrupt handler is not run with in 3msec
after resume, the resume sequence is repeated.  Disallow processor
idle sleep to avoid multiple resume cycles.

CRs-Fixed: 397154
Change-Id: Ie2c6f60b3a36f46f8246e2e0f41a64675df632a5
Signed-off-by: Iliyan Malchev <malchev@google.com>
mako: EHCI: HSIC: Allow standalone power collapse when HSIC is active

HSIC generates interrupt at 4ms interval. If idle power collapse
is enabled when HSIC is active, krait keeps on going into idle
power collapse requesting RPM to handle the sleep set requirement.
If HSIC interrupt comes after 4ms interval, krait comes out of idle
power collapse and it again ask RPM to handle this request therefore
keeps RPM busy handling requests due to frequent idle power collapse.
This has a power impact. Hence only allow standalone power collapse
when HSIC is active to avoid RPM involvement in assisting kraits to
power collapse. Vote for idle power collapse when HSIC goes to low
power mode.

Change-Id: I12d877b1489f26fea32b6e2026aaffea6b5858a9
Signed-off-by: Iliyan Malchev <malchev@google.com>
mako: EHCI: HSIC: Add support to vote for SVS digital voltage

HSIC HW can operate at SVS digital voltage when it is active.
Currently HSIC is voting for 120Mhz SFAB and 64Mhz DFAB clock
frequencies. Clock frequencies are directly proportional to SVS
voltage. If DFAB is running at 64Mhz or SFAB is running at 120Mhz
or higher SVS is not possible even though HSIC votes for it. Hence
do not vote for SFAB clock frequency and only vote for 32Mhz for
DFAB in order to allow SVS to happen. Voting for SVS voltage reduces
current consumption by 3mA in HSDPA network.

Change-Id: Ic76f0c8346e3387b1647f41f77eb06babbd9a422
Signed-off-by: Iliyan Malchev <malchev@google.com>
switch: Reset device's drvdata before destroying it

dev_set_drvdata() sets the device specific driver data at
dev->p->driver_data.  However, dev is destroyed and has it's
context memory freed in device_destroy().  As a result, calling
dev_set_drvdata() causes a fault when accessing dev->p.

Change-Id: I4b1e6d17db52d0e31caf9b52e59979ff9cbb0c12
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
mako: debug: Fix the buffer overflow on dumping logs

Possible buffer overflow when the crash log is stored
in crash_dump_log->buffer. You should check the buffer size before
storing the crash log.

Change-Id: Icfe8010d9825f2db1165de8dd3683cd7b53749b3
msm: camera: Avoid kernel crash on abnormal invoking the camera focus

Possible to invoke the camera focus from userspace before configuring
the actuator or after power down. It causes a kernel crash due to access
the null pointer in that case. This avoids to access the uninitialized table.

Change-Id: Ib38f0f6a2af7d1caa19e0d3f632f1597e8c3571c
msm: camera: Fix the deadlock in msm_cam_server

When you failed to allocate memroy for ctrlcmd_data, previous code didn't
unlock the mutex. So after that, msm_cam_server counldn't acquire the mutex.
You should release the mutex when you failed to allocate the memory for
ctrlcmd_data.

Change-Id: I6e933ad241514971651ec40f54fd32957ac0aada
msm: display: clear suspend flag at end of mdp4_dsi_video_on

Signed-off-by: Iliyan Malchev <malchev@google.com>
sync: add Documentation/sync.txt

Change-Id: Ic7f3a6d4622083be607b82ddd8d676609225bb8f
Signed-off-by: Erik Gilling <konkers@android.com>
base: sync: Include seq_file.h in sync.h

sync.h uses struct seq_file in some function table prototypes. This
causes compile failures when including the header in files that do not
otherwise include seq_file.h

Signed-off-by: Jonathan Hamilton <jonathan.hamilton@imgtec.com>
sync: don't log wait timeouts when timeout = 0

Signed-off-by: Erik Gilling <konkers@android.com>
sync: fix timeout = 0 wait behavior

Change-Id: I8b9254e92c26d9f44abbc0c77fb44624de947013
Signed-off-by: Jamie Gennis <jgennis@google.com>
prima: release v3.2.2.1a

	git://codeaurora.org/external/wlan/prima.git

	3231817 wlan: Release 3.2.2.1a
	d84cf8f wlan: update WCNSS_cfg.dat to the proper version
	e025328 wlan: Fix build failure when TDLS is not enabled
	a62fae1 wlan: fix issues encounter when building with GCC 4.7
	8512e26 wlan: Release 3.2.2.1
	264adc6 Revert "hostapd settings should overwrite cfg settings"
	e970a0d wlan: cs release 3.2.0.56
	45931fb wlan: Remove early suspend notifications
	47d06d6 Fixed criteria for starting TDLS idle timer.
	6425822 wlan: TL module fix for TDLS regression issue and crash fix
	3b8400c wlan: TL module fix for memory consumption in WLANTLC_CBType module.
	64267f7 wlan: allow SAP to setup in 5GHz DFS channel
	6c6822a Padding up to 46 octet for TDLS disc req/teardown
	a34dd89 TDLS: Remember initiator/reponder role and use this for teardown.
	e6bfe94 TDLS teardown shows StaID Mismatch message.
	5fcc458 TDLS: Exclude m/bcast mac from PPL.
	387663d TDLS: Fixed mem_free problem at driver unload.
	c3b9d38 wlan: Enabling MTRACE logs in PE module
	4a17ebe Fix the max tx power issue with 11h/d enable.
	7fa4d8f wlan: cs release 3.2.0.55A
	17e75ce wlan: Fixing the memory leak when on/off wifi
	a16d020 Wlan: Fix for SAP auto channel selection.
	dbc8ce0 wlan: cs release 3.2.0.55
	3353f1e wlan: Fix to set shortslotTime capability bit in Reassoc Req
	89746e0 wlan: cs release 3.2.0.54
	e2e7208 wlan: Enhancing the Existing Auto Channel Algorithm
	a72c399 wlan: Driver advertize max_interface limit to 3.
	fef66a7 wlan: Do not let APPS to suspend if LFR is in the middle of a scan.
	9b7ad1f wlan: cs release 3.2.0.53A
	ea6bd08 wlan: LFR breaks when gTelescopicBeaconWakeupEn is enabled
	5a4b217 Add debug print with warning.
	5d7a33f wlan: Initialize driver in STA mode during SSR
	299b486 wlan: Send the right reason code when GO/SAP sends deauth to p2p-client/STA
	f987a0b TDLS: Fix for adding TDLS peer device twice.
	7a87ff0 wlan: Timer Leak@ limTimerUtils.c
	16a2a1c Added iwpriv command to print out TDLS peer table.
	a75d8b6 Fixed assert for stopping uninitialized timers.
	196d8ee wlan: cs release 3.2.0.53
	90032de Fix for apps watchdog detected while changing wifi frequecy band
	88f19c7 wlan:Change csn value of beamformer antennas supported to 3
	8447998 Ignore privacy bit changes in beacon when rsnie or wpaie is present
	587e680 wlan: Setting Trace Levels through ini file.
	751e607 Generalise support for SSID type for PNO
	b77f24b Check LL cb against NULL  to prevent a crash when WDA has deregistered while Riva still sends notifications.
	2efea0e wlan: Initialize rssi to lookupDownRssi if no probe response
	5125d25 wlan: Abort scan on receiving  remain_on_channel request
	24fd3aa wlan: Fix for vos_assert due to SuspendLink fail.
	b765240 Debug code in TL to print the RSSI and rate Index histogram
	77fb5ae wlan: Set the driver capability flag WIPHY_FLAG_SUPPORTS_FW_ROAM
	bbf5602 wlan: ES release 3.2.0.52
	c1262f2 TDLS: Fix to prevent 4 simultaneous TDLS links.
	b48f96d TDLS: data path stall after TDLS teardown
	1279e23 TDLS: Fixed problem of TDLS teardown
	af3e84d WLAN: Handle De-auth Frame After Pre-Authentication
	96860c2 wlan: Enable scan related essential logs in SME
	8de4d95 Changed persmissions for WNI_CFG_BSSID from "RO" to "RW" in cfg.txt
	a39b990 wlan:  LFR+BTC does not work due to premature POSTASSOC
	d44a1ae QUIPC: adding missing ptr inside function WDA_ProcessStartOemDataReq
	ebe0e61 wlan: WCN PRONTO clean up from upper layers
	b6898a3 wlan: Reduced log level for per pkt failure.
	f1c2c78 wlan:  Beamforming feature Support in STA mode for 11AC ne
	08f87c2 wlan:11AC Tx BeamForming Feature support.
	bfee034 Fixed driver crash issue.
	90ca3dd wlan: MCC Adaptive Sched Statistics fix
	cdd8e96 TDLS Implicit trigger fixes
	bf870f3 Configure TDLS implicit trigger parameters from ini file.
	571c65a TDLS Changes for implicit trigger.
	3bbe4bf wlan: Update driver for Linux kernel 3.6 and 3.7 changes
	eed415b wlan: Use "const" for interface name parameter
	f6624a4 wlan: Update netlink socket handling for Linux 3.7
	25b2a96 wlan: cs release 3.2.0.50A
	d5406f2 wlan: Fix for DHCP failure in GO + STA.
	39b2e53 wlan: Fix for STA Scan list goes empty at P2P GO side.
	60a3350 wlan: cs release 3.2.0.50
	ee2ce71 wlan:Fix for STA Association Failure using WEP Keys 2, 3 and 4
	69b3418 Added a ini parameter isAndroidPsEn to control  the current BMPS logic.
	e1d30a4 wlan: cs release 3.2.0.49
	f63df0d TDLS: Iperf taffic stops after TDLS teardown.
	1090c6a TDLS: Refine TDLS debug print.
	c16730e wlan: Merge reassoc req serialization with Join Request
	278eee5 WLAN: Driver now advertises support for multi channel concurrency
	5bce27c Changing the default value of "gChannelBondingMode5GHz" to 1
	bbaebbe hostapd settings should overwrite cfg settings
	d5fba4a Reverting CL 664187(It is causing TPUT regression)
	f797520 wlan: cs release 3.2.0.48
	012623a wlan: Add qwlanfw_defs.h to resolve the compiler error
	efaed69 wlan: cs release 3.2.0.47
	cd78499 wlan: Fixed below issues due to which 2nd client is not associating to GO
	cfd5374 wlan: Donot allow the scan during WPS/EAPOL exchange.
	01cba04 wlan: MCC Adaptive Scheduler
	59efbe0 wlan: Not able to connect more then 10 STA
	8db1c94 wlan: Fix the Max Tx power value in 5G band and .ini support for 11h
	b750ba9 wlan: cs release 3.2.0.46
	fab3fae wlan: Quarky Support on Prima
	f7e53c5 wlan: Removed the Hard tabs
	5ef13c5 wlan: Register address fix for multiple HW support
	f613ec4 wlan: cs release 3.2.0.45
	2d335f3 wlan: Kernel crash from freeing bss list
	96237bc wlan: Fix for EAPOL packet getting delayed during high data traffic
	0022d8b wlan: Do not invoke smp_processor_id() in preemptible from MC_Thread
	717dba7 wlan: Unified build support for prima and pronto
	90bcf7a wlan: LDPC support for FTM and NV version support
	b2d2c31 wlan: LDPC changes on Host side
	976e325 wlan: Merge 32STA Host support changes
	add701a wlan: cs release 3.2.0.44
	4261ea5 wlan: Fixed SME queue stuck issue which is causing EBUSY scan failure
	777e603 wlan: Change AID pool to peerIndex pool and sessionize it.
	f527dc6 wlan: Cancel existing remain_on_channel request upon change interface to GO mode
	9b89a73 wlan: SME code cleanup
	d3918dd wlan: RemovedHard Tabs
	a845f7a wlan: Feature to record KMSG in circular buffer(2048) and all the Msgs are recorded.
	864d355 wlan: Fixed Incorrect device mode after terminating GO/P2P CLI
	11acd11 wlan: Fixed "Out of VOS MSG wrapper issue"
	6d3ebde wlan: Remove FTRssiFilterPeriod
	98a98af wlan: Support to configure Roaming variables at runtime
	7e48ca7 wlan: TX_Thread Spinng problem fix
	c7b1d3e wlan: LFR - invalid channel in INI causes double free.
	ecea2e0 wlan: cs release 3.2.0.43
	167b0ff wlan: Fix for CR 427094. Crash while parsing corrupted beacons in dot11f.c
	009f665 wlan: cs release 3.2.0.42
	3c5b063 wlan: Code cleanup
	0b71445 wlan: DXE auto dump fix
	a5e3ede wlan: Fix for WDI Timeout issue.
	b9185f2 wlan: Fix for memory leak in pmcApi.c file.
	eb8139b wlan: Fix for caling del_sta when user disconnect from supplicant
	7fcc6de wlan: Enabling the WLAN_FEATURE_HOLD_RX_WAKELOCK.
	096a105 wlan: Fix for sending single Noa with proper parameters
	40bc650 wlan: Probe Req frames in 2.4 GHz channels contain channelbonding enabled in HT info IE.
	32a2c23 wlan: cs release 3.2.0.41.
	2062aaf wlan: Fixing a comment in the code.
	e6812eb wlan: Deactivate HB monitoring during wait-key substate while roaming.
	1322ea3 wlan: Stop hdd_restart_timer at unload only if it is not FTM mode
	ab91c6b wlan: Fix for the Memory Leak in wlan_qct_wdi.c
	32af4e3 wlan: Changed kmalloc flag from GFP_ATOMIC to GFP_KERNEL
	866893f wlan: LFR Enhancements To Channel Caching Algorithm.
	fc41646 wlan: Fixed hard tabs and Licensing info to include only QCA
	d52a3c7 wlan: Enable TDLS feature
	a044eb9 wlan: Remove TDLS feature definition for 8023To80211 func (Review comments)
	2b6dc63 wlan: Wlan Scan results aging based on Timing mechansim.
	1b94cec wlan: Use static memory for part of pal device context, gpEnv
	cab0d35 wlan: Update Tx counters using correct TDLS station Id.
	05fdc81 wlan: Modify the split scan logic to scan more than one channel at a time
	6275736 wlan: Modify total scan duration calculation for NOA
	a2972a2 wlan: SAP is not beaconing with HT40 capabilities when STA session is already up
	92f07d8 wlan: Adding opensource copyright/license
	bd9fa2d wlan: Fixing copyright and file permissions for TDLS files
	0c1331e wlan: Fixing copyright permissions for tdls files
	21d7303 remove *.rej files which were accidentally submitted
	2a357bd Merge branch 'master' of ssh://git.codeaurora.org:9222/external/wlan/prima
	9e6dbe6 wlan: cs release 3.2.0.40
	0cf0cf2 wlan: Fix for clock work error
	ff9adf9 wlan: Fix for AP sending wrong regulatory domain
	08bce95 wlan: Removed Hard Tabs
	69765a9 wlan: [32STA] P2P Go crash on Scan Window
	7dbccce wlan: Changing log level in limProcessProbeReqFrame.c
	62fd16c wlan: Add a cfg item to enable/disable cMEM low power image transition(uBSP image).
	91a420a wlan: add support for pronto
	c4818ef wlan: Moved code related to LFR under compilation flag FEATURE_WLAN_LFR.
	a8a1a48 wlan: Fix misspellings in prima code ("adapter" and "parameter")
	c2b00f6 wlan: Memory Leak in csrApiRoam.c
	5079cf5 wlan: Add module name as "wlan:" in logging.
	daaec71 wlan: (2)Send RSSI value along with threshold Notification
	d359cf9 wlan: Send RSSI value along with threshold Notification
	efd15ee wlan: Remove new Riva 1.2 compiler warnings
	1ccee93 wlan: Add QCA copyright information in Tdls files newly added.
	4a6e3ea wlan: Roaming -Fix to Not Send two Post Assoc Link State Requests
	f1b6bec wlan: Remove obsolete macro WNI_POLARIS_FW_OS
	85acf6b wlan: Added logs in WDI and DXE to enable debugging
	f544280 wlan: Added the Initilization before accessing the "WLAN_STADescType"
	05588fc wlan: Rerun DPD if divide by zero happens.
	28b5b4e wlan: LFR does not bgscan on channel list from cfg.ini
	2618b13 Update Android.mk to only support Open Source builds
	5a0acd5 prima: remove obsolete Makefile
	b8fc33f wlan: cs release 3.2.0.39
	a25ad0d Wlan: Don't send probe resp on diff channel when GO + Scan
	feddb2d wlan: Fix misspellings in prima code ("cache" and others)
	1250df4 wlan: Fix misspellings in prima code ("acquire" and others)
	ab79c8d wlan: Fix misspellings of "descriptor", "scenario" and "transferred"
	902c983 wlan: Fix misspellings of "accommodate", "occurred" and "thermal"
	9f22e66 wlan: Active Mode Host Offload. HB and RSSI monitoring.
	b88db98 wlan: Fix misspellings of "display" and "channel"
	9466ba8 wlan: Removing the Hard Tabs
	7b8f6aa wlan: STA is Not able to establish 11AC Connection with SAP
	d86bde2 wlan: (2)Decouple init scan and NOA insert in P2P GO case
	e50b1d4 wlan: Decouple init scan and NOA insert in P2P GO case
	d500cd4 wlan: Modify total scan duration calculation mechanism
	2c24a3b wlan: Unifed Kbuild
	bf4ce93 build: Featurize to build only for 8960 target
	2881832 wlan: cs release 3.2.0.38
	0d40e66 wlan: Add a cfg item to enable/disable cMEM low power image transition(uBSP image)
	1a4ec9e wlan: Changes to include uBSP configuration item to the INI file.
	19aed1a wlan: cs release 3.2.0.37
	f5c368b wlan: Roaming Log changed from Error to Info
	7a5fb7e wlan: Acquire lock to avoid double free in function freeSmeCmdList.
	2502e68 wlan: Lower trace message level in CRDA
	fb6addf wlan: cs release 3.2.0.36
	ece8fc5 wlan: Cleaning up of hardtabs
	543172b wlan: Fixed to avoid overwriting of dynamic sap
	f850f1c wlan: Page fault crash fix
	2a1b1e1 wlan: Reverting CL 661027
	ea25fe0 Merge branch 'master' of ssh://git.codeaurora.org:9222/external/wlan/prima
	1d5764e wlan: cs release 3.2.0.35
	7a4d931 wlan: QUIPC-Support for RTS/CTS scan of16 APs at a time
	df86c42 wlan: Reflect code review of CL#660898.
	5129d07 wlan: Do not processes Quiet IE in host driver
	48081ef wlan: Modify the split scan logic
	1e02f7f wlan: Removing the Hardtab in a Comment
	527935a wlan: Auto Channel Selection Support in HT40/VHT80
	3e9f202 wlan: Fix for CR 423651. BSS description with RSSI = 0 being sent to supplicant.
	da28328 wlan: Fix issue in CL660127.
	25b6f8b wlan: Ignore the disassoc frame in waiting for ack for Disassoc/Deauth frame
	b837f9a wlan: Update kernel configuration parameters
	25abf4d wlan: Support both Proprietary and Open Source driver
	0295295 wlan: cs release 3.2.0.34
	fc5026b wlan: Add support for RTS/CTS scan of16 WLAN Access Points at a time
	051ff0b wlan: Added FATAL prints
	62b55b0 wlan: Roam if RSSI(candidate) > RSSI(curr AP) by gImmediateRoamRssiDiff.
	ceb8f25 wlan: Increase max number of BSS in the scan list to 250
	f553b74 wlan: When RoamRssiDiff=0, Roam to any AP.
	42dcd16 wlan: Fix conn_state stuck connecting and scan return -EBUSY.
	5a07b4b wlan: Set Protect frame bit for TDLS sta, only if encryption enabled on link.
	7174961 wlan: cs release 3.2.0.33
	923c1e1 wlan: Fix related to scanning during unloading the driver
	7330541 wlan: Fix for kernel crash in set channel function
	0c626f3 wlan: memory leak in csrApiScan.c
	3588591 wlan: Droping probe request when GO negotation progress
	698ba2a wlan: TDLS Integration from Dev32Sta
	d502607 wlan: While fast roaming prefer 5G Access Points over 2.4G
	a148e1e wlan: Added function to distinguish if an Rx frame is broadcast or multicast.
	fb6c0ca wlan: cs release 3.2.0.32
	057bd80 wlan: Fixed hard tab caused due to CL#660458
	ed41951 wlan: Fix for MCC feature getting disabled at runtime
	5b2ba63 wlan: cs release 3.2.0.31
	830ed80 wlan: Small Correction in my privious check in
	a67d433 wlan: Clear the pending Disassoc/Deauth ack
	666d33a wlan: Update Auth failure timer value
	9aff9ff wlan: During pre association phase unicast probe requst is sent.
	f244d8f wlan: Fix the error in code inspectoin by Prevent
	b7f5a67 wlan: Memory Double-free in limSendDisassocCnf()
	5ec4b18 wlan: Fix For Reverting the Hw mode to g/a if we configure the WEP security
	6a00a80 wlan: Remove Hard tabs from CL660218
	5e32b96 wlan: 11r CR fix integrated from Dev/11r: CL657576, CL 657577, CL658596
	69fc3ad wlan: Disallow suspend req from OS, when STA is associating with SAP
	ec231f8 wlan: Removing tab issues from a file submitted in the CL 660185
	adfe2c3 wlan: Removing hard tabs from a file submitted in the CL 660180
	9d7a27f wlan: Fix for riva crash when NV Download Request Fails
	7ff89c1 wlan: Sending Assoc/Auth frames to Peer Sta incase of p2p
	0b78e15 wlan: Fix the error in code inspectoin
	551984f wlan: Use min + max channel time to calculate total scan duration for use in NOA duration calculation.
	0e4955a wlan: Enable MCC to handle different beacon Interval by default
	84b7f0a wlan: Update csrRoamInitGlobals() to support static linking
	d2e8a03 wlan: cs release 3.2.0.30
	397f085 wlan: Fix driver hang in csrRoamRoamingStateDisassocRspProcessor.
	e0ca11f wlan: Back out changelist 659349. Hostapd settings should overwride the HDD settings.
	167b95e wlan: Host changes to support different BI for MCC
	8d50f31 wlan: Fix to clean stale scan entries when DUT is acting as P2P Client
	3074390 wlan: Process the event eSIR_SME_AP_CAPS_CHANGED in correct state.
	b2cb8be wlan: WLAN driver crash fix
	5938162 wlan: Dynamic selection of CBmode based on primary channel.
	03aae5f wlan: Insure that LFR BG scanning is not performed for any non-Infra association.
	d5acbf5 wlan: Fix for scan failure when smeRoamConnect failed.
	cdcb58f wlan: Fix for hang in SME queue
	5e001fd wlan: Send EDCA Parameters After Reassoc
	22f2708 wlan: Roaming: Clean Logs
	d12bf05 wlan: Changes done to add the setTxPower ioctl in iwpriv command list.
	5850f31 wlan: Only flush non-P2P results from scan cache prior to LFR scan.
	bf77107 wlan: Reverting CL 650041 to restore ERROR logs in WDI
	f68a0a6 wlan: cs release 3.2.0.29
	d440459 wlan: Fix for PNO scanning all channels
	aa1ae39 wlan: Fix issues reported by code inspection tool in MAC
	a0c7f26 wlan: Add sanity checks to wlan_hdd_cfg80211_start_ap()
	8cc971c wlan: Fix for CR 416489. 11d not getting disabled even when setting it to 0 in WCNSS_qcom_cfg.ini
	7761e47 wlan: ifndef CCX check is removed for rssi < lookup threshold
	7177d33 wlan: Change NumberOfBeaconsPerRssiAvg independent of RssiFilterPeriod
	91dfba7 wlan: Fix issues reported by code inspection tool in SYS
	ec625f7 wlan: Fix issues reported by code inspection tool in HDD
	6bfd142 wlan: Adding a new param "gEnableRXSTBC" in WCNSSqcom_cfg.ini to enable/disable STBC
	a1bf8bb wlan: Peer cannot find P2P DUT when ListenChnl=OperChnl of conc STA-AP sess
	8d46164 wlan: Fixed hard tabs in CL 659068
	be76258 wlan: [MCC] Enable MCC feature by default.
	b44ea3f wlan: Remove hard tab from limUtils.c
	b5b19b0 wlan: Fixed throughput issue with HT's AP that dont advertise WMM IE
	d9f6117 wlan: cs release 3.2.0.28
	8720959 wlan: Fix for a race condition in VOS packet handling
	94d111d wlan: Populate Correct Scan Mode for Roam
	b6af061 wlan: Cleanup Rx path if disassoc is not being set OTA.
	bc84fd8 wlan: cs release 3.2.0.27
	b8b126b wlan: Fix for a crash in WLAN startup failure
	be3597f wlan: Pass correct pointers to wpalMemoryFree
	cbb9f54 wlan: Back out Fix for WLAN driver hang, because of stuck in WDI.
	4450acc wlan: De-register lookup UP indication during pre-auth.
	521ff19 wlan: Wait for ack and issue delsta after transmitting the disassoc/Deauth.
	c5992c9 wlan: p2p find takes long time when STA is connected to AP
	a9ebd5e wlan: Add NULL check for session entry
	924b6f2 wlan: Updating VHT cap IE for SU Beamformee capability bits and correcting VHT Basic MCS set in VHT OP IE.
	d6e4258 wlan: cs release 3.2.0.26
	1bed23d wlan: Fix for Incorrect Length Check (affecting roaming)
	a0d8893 wlan: Correcting a check for 11ac in csrRoamSetBssConfigCfg() where we set the VHT channel width
	f4e8100 wlan: VOS ASSERT in wlan_hdd_cfg80211_stop_ap while removing P2P GO
	c0d1b3f wlan: Checkpatch fix for 'Macros with multiple statements'
	a53c4dc wlan: Fix for "Macros with complex values'
	57f9a9c wlan: cs release 3.2.0.25
	4805fa8 wlan: Modify CL653657. Set split scan rest time to 100ms
	fd4e1da wlan: Fix for reject scan when connection in progress.
	dd3c966 wlan: Improve convergence of LFR roam candidate scan algorithm.
	3282c57 wlan: CCX fix to set max txpower if gTxPowerCap is not set
	d671358 wlan: Modify the split scan logic to query active connected session state before every scan command
	86f629e wlan: AGE IE in scan results (GPS requirement)
	bcbe94e wlan: cs release 3.2.0.24
	de2f8ab wlan: Handle DXE CHs transfer error cases
	e388b34 wlan: Conditionally invoke driver restart API
	c72a4d6 wlan: Notify the Kernel suspend to WCNSS
	d800034 wlan: Fix Log level in TL
	6b5b500 wlan: Fixes Compilation Error for CCX Enabled code after CL 656865
	2dd4c8d wlan: Indicating reassoc event to supplicant
	f33324b wlan: Post proper response to SME when reassoc is rejected.
	895cdee wlan: Update missing review comments for CL657555
	cae253a wlan: Fix (-1) return values to conform to quic kernel coding standard
	d8ac866 wlan: More checkpatch fixes for WLAN prima driver
	49a7c0f wlan: Teardown Link with AP if riva indicates del sta reason keep alive.
	f146b38 wlan: Removed hard tabs - Integration for 11R changes to Rel 1.2
	4b63eee wlan: NoA not being set in Beacons by DUT as GO
	d57ae63 wlan: Fix for not closing the smd channel.
	6a80893 wlan: Fix for passing valid reason code during link tear down.
	d5f04ca wlan: IOCTL to support MCC config
	3f65e31 wlan: Ignore Channel 165 for country INDONESIA.
	27ecc28 wlan: DUT P2P client sends disassoc frames at connected STA channels.
	6c43100 wlan: cs release 3.2.0.23
	dd11eaf wlan: Add cfg.ini entry to make number of buffers advertised for ADDBA negotiation configurable
	61bc566 wlan: Retry sending Reassoc request 2 more times
	142627c wlan: Fix for kernel panic when connecting p2p to Samsung Smart TV.
	ea77388 wlan: Support 802.11r feature. define WLAN_FEATURE_VOWIFI_11R.
	00ff26d wlan: Additional updates to the countryInfoTable
	87054ba wlan: Replace __FUNCTION__ argument with __func__ in the wlan driver
	6dd8cb5 wlan: Ignore roam candidates with RSSI lower than lookup threshold.
	2e5c914 wlan: prima: null check after kzalloc
	4e31b13 wlan: Checkpatch fixes for WLAN prima LA driver
	eee7085 wlan: Remove hard tab from country code table
	0e4acab wlan: Fix for Memory Trailer Corruption
	83b1282 wlan: Initialize correct MaxTxPower in join request message to riva
	8df78d5 wlan: Prevent too huge Link speed reported value fluctuation
	aa7a76b wlan: Update countryInfoTable
	4f67221 wlan: cs release 3.2.0.22
	ab41d0f wlan: Re-integrate CL651597 and apply a patch fix to CL651738.
	2a6ba24 wlan: Memory corruption fix
	2300172 wlan: Address IMPS failure(s) due to lingering FT session.
	f371f17 wlan: Fix for WLAN driver hang, because of stuck in WDI.
	7df624d wlan: Buffer overflow due to invalid WscIeLen.
	613b0a4 wlan: Fix buffer overscan in csrRoamIssueFTPreauthReq()
	255b097 wlan: Fix for sending updated 11d information to PNO for scanning and filter for DFS channels
	f1d3995 wlan: Reduce logging level that can cause crash
	eeb56b1 wlan: Reduce stack frame usage (updates)
	ea77701 wlan: DXE Health monitor
	802d758 wlan: Fix for SAP not updating protection bit for legacy OBSS in 2.4 GHz and 5 GHz.
	b891791 wlan: Lower ROAM support module MSG level
	b273314 wlan: Just Removing Hard Tabs
	c62057b wlan: Fix for crash during roaming.
	85cc1d7 wlan: Brining back changes from 622403 - seems it was accidentaly reverted
	cb90bb2 wlan: Remove hard tabs
	8f207c1 wlan: Reduce stack frame usage
	26bd714 wlan: Feature P2P Debugging logging
	683acf1 wlan: Removed hard tabs.
	da61e7e wlan: Fix for mutilple ASSERTS in WDA.
	f9bdd4e wlan: Use unique logging for driver commands
	2c112c5 wlan: Remove hard tabs introduced by CL 653657
	af854cf wlan: In csrRoamLostLink(), only send HDD 1 eCSR_ROAM_LOSTLINK
	03978e1 wlan: Add dummy handlers for Android PNO commands
	4ff9cd6 wlan: Create parameters controlling scan timing during concurrent operation
	33ef6a2 wlan: KW Error Fixes for SME/MAC/SYS/WDA
	08daaa8 wlan: Set highest CB mode among all the valid sessions in the finish scan
	76e0edf wlan: cs release 3.2.0.21
	1541a5b wlan: MCC- EAPOL frame to use TX_HIGH_PRIO DXE channel and mgmt pool
	6db7ad1 wlan: Fix P2P GO slot time and hence EDCA params incorrect values
	f91902f wlan: Changing CHECKSUM_UNNECESSARY to CHECKSUM_NONE
	f41cc0b wlan: P2P-Go negotiation fails sometimes
	5073853 wlan: Problem: RIVA CRASH in hotspot mode
	0888083 wlan: Fix GCC 4.6 compile failure due to inlining
	3cf164e wlan: Include LFR flag to delete FT preauth session upon failure.
	0bfd000 wlan: Send FIQ on WDI timeout
	fb534bb wlan: Unconditionally return TRUE from csrIsScanAllowed.
	070e870 wlan: Fix for assert in kernel during abort mac scan
	ab4ab0d wlan: Dump neighbor state info when scan is not allowed.
	91fd74c wlan: cs release 3.2.0.20
	1b4afb0 wlan: Making prima driver compatible with kernel older than 3.4.0
	24a00f9 wlan: Revert CL650969 TL Low resource problem fix.
	84a8b2e wlan: Corrected the tabs. Disabling the 11n/11AC Mode, if SAP is configured in legacy security
	91f8e9f wlan: Disabling the 11n/11AC Mode, if SAP is configured in legacy security
	c537df2 wlan: Fix for receiving action frame on virtual interface
	2e068bc wlan: Do not access free pointers while aging out scan entries
	3528786 wlan: Fix for not able to turn off WLAN, when join request fails in WDI
	1bed598 wlan: Remove hard tabs from WLAN driver
	20da578 wlan: cs release 3.2.0.19
	1903276 wlan: Reduce the stack size in the CORE Stack module.
	729972c wlan: Reduce stack usage in the HDD
	cfb9f4d wlan: Fix for WDI stack varibles > 1K
	04039a1 wlan: Dampen scan periodicity if no roamable candidates found.
	891e949 wlan: Lowered the log level of a WDI print
	42af178 wlan: Unable to connect if the AP sends country code as "I".
	74719a1 wlan: KlockWork bug fix
	a2fc641 wlan: Re-enable wifi on WDI timeout
	0d0e171 wlan: modifying the CL 652125 related to HS2.0 as per review comments
	60a6a8d wlan: Tone down the severity level of logs in tx path to WARN (from ERROR)
	783b236 wlan: Allow social channels in p2p scan even if not in valid list.
	1b1d9e8 wlan: Set scan_type to P2P_DISCOVERY only for social channel scan.
	08824c2 wlan: SoftAP AutoChannel select scan fix and country code update fix
	5ad3dff wlan: Handle disconnects in reassoc state.
	7a579cc wlan: Ensure pre-auth is processed before invoking HDD callbacks.
	cc0aefd wlan: cs release 3.2.0.18
	ea22cdc wlan: Adding HS2.0 IEs in the Re-Assoc Requset
	fb29453 wlan: Dynamic MC/BC HW filter setting using WLAN_HAL_CONFIGURE_RXP_FILTER_REQ
	8b152b8 wlan: Update VHT center channel and channel width at start BSS.
	b2c3689 wlan: Fix race condition in new cfg80211 APIs
	3bc6e8d wlan: Fix for voss Assert in hdd_softap_rx_packet_cbk.
	d402962 wlan: Fix for Klockwork errors.
	edfc1b7 wlan: Fix for address scheme for p2p device administarted.
	85d140a wlan: Process deauth from reassoc AP to trigger disconnect.
	dfd6aa8 wlan: Removing initialization to 0/NULL of static/global variables
	4fe3017 wlan: Fix for a hardware bug causing Out of order datagrams with voice traffic. TID in BD header not updated properly.
	01e5302 wlan: Update WCNSS_qcom_cfg.ini with the latest LFR related config.
	70322d5 wlan: Revert Process deauth from reassoc AP to trigger disconnect.
	e44c885 wlan: Process deauth from reassoc AP to trigger disconnect.
	5777216 wlan: Do not disassoc upon reassoc timeout failure.
	c4b317d wlan: Cap cache size properly
	70bb4cb wlan: Don't deactivate the heartbeat timer for BG scans.
	9f40ceb wlan: Removal of tabs introduced due to Klockwork fixes for HDD module of prima driver
	c75be96 wlan: Klockwork fixes for HDD module of prima driver
	fc1d1fe wlan: Do not count frames to start BA session too early
	a3fcf14 wlan: Flush only P2P results during p2p_find
	3b230fe wlan: No Scan Interference During HandOff
	3d62993 wlan: cs release 3.2.0.17
	ff3c4f1 wlan: Enabled gEnableApOBSSProt=1 for OLBC certifciation testing.
	b5da533 wlan: Disable WLAN driver initiated SSR if Riva crashes during unload
	4c8c635 wlan: Increase number of buckets to categorize roamable APs
	393a434 wlan: Prevent P2P from flushing scan results while roaming.
	9ce36ec wlan: Use csrIsConcurrentInfraConnected() API.
	df71164 wlan: Revert "Don't support LFR when concurrent"
	2edf6f6 wlan: Re-Integrate CL 633831, TX data path hang issue fix
	5f57c10 wlan: Kick DXE TX channel when exit IMPS, if any valid pending frame in the ring
	01d7c53 wlan: TX DXE Channel descriptor async uncovered cover case fix
	3246f5b wlan: Rename riva to wcnss in SSR API
	edee8aa wlan: State Machine Cleanup during State transitions
	179e6fe wlan: Log levels changed appropriately
	daac6d2 wlan: Add ini support for enabling unicast filter
	787d74c wlan: Don't support LFR when concurrent.
	a208d10 wlan: Fix buffer overflow and NULL pointer dereference
	a84edda wlan: Sessioniizing PMC/PMM message
	3ff2a0b wlan: Add support for SoftAP Random BSSID
	3ce3da6 wlan: cs release 3.2.0.16
	f2f8d8b wlan: Fixed broken FTM mode for dynamically linked driver
	da62ada wlan: Send bssIdx in WLAN_HAL_ADD_BCN_FILTER_REQ to SLM.
	99f9c66 wlan: Fix for passing proper freq when sta is not connected.
	e8dd57e wlan: Convert VOS_ASSERT to an ERROR log.
	b40e558 wlan: Back out CL651082. Calling csrNeighborRoamHandleEmptyScanResult().
	b764bf8 wlan: Fix for race condition between scan done callback and triggering scan.
	694f8d7 wlan: Updating pMac->lim.gLimTimersCreated variable accordingly
	d929711 wlan: Ignore TX completion failure for Data Null (PM=1) mode during roam.
	9b87678 wlan: Changes to handle gracefully init scan failure in romaing case
	186e70d wlan: No longer call csrNeighborRoamHandleEmptyScanResult().
	ef5dd97 wlan: Fixes the phy mode selection
	2a1ba77 wlan: Driver should serve only one scan request in concurrent scenarios.
	bb7b43a wlan: Changes to get supported channel list based on current operating frequency band.
	48139e3 wlan: TL Low resource problem fix.
	ef3b66e wlan: Adding HS2.0 IEs in the Assoc Requset
	8186a9e wlan: Fix debug log msg. Remove call to palStopTimer for preauth.
	d4b301b wlan: Return an error message in the event a scan is requested while one is ongoing.
	286b60e wlan: Enqueue preauth in sme command queue.
	b0e7064 wlan: Invoke SSR1 if Riva never comes up after SSR3
	fb29a5d wlan: Fix to call limSetHtCaps with correct data len
	af2a8b9 wlan: Fixes bugs in split scan CL
	b159700 Wlan: cs release 3.2.0.15
	b23ddce wlan: Fix for memory corruption
	96dd30d wlan: Sessionization of PMC/PMM module messages
	a9adc1c wlan: Do not drop mgmt frames if peer sta idx is not found
	15a48f0 wlan: Change WDI_FillTxBd to use peer staIdx (StaIdx of Bss Mac address)
	d93f494 wlan: Proper handling of ENTER IMPS/BMPS failure in host side
	aae6d47 wlan: Out-of-bound array indexing while preparing scan channel list.
	8b7f1e6 wlan: Decreasing the priority of unnecessary logs observed during loading/unloading wlan module
	ef91c9e wlan: Lowering the priority of lim logs
	62e6005 wlan: Fixed driver initialization problem in case of init error
	595208a wlan: Stop scan refresh timer while resetting report scan state.
	88537f7 wlan: Even BMPS mode, display correct RSSI within TL log MSG
	546e3f5 wlan: Fix for setting properly the AC mask for TxConn
	eebdcbf wlan: Set RoamRssiDiff=0 to disable roam hysteresis.
	fd322a0 wlan: Update the Channel Change Reason
	5aef2af wlan: Provision to accept Channel List for SAP Auto Channel Selection
	596e4fb wlan: Incorrect debug comments fixed
	992cd44 wlan: Inform TL about pending packets whenever Queue is filling up
	cc39440 wlan: updating the HT supported channel width field for staDs
	aab17a7 wlan: cs release 3.2.0.14
	c5cff27 Wlan: Revert Change WDI_FillTxBd to use peer staIdx (StaIdx of Bss Mac address) CR-Fixed: NA
	21fd24a wlan: Enable gEnableBypass11d to reduce the connection time.
	24b62f3 wlan: Remove gNeighborScanChannelList from cfg.ini
	b9d3dcc wlan: Reduce the age count only if the scan entry is not getting aged out already.
	b19c98d wlan: Changing Log Level to not affect roaming delays
	1586559 wlan: Do not drop comming late probe response
	8612ec9 wlan: Fix for BMPS workaround kicking in after SSR
	10d83a9 wlan: Fix for APPS going into suspend immediatly after driver gets connect request after scan.
	88a770f wlan: Fix for vos_lock_acquire() failing with return code -4 (i.e -EINTR).
	ee255f1 wlan: Not able to connect back to security enabled AP after getting disconnected from the EAP-PEAP AP.
	bb8f017 wlan: Update restart driver API to support statically linked WLAN driver
	c3a240c wlan: Add routines to support CRDA
	7f1020d wlan: DXE TX stall issue fix.
	fab2a7e wlan: Subsystem restart invoke mutex_lock in atomic environment
	5eec74a wlan: Fix for memory corruption in WDA WDA_TriggerBaReqCallback.
	3352adb wlan: Fixed problem of dangling pointers to freed memory
	9f5a10c wlan: Changes to acquire wakelock to avoid the apps suspend during the scan.
	470d2cf wlan: Preferentially scan occupied channels (learned from previous scans).
	8cb5398 Wlan: Realtime DXE debugging capability enable
	2208f7b wlan: Reduce PE logging
	d3f3172 wlan: cs release 2.0.13
	788b4ee wlan: p2p-GO not clearing the Use Protection bit
	5695b50 Wlan: ERROR log level cleanup (2)
	68f5354 Wlan: If the WDI Join fails not able to tun off the WLAN.
	740f780 Wlan: SAP not sending data with VHT 80 rates when connected to a VHT 80 STA
	59a40c9 Wlan: Host Crash fix for set and clear Packet filter
	6646aad Wlan: RX async detect and reloading bug fix
	4d4d281 Wlan: Changes for tx packet statistics that fixes google bug
	94d4c19 Wlan: Invalid WLAN driver reloading fix
	d3d2259 Wlan: Enable scan split feature in SME for multiple session scenario
	6f6390c Wlan: p2p_discovery fails when wifi is set to 5GHz in advanced settings.
	8bdd311 Wlan: ERROR log level cleanup
	700913e Wlan: Replaced mutex_lock_interruptible with mutex_lock
	5904d7c Wlan: Fix for scanning 5GHz upper band channels.
	3bd22cd Wlan: Decreasing the VHT IE's Debug level
	1dd5c88 wlan: Fix for driver crash if the nv file is old.
	0c32553 Wlan: Fix for a double free and recover logic in DXE
	48e375a Wlan: IMPS mode, TX COMP interrupt flooding fix
	ca43cdf Wlan: Reverting the changes leading to a crash on driver unload.
	d6eca54 Wlan: Sessionize SME scan cache.
	436cdab Wlan: Broadcast WMM params of existing STA-AP session in beacons
	2f11c2e Wlan: Change WDI_FillTxBd to use peer staIdx (StaIdx of Bss Mac address)
	709790c Wlan: Reduce the log level of a P2P listen duration to INFO HIGH
	8cb5dc7 Wlan: Backing out fix for Channel 144 support in firmware
	5b47faa Wlan: Backing out fix for channel 14 support
	51d87f7 Wlan: Backing out fix for channel 144
	f55e62a Wlan: Support for dynamic MC/BC HW filter setting
	46a8fdd wlan: cs release 2.0.12
	d68ecce wlan: Add new compile flag for Mako as it uses differnt kernel
	a2a87e2 wlan: Fix for issue where RIVA does not get into BMPS mode.
	c2ec3bd wlan: Fix for SAP stop beaconing (driver not in AP mode) after SSR
	332c817 wlan: Fix for scan failure due to new channel addition - channel 144
	1a68080 wlan: Fixing compilation error "channel 144 support"
	810d665 wlan: Channel 144 support in firmware
	893c77f wlan: Request wake up on idle cpu for RX_Thread, TX_Thread
	05f313c wlan: Fixed compile error in wlan_hdd_main.c
	33a178c wlan: Compilation error fix in sapModule.c, sapFsm.c
	2331c8a wlan: Enable statically linked driver to switch modes.
	e233e29 wlan: Register gas frames for wlan interface
	3513bf5 wlan: clean WDI global variables in shutdown method
	5a32f0d wlan: update gNeighborLookupThreshold, gNeighborReassocThreshold
	b666eb1 wlan: KW error fixes
	4f292df wlan: Handling De-auth from AP in Roaming State machines
	ee87bfc wlan: SR pre-auth timer is made larger than Lim timer
	c0e5bd8 wlan: Fix for memory corrution in TL.
	31a9114 wlan: Freeing the memory to avoid the memory leak
	c6226de wlan: Added the support for VHT Wider Bandwidth Channel Switch
	2d8cc89 wlan: Deregister with TL and flush all data packets prior to reassoc
	802f738 wlan: cs release 2.0.11
	49a87a8 wlan: Pre-allocation changes
	7ed53f0 wlan: MCC GO+STA different B.I
	217ea8d wlan: Fix to avoid sleep in invalid context.
	2386376 wlan: host driver logging improvements
	349bc39 wlan: Changes related to BMPS workaround enable/disable dynamically
	3d4e410 wlan: Fix clearFeatCaps to clear the correct bit
	4a70d26 wlan: Extended Capability and VHT Opmode support
	7d5aeb2 wlan: Parsing the OpertingMode IE as a part of Assoc Req
	5ef35f4 wlan: Change number of descriptors for Low and High to 256.
	6c52bbf wlan: Fix for crash during wlan unloading.
	765234a wlan: Fix for crash in wlan_hdd_cfg80211_connect
	99d5fd0 wlan: Fix for passing proper reason code to supplicant
	0f23209 wlan: Fix 10th station is unable to connect when in SAP mode

Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: rtb: Add support for device tree

Add support for setting up RTB via matching in the device tree
in addition to the platform_data driven model. Also add
the corresponding device for 8974 in the device tree.

Change-Id: I76615fc75ff4fe428cab16a4aa161b032e548983
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
crypto: Add support for crypto engine 5.0

Add new register definitions for QCE5.0 Hardware
Add new HAL (qce50.c) for interfacing with CE 5.0 hardware:
-- Implement the new interface to BAM (instead of data mover).
-- Add support for multiple Pipes.
-- Add support for use of HW key.

Change-Id: I69dc3993f607553d4752f9f9fb4fdfe1a09a6345
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Revert "sched_avg: add run queue averaging"

This reverts commit 3647f3cf1253c649b55e16982b112d62956ba842.
Revert "sched: add sysctl for controlling task migrations on wake"

This reverts commit 0eeabce5917d5197c01acac2f8c8070918d2e53b.
Revert "sched: add PF_WAKE_UP_IDLE"

This reverts commit 3f4321d21cb16eec34f3653c185f05e31cbe407a.
usb: gadget: rndis: Fix re-binding f_rndis

f_rndis checks if rndis_string_defs[0].id is null to setup rndis
and allocate string ids when it is bound to the first configuration:

	/* maybe allocate device-global string IDs */
	if (rndis_string_defs[0].id == 0) {

		/* ... and setup RNDIS itself */
		status = rndis_init();
		if (status < 0)
			return status;

rndis_string_defs[0].id must be reset to 0 on unbind for rndis to be
correctly initialized on the next composite_bind.

Signed-off-by: Benoit Goby <benoit@android.com>
mako: display: enable lcd color temperature calibration

Add lcd color temperature calibration interface and apply
the calibrated value to the target using mdp lut.

Change-Id: Ibdd606a155e0d7708ba79be6f817c3d89b51a282
Signed-off-by: Iliyan Malchev <malchev@google.com>

Conflicts:
	arch/arm/mach-msm/include/mach/board_lge.h
	arch/arm/mach-msm/lge/devices_lge.c
	arch/arm/mach-msm/lge/mako/board-mako-display.c