Merge updates from android-tegra-moto-2.6.39-ics-mr1

ARM: tegra: stingray: Increase delay after enabling power ON to 300 ms

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

ARM: tegra: pm: keep a local cpu online mask for lp2 idle

Keep a local mask of cpus that are online, and mark a cpu
online before it is every brought out of reset.  Fixes a
problem when turning on the second cpu where the first cpu
may think that all cpus are idle while the second cpu is
still booting.  Locking around the online mask is
unnecessary because the the cpu that modifies the mask
must be outside of idle, so the online mask can never
equal the idle mask while it is being modified.

Change-Id: If703a16e5e7e3b0e316ab15083336fbe09814f36
Signed-off-by: Colin Cross <ccross@android.com>

mmc: sdhci-tegra: Add SDHCI_QUIRK_BROKEN_CARD_DETECTION

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

mmc: sdhci: Prevent sdhci irq handler to schedule card detect if it is broken

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

HACK: ARM: tegra: pm: disallow lp2 while hotplugging in suspend

Strange crashes occur during enable_nonboot_cpus if lp2 is
enabled.  Disable it in the platform prepare_late handler, and
enable it in the platform wake handler.

Change-Id: If2c91139499fcaa2011f973b57c4dc83d1ecae67
Signed-off-by: Colin Cross <ccross@android.com>

usb: gadget: f_usbnet: Do not enable intr_out ep

Using intr_out ep w/o specifying MaxPacketSize was causing
eventual USB enumeration failure.

Intr_out ep is actually no longer used so it will be disabled
now to avoid the failure. Function config will be kept same
to match with Windows driver for now.

Change-Id: I9c2ccde5ea4d38569304650e97cd84cba9a67781
Signed-off-by: Kazuhiro Ondo <kazuhiro.ondo@motorola.com>

ARM: tegra: Gadget USB optimization

- Added AHB shared clock to gadget usb controller.
- Increased inactivity timeout of memory pre-fetch.

Change-Id: Ie8a0df5a677c05543ab66fa0a2a404ad1649d073
Signed-off-by: Kazuhiro Ondo <kazuhiro.ondo@motorola.com>

usb: gadget: Gadget USB optimization

- Set AHB bus clock to 240Mhz when USB1 gadget is enabled.
- Set "stream disable" in USB mode.

Bug: 943259
Change-Id: I2c04655338e1e831ccdddef0480c162677714c7f
Signed-off-by: Kazuhiro Ondo <kazuhiro.ondo@motorola.com>

usb: gadget: fsl_udc_core: re-prime USB controller

USB controller might stop processing dTD list even if the list
is not exhaused. Make sure to re-prime controller if controller
is found to be stopped.

Bug: 6110002
Change-Id: I669f7833359c9d7d3dbc2a413047f8e3907b6bfd
Signed-off-by: Kazuhiro Ondo <kazuhiro.ondo@motorola.com>
Merge updates from android-2.6.39

Mainly WiFi related.

net: wireless: bcmdhd: Add 'wlan_ctrl_wake' wakelock

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

net: wireless: bcmdhd: Update to version 5.90.195.53

- Add retry to wl_cfg80211_mgmt_tx() for P2P
- Change singal pending return value from -512 to -110
- Minor cleaning

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

net: wireless: bcmdhd: Fix improper band handling

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

net: wireless: bcmdhd: Allow 80211_HT capability

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

netfilter: qtaguid: initialize a local var to keep compiler happy.

There was a case that might have seemed like new_tag_stat was not
initialized and actually used.
Added comment explaining why it was impossible, and a BUG()
in case the logic gets changed.

Change-Id: I1eddd1b6f754c08a3bf89f7e9427e5dce1dfb081
Signed-off-by: JP Abgrall <jpa@google.com>

netfilter: xt_qtaguid: fix ipv6 protocol lookup

When updating the stats for a given uid it would incorrectly assume
IPV4 and pick up the wrong protocol when IPV6.

Change-Id: Iea4a635012b4123bf7aa93809011b7b2040bb3d5
Signed-off-by: JP Abgrall <jpa@google.com>