ARM: tegra11x: wakeup: Fix sdmmc3 wakeup source

-Use gpio_pv2 as wakeup source for sdmmc3 card detect
and disable sdmmc3 controller CD wakeup source.
-Enabling both will conflict and results in failure
of detection of SD card in device suspend state.

Bug 1407948

Change-Id: Icdb98854ab1dc293924a33ed33e170a230979de6
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/343668
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
usb: host: tegra: Hold temporary lock on resume

On Shield we are disabling the vbus on suspend
and enabling it back on resume. After resume device
gets disconnected and re-enumerated.
Acquire a temporary wakelock on resume to enumerate
the device properly before it goes to LP0.

Bug 1415958

Change-Id: If67e9d8ca96b94161f4757b2f5a031ca82d8cdc7
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/343632
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
usb: otg: otg-wakelock: Increase wake-lock time

Increase the temporary wake-lock hold time
as this is needed in a case when Device needs to
be enumerated properly.

Bug 1415958

Change-Id: Ic6f842273c0b492c86087aa5895ebf7781b44ddb
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/343633
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
staging: ozwpan: Fix an issue with hub_status.

Update ozwpan to the latest drop from ATMEL to
resolve an issue with hub_status() returning the
wrong status.  This resulted in the USB stack
trying to read the port status continously.

Bug 1415705.

Change-Id: I433cce1add10b82fbb08b0e3804f02607b809bea
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/343739
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
tegra: dc: fix HDMI CMU enable.

Initialize HDMI CMU with same parameters as in
DC init when enabling it subsequently.

Bug 1162082
Bug 1407045

Change-Id: I25a7cfb75a43c49487a2a3ec7569aa89727dd4ab
Signed-off-by: Markus Hiienkari <mhiienkari@nvidia.com>
Reviewed-on: http://git-master/r/337980
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas J. Meier <tmeier@nvidia.com>
Reviewed-by: Xuezhou Ma <xuezhoum@nvidia.com>
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Tested-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>
tegra: dc: enable CMU for secondary display.

Enable CMU for secondary display as default. If
DC type is HDMI, use sRGB-to-sRGB (limited range)
conversion configuration.

Bug 1162082
Bug 1162069
Bug 1407045

Change-Id: Ibb75ae0522fcf3aca6cffd3cfd747dfe5c6038bd
Signed-off-by: Markus Hiienkari <mhiienkari@nvidia.com>
Reviewed-on: http://git-master/r/337981
Reviewed-by: Thomas J. Meier <tmeier@nvidia.com>
Reviewed-by: Xuezhou Ma <xuezhoum@nvidia.com>
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Tested-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>
ARM: tegra: add otg driver entry for usb_vbus and vbus_bat_chg

Add the otg driver under device list for usb_vbus and
vbus_bat_chg regulators. If USB port has OTG support,
allow the OTG driver to control the vbus.

Bug 1375608

Change-Id: I86253d145a6ff966e7a4e50deee695efe8545b88
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/334358
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
usb: otg: tegra: add support for OTG Y-cable

Below changes are made to support Y-cable
(i) Bring vbus control into OTG driver if port is OTG.
(ii) Detect Y-cable.
(iii) Add vbus_bat_chg charging regulator.

Bug 1375608

Change-Id: I41bab08ebce15d3f356c624de0b62ff8e4cc4a28
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/336278
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
net: wireless: bcmdhd: update driver to version 1.88.55

Bug 1404820
Bug 1402287

Change-Id: I3e54be5870cf4ad1b1d75742e47dfb25485faca9
Signed-off-by: Neeraj Garg <neerajkg@broadcom.com>
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/329514
(cherry picked from commit 36b4a62ebd491b0305c0c3a651217983c07f2df2)
Reviewed-on: http://git-master/r/335395
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Reviewed-on: http://git-master/r/347356
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Tested-by: Jean Huang <jeanh@nvidia.com>
pulled missing patches from 1.28.28.4

Bug 1422733

Change-Id: Ia23f3de0d8022a5e4f02af7145d35aa57aa69e36
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/347998
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Tested-by: Jean Huang <jeanh@nvidia.com>
enable CONFIG_WIFI_CONTROL_FUNC to power up wifi chip

Bug 1422733

Change-Id: I0cc229259c3cc8652a47fd794c11019829290c50
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/349386
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Tested-by: Jean Huang <jeanh@nvidia.com>
staging: ozwpan: Add udev event to userspace.

Update from ATMEL to send an event to userspace to
indicate that a device has entered or resumed from
sleep.

Bug 1394137.
Bug 1421799.

Change-Id: I25b02bd8ae8a01a52d28b8254fbc43401c0f9463
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/357851
(cherry picked from commit 94dac510078f3cfe817fc5132114b8a64dd7f965)
Reviewed-on: http://git-master/r/358907
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Tested-by: Jean Huang <jeanh@nvidia.com>
bcmdhd: key installation timing fix

In case 43241 is a GO and it RECEIVES 4/4
key msg, so dhd_wait_pend8021x() is not
required for GO mode, hence we have skipped
this for AP/GO mode.

Bug 1392645

Change-Id: Icb1f86c5bfcb2afbd7e26fca9f75d73598d4ca07
Signed-off-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-on: http://git-master/r/344360
Reviewed-on: http://git-master/r/358430
(cherry picked from commit 0acf883349f609ca82f49a1b537d4e9f476f6e64)
Reviewed-on: http://git-master/r/358908
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
arm: configs: tegra11: enable hidraw

Bug 1425532.

Reviewed-on: http://git-master/r/352340
Signed-off-by: Toby Butzon <tbutzon@nvidia.com>
Change-Id: Ib656051a221a9879c4df8a766b458065d81f9b07
Reviewed-on: http://git-master/r/359122
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/359505
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
usb: otg: tegra: add delay for y-cable detection

Sometimes id status is not reflected immediately after
connect y-cable connection. Adding dealy for proper
detection.

Bug 1375608
Bug 1439649

Change-Id: Ice38bcbc19ba6242820ff38a676b9b7e6fdeef72
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/359338
(cherry picked from commit b3eba21a230eef069b7fb7c789ac1fa5cfd417d4)
Reviewed-on: http://git-master/r/360202
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
net: wireless: bcmdhd: add flag to enable MCC

With Android-KK upgrade MCC(Multi Channel Concurrency) is
by default enabled from supplicant, which impact on Miracast
performance so we are disabling it from driver

Bug 1410893

Change-Id: I8746cacdcd2e7e12205f90b0ec47cfb87aaf79aa
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/333471
(cherry picked from commit 56b14ebe7ec24b972b32ea038417b8643d0dc6f4)
Reviewed-on: http://git-master/r/364045
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>
drivers: net: wireless: bcmdhd: disable block ack for UP7

Disble BA for TID7 and set BA window size to 32 for
better PC gaming experience.

bug 1423506

Change-Id: Ibebd1aa5203b28a3cdfe199567a3d9525b4da19e
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/364062
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>
net: wireless: bcmdhd: Fix card detection race conditions

On non built-in platform device cases mmc_rescan will
initiated by mmc stack and android wifi device. So stop
the card detection on mmc device probe, Since card
detection is completed. So that we can avoid mmc_rescan
initiation after power save done in sdio client driver probe.

Bug 1405624
Bug 1419961

Change-Id: Iad0059ba5a5a9dbc2b146f87c4a261b8a97a6323
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/346874
(cherry picked from commit 092bf21ed1e61f00588d41f66ce5f657fc3e3be5)
Reviewed-on: http://git-master/r/364067
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>
mmc: tegra: Stop rescan task initiation on detect stop notify

It seems we are starting mmc_rescan task for card removal case
status notify call. So check the card_present input value
and start the mmc_rescan task for card present case and
stop mmc_rescan task for card not present case.

Bug 1405624
Bug 1419961

Change-Id: I888d6317bfba2716b3776e584f4ecfee8d4a91d0
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/346873
(cherry picked from commit 9c33ba5b60432cbb88deeb3a4ee81edf01d32f67)
Reviewed-on: http://git-master/r/364068
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>
net: wireless: bcmdhd: update driver to version 1.88.58

Change list:
-Enable TDLS for Nvidia.
-RB:21080 JIRA:SWWLAN-41226 CSP:671392 Mobile Hotspot throughput performance is low
-RB:20909 JIRA:SWWLAN-41211 Preventing a memory leakage
-RB:20818 [Android-Kitkat] Change the logic which controls TDLS connection in Kitkat MR1 framework
-RB:20877 [Android-kitkat] enable ipv6 router advertisement packet filter mode in suspend
-RB:20654 CSP:730963 Adding AP isoloation code
-RB:20808 [Android-Kitkat] change DTIM skip policy in suspend mode of device to solve link lost issue due to beacon lost
-RB:17773 [Android-kitkat] Fixed a bug for negative padding
-RB:20628 fix about handling BSS peer information
-Fix wlu build error by r432432.
-RB:19436 CSP:724180 JIRA:SWDHD-39 Roaming trigger value is always initialized to the default when associated to new AP.
-RB:19729 [Android-Kitkat] Fixed the corner case of PNO issue
-RB:13157 JIRA:SWDHD-39 Fix windows dongle driver hang from r432053
-JIRA:SWDHD-47 RB:19389  Ignore Power Save mode for AIBSS
-RB:19106 JIRA:SWWLAN-39738 Fix compile err for r432982
-RB:19246 Fixing bugs about handling TX fail event Fixing bugs about handling TX fail event
-RB:19106 JIRA:SWWLAN-39738 Refactoring sdiofifo overrun/underrun tuning code
-RB:19163 [Android-Kitkat] Fixed country code setting issue on Nexus-5
-RB:19162 [Android-Kitkat] Fixed corner case of P2P issue in Google Nexus-5

Bug 1397433

Change-Id: I4675f91b512bcd8bd49a384b28a864c106fe372f
Signed-off-by: Syed Asifful Dayyan Rafiuddeen <syedd@broadcom.com>
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/364087
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>