7 years agoarm: tegra: baseband: add sysfs file for modem boot, etc.
Steve Lin [Fri, 15 Jun 2012 01:12:46 +0000]
arm: tegra: baseband: add sysfs file for modem boot, etc.

1. Add sysfs file so the fild can load/unload host controller before
modem power cycle.
2. Move modem boot irq to modem PM driver.
3. Add short autosuspend to optimize power consumption if the wake
source of system resume is not modem.
4. Avoid LP0 abort if remote wakeup happens during L0/L2 -> L3
transition.
5. Fix deadlock in pm_notifier function.

Bug 975990

Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/109079
(cherry picked from commit 0b60aade303a022ff3335b4a238ba2dbae4da4b5)

Change-Id: I9bcac40e2f93f95c702b42a2eb5e4e9aa7a9d721
Reviewed-on: http://git-master/r/103981
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Uday Raval <uraval@nvidia.com>
Tested-by: Steve Lin <stlin@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoARM: tegra: usb_phy: Fix for glitch on STROBE line
Vinod Atyam [Wed, 20 Jun 2012 17:36:37 +0000]
ARM: tegra: usb_phy: Fix for glitch on STROBE line

Observed glitch on STROBE line during HSIC resume.
This is because after removing the TX circuit power down,
HSIC controller is keeping in reset to program
phy parameters. TX circuit is driving low on STROBE line until
controller removed out of reset.
Now corrected the code to remove power down after setting phy
parameters and removed the reset on HSIC controller.

Bug 991709

Change-Id: I4966ea92752d2e5c6ea7042a6c5fb8707cf6bb35
Signed-off-by: Vinod Atyam <vatyam@nvidia.com>
Reviewed-on: http://git-master/r/110112
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregulator: tps80031: Allow to configure in OFF mode in sleep state
Laxman Dewangan [Mon, 25 Jun 2012 13:29:27 +0000]
regulator: tps80031: Allow to configure in OFF mode in sleep state

Allow to configure the rail into sleep-off mode even if
the external req is not supported for a regulator.

bug 979143

Change-Id: I3c1bd789410b557a2ffc3133ca15ec3753ed2004
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/110881
Reviewed-by: Automatic_Commit_Validation_User

7 years agortc: max77663: avoid powering on system by RTC alarm.
Jinyoung Park [Tue, 15 May 2012 08:42:32 +0000]
rtc: max77663: avoid powering on system by RTC alarm.

Clean RTC alarm and don't set new alarm during shutdown process.
After powering off, we do not want Maxim PMIC automaticly boots caused
by RTC alarm.

Bug 985193

Signed-off-by: Haley Teng <hteng@nvidia.com>
Reviewed-on: http://git-master/r/104773
(cherry picked from commit 0bd7f3163f73ba3cf87dadd6bc6fa35a538ac153)

Change-Id: I7209407503b9f51dfb5b8f59d05c6fa8f04c6069
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/110858
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: clock: Add fence read in emc clock change
Alex Frid [Thu, 7 Jun 2012 06:51:28 +0000]
ARM: tegra: clock: Add fence read in emc clock change

Added fence read in Tegra3 emc clock change procedure.

Change-Id: I2162affb4dddcacf38057e07ff6fbd5964643188
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/106956
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agousb: serial: baseband: Add another XMM modem USB VID/PID.
Michael Hsu [Wed, 9 May 2012 23:30:34 +0000]
usb: serial: baseband: Add another XMM modem USB VID/PID.

Add support for another XMM modem.

Bug 996038

Change-Id: I392a18284b372fbc80c581b31b21af3c072bf4d3
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/110193
(cherry picked from commit bdad2e9c1b195c8f7fcc3216f2bf27ea99dfd597)
Reviewed-on: http://git-master/r/110941
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agousb: cdc_ether: Add rmnet device info to PH450 and Tango
Mohan T [Mon, 25 Jun 2012 05:36:17 +0000]
usb: cdc_ether: Add rmnet device info to PH450 and Tango

Modified device info element for PH450 and Tango to
sync with framework.

Change-Id: I325571358f8c1875484254a9f497c606adb03180
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/110765
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthieu Vincenot <mvincenot@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoARM: tegra: Change pm269 board structure configs
Sudhir Vyas [Mon, 18 Jun 2012 11:24:49 +0000]
ARM: tegra: Change pm269 board structure configs

* NVC config change added to make code inline with
generic NVC framework, but it is introducing camera
crash after reboot issue on pm269.

* Make code identical to what was there earlier to fix
above regression.

Bug 998465

Change-Id: I8510ef3427b218481c5e36c952056dda799080f6
Signed-off-by: Sudhir vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/109523
(cherry picked from commit 7e642946895848829bb6405bc675062c86907eb4)
Reviewed-on: http://git-master/r/110087
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoFix gcov for GCC 4.6.
Tuomas Tynkkynen [Wed, 20 Jun 2012 11:47:25 +0000]
Fix gcov for GCC 4.6.

Gcov's internal data structures, on which the kernel depends on, have
changed in GCC 4.6. This patch adds support for GCC 4.6 and should still
work on GCC 4.4 too.

For reference, look at 'struct gcov_fn_info' in GCC's 'gcc/gcov-io.h',
near line 698:
https://android.googlesource.com/toolchain/gcc/+/master/gcc-4.4.3/
https://android.googlesource.com/toolchain/gcc/+/master/gcc-4.6/

Bug 1003822

Change-Id: I527736f944c80b8b345d1685669c0b99eb38fb66
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/110073
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agovideo: host: Add host to EXTRA_CFLAGS
Rhyland Klein [Fri, 22 Jun 2012 18:07:29 +0000]
video: host: Add host to EXTRA_CFLAGS

It seems with building with different tool chains, when compiling
nvhost_acm it doesn't end up with drivers/video/tegra/host in its
include path and therefore it fails to find some header files.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: Ic3d72c863d4b5e501222d21077ba9735315ec65c
Reviewed-on: http://git-master/r/110592
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

7 years agovideo: tegra: use public APIs exposed by host1x driver
Mayuresh Kulkarni [Mon, 18 Jun 2012 07:05:40 +0000]
video: tegra: use public APIs exposed by host1x driver

Bug 961009

Change-Id: Ifdcc7bc8a40d270e70a63329f46caff541bf01e2
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/109461
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: kai: Fix panel power on/off sequence
Ken Chang [Tue, 15 May 2012 10:02:04 +0000]
arm: tegra: kai: Fix panel power on/off sequence

Panel power on/off sequence should meet the panel spec as below.

power on:
1. EN_VDD_PNL
2. PCLK
3. LVDS_EN
4. LCD_BL_PWN

power off:
1. LCD_BL_PWN
2. LVDS_EN
3. PCLK
4. EN_VDD_PNL

Pixel clock on/off is controlled by dc driver, we need to separate the
setting of panel enable/disable into two parts. The first, i.e., before
pclk on/off, is done in kai_panel_enable()/kai_panel_prepoweroff().
And the second part, i.e., after pclk on/off, is done in
kai_panel_postpoweron()/kai_panel_disable().

bug 976081

Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/102555
Reviewed-by: Artiste Hsu <chhsu@nvidia.com>
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
(cherry picked from commit 8149532e20729c359eb1680297f19a8f46343054)

Change-Id: Ifc0d60c2caabf60f4186179e64756a4caabf9af6
Reviewed-on: http://git-master/r/110297
Tested-by: Ken Chang <kenc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Artiste Hsu <chhsu@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agovideo: tegra: dc: Support for pre power-off actions
Ken Chang [Tue, 15 May 2012 03:20:52 +0000]
video: tegra: dc: Support for pre power-off actions

Part of panel settings need to be done before/after pixel clock
is disabled. Add support for these actions to meet panel
spec.

bug 976081

Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/102542
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
(cherry picked from commit dcecdc64d4d0fd4d9f69df52c9d200dfbf1dd7fc)

Change-Id: Ibfede68d67a4815156f73c2d1cdca90f3f771755
Reviewed-on: http://git-master/r/110296
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: pcie: Fix USB3 after LP0
Jay Agarwal [Fri, 22 Jun 2012 12:03:51 +0000]
arm: tegra: pcie: Fix USB3 after LP0

Stop and add pcie devices to probe the devices
again in order to have correct value of irq which
was not, at first probe while resume.

Bug 956573

Change-Id: I8d497116350ad263c4ae3053cd429393a0f0bc99
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/110556
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: pcie: Add hotplug functionality
Jay Agarwal [Fri, 22 Jun 2012 10:06:34 +0000]
arm: tegra: pcie: Add hotplug functionality

1. do power off on suspend and power on while
   resume and other initialization.
2. call same functionality as suspend/resume
   for disconnect/connect of hotplug also.

Bug 946385

Change-Id: Ic6906a8641f418cc3e5ee86beaf6fb3f71081174
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/110343
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: Tegra: p1852: UARTE pinmux correction
sreenivasulu velpula [Tue, 19 Jun 2012 11:56:40 +0000]
ARM: Tegra: p1852: UARTE pinmux correction

UARTE pin directions were set as per the old pinmux sheet.
Updated the pinmux as per the sheet revision #18
//syseng/Projects/P1852/PinMux/T30_PinMux_for_P1852.xls

Bug 991591

Change-Id: I50cf05659e4970882dffc1cd268718e64c886a23
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/109762
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mohit Kataria <mkataria@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: pcie: Fix suspend/resume code
Jay Agarwal [Wed, 20 Jun 2012 08:00:39 +0000]
arm: tegra: pcie: Fix suspend/resume code

1. Do add port and rescan in resume
2. Assert pcie xclk on power on
3. Remove all bus and devices in suspend
4. Enable msi once after resume also
5. Remove Most of hacks for save and restore
   config spaces

Bug 959642
Bug 956573

Change-Id: Ibfa6902ad1aa2ed0d97f7fe1e305287e38ea0be1
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/109700
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: host: add public APIs for power & syncpoint management
Mayuresh Kulkarni [Mon, 18 Jun 2012 07:05:01 +0000]
video: tegra: host: add public APIs for power & syncpoint management

- add public APIs for power & sync-point management
- all these APIs end with string _ext
- all these APIs can be found in linux/nvhost.h
- all these APIs take nvhost_device as first argument
- all these APIs are based on the fact that host1x hardware
driver is parent of all the host1x client driver
- this allows clients of host1x which are outside host1x
driver code to just include nvhost.h & use host1x driver
interfaces
- this also hides the implementation details of power &
sync-point inside host1x driver code
- move sync point ids for dc and nvavp to nvhost.h

Bug 961009

Change-Id: I1a9ca074df87656c4d4bd246853e039a7850d56a
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/109219
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agomedia: video: tegra: Fix LP0 error while playing WV
Hyungwoo Yang [Sat, 16 Jun 2012 03:55:36 +0000]
media: video: tegra: Fix LP0 error while playing WV

Original change(commit dfa3daebbc8dbe3ccc8e72400359dfce29053222) to fix
LP0 error is already merged but the error is still there
due to porting issue to main branch.

This change fixes LP0 problem caused by porting to main.

Change-Id: I925407dc6c7fe0caca5ea33e3830a857b26e151c
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/109376
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoarm: tegra: enterprise: Set pwr_i2c speed to 400khz
Chaitanya Bandi [Wed, 20 Jun 2012 04:58:47 +0000]
arm: tegra: enterprise: Set pwr_i2c speed to 400khz

PWR_I2C (i2c5) clock rate is set to 400khz.

Bug 1001924

Change-Id: I7b5593742a0b208aea2ad0d83ecac2078f458534
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/109954
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agovideo: tegra: dc: Skip the vblank_int work if DC is disabled.
Kevin Huang [Wed, 20 Jun 2012 20:17:00 +0000]
video: tegra: dc: Skip the vblank_int work if DC is disabled.

Bug 1000789
Bug 1003730

Change-Id: I7fbd703dde2044f2790e6a9b356ef8dca89ad8f3
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/110146
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoarm: tegra: usb: restore the AP/modem handshaking
Steve Lin [Wed, 20 Jun 2012 19:59:43 +0000]
arm: tegra: usb: restore the AP/modem handshaking

Restore the AP/modem handshaking functions and clean up the null
phy driver.

Bug 996035

Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/109044
(cherry picked from commit ff27e8a48a53fe70949d95915f62dd2e03c73df7)

Change-Id: I12a2401a7fcc540a657ab15378d440ef85561001
Reviewed-on: http://git-master/r/110145
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agovideo: tegra: dc: force the use of new bandwidth
Jon Mayo [Wed, 20 Jun 2012 20:48:53 +0000]
video: tegra: dc: force the use of new bandwidth

During programming of a frame or at frame end, force the use of the new EMC
bandwidth instead of the previous frame's bandwidth.
Moved copy of new_bandwidth out of tegra_dc_set_latency_allowance() to match
the semantics of the rest of tegra_dc_program_bandwidth().

bug 949015

Change-Id: I881f3a2c75f3438e3bbb3208b518f15a4574bc91
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/110149
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>

7 years agoarm: configs: tegra: Enable ISL29028 sensor in L4T
Konsta Holtta [Wed, 20 Jun 2012 11:50:41 +0000]
arm: configs: tegra: Enable ISL29028 sensor in L4T

Enabling ALS and Proximity sensor ISL29028 for Tegra3 boards in L4T
defconfig. Also, Disabling the ISL sensors which are not present on
Tegra3 boards.

Bug 876339

Change-Id: I22c318a43b0c5fe667e89c9dd9f99c84a368c8f9
Reviewed-on: http://git-master/r/110065
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: config: tegra3: enable PCIEASPM
Vidya Sagar [Tue, 19 Jun 2012 09:51:37 +0000]
ARM: config: tegra3: enable PCIEASPM

Enables the Active State Power Management (ASPM) support
in the PCIe framework

Bug 815499

Change-Id: I76f9fc6a5b6feed8e47e5a4a3825b71c487b79ed
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/109747
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agonet: wireless: bcmdhd: Enable 5 GHz support
Nitin Bindal [Mon, 18 Jun 2012 13:21:30 +0000]
net: wireless: bcmdhd: Enable 5 GHz support

Update wiphy (wireless hardware description) to
support 5 GHz scan.

Bug 1000888

Change-Id: I1a7a99f97f69dd8f1790f81ee0fb21e209e8d10e
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/109556
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: host: Exclude suspend/resume if disabled
Terje Bergstrom [Fri, 15 Jun 2012 11:48:47 +0000]
video: tegra: host: Exclude suspend/resume if disabled

Compile power management suspend and resume functions only when
CONFIG_PM is enabled.

Change-Id: If349984d62ed002594ba60ac25cd4dddd956aa6c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/109425
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: nvmap: Use trace points in NvMap.
Krishna Reddy [Tue, 5 Jun 2012 17:18:13 +0000]
video: tegra: nvmap: Use trace points in NvMap.

Change-Id: I2a5f0c9305bd53c42df181556d97efa5d6792ad7
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/106500
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

7 years agonvmap: Add trace points for nvmap.
Krishna Reddy [Mon, 4 Jun 2012 18:19:09 +0000]
nvmap: Add trace points for nvmap.

Change-Id: I86e68c57846fe14de7620edf4c241ad7d9e46df2
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/106491
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Satya Popuri <spopuri@nvidia.com>

7 years agoPCI: pcie: Add support for setting default ASPM policy
Matthew Garrett [Tue, 19 Jun 2012 08:48:58 +0000]
PCI: pcie: Add support for setting default ASPM policy

Distributions may wish to provide different defaults for PCIE ASPM
depending on their target audience. Provide a configuration option for
choosing the default policy.

Bug 815499

(cherry picked from commit ad71c96213a68dfe6d761e3ff7ac7ac267fd612a
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;
a=commitdiff;h=ad71c96213a68dfe6d761e3ff7ac7ac267fd612a)

Change-Id: I36bd72517af0cf8d637552e66b18afe576e72c20
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/109739
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: use rfkill-gpio driver to register bluetooth rfkill
Nagarjuna Kristam [Mon, 4 Jun 2012 04:30:53 +0000]
arm: tegra: use rfkill-gpio driver to register bluetooth rfkill

rfkill-gpio driver is available in linux delivery as a generic rfkill driver.
use rfkill-gpio driver to perform bluetooth RFKILL gpio activities, instead of
bcm4329 rfkill driver.

Bug 993990
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>

Change-Id: I654b93f099431029177913605d15ad921df07833
Reviewed-on: http://git-master/r/108499
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: config for PCIe framework
Vidya Sagar [Tue, 19 Jun 2012 09:34:16 +0000]
ARM: config for PCIe framework

Bug 815499

Change-Id: I6ce9a2bb4afbfd797fc5a0bf0d1027bdc0c1459d
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/109745
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agospi: tegra: check tx queue before start transfer
Ashwini Ghuge [Wed, 20 Jun 2012 08:34:49 +0000]
spi: tegra: check tx queue before start transfer

Check for valid entry on the message queue before
reading the transfer list from queue. If queue is
empty then do not start transfer.

Change-Id: If51a816780ab76700a7a1d7d8a025a3544590ad1
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/109469
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agospi: tegra: dump registers when error occurs
Ashwini Ghuge [Wed, 20 Jun 2012 08:22:45 +0000]
spi: tegra: dump registers when error occurs

When any error occurs in spi communication,
dump the spi registers for debug purpose

Change-Id: I5cf226d4b504c95a6abb8dcf5b8c0ba1ef44271c
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/109466
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agospi: tegra: Max tx words limited to max buff size
Ashwini Ghuge [Wed, 20 Jun 2012 08:44:28 +0000]
spi: tegra: Max tx words limited to max buff size

When computing required words for a transfer,
limit this to max possible size on given
sub transfer

Change-Id: Ia1a9290ae389e36ecb5a8d03be2982885a544a33
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/109462
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agospi: tegra: do not start transfer if runtime pm fails to resume
Johnny Qiu [Mon, 18 Jun 2012 07:11:23 +0000]
spi: tegra: do not start transfer if runtime pm fails to resume

Bug 995706

During device shutdown/rebooting, runtime PM is disabled. SPI bus
driver will fail to call tegra_spi_runtime_resume() to resume the
clock needed by tranferring. In this case, do not start transferring.

Change-Id: I42cc0763f55b6c90df00fbad68794939e903199a
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/109458
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agovideo: tegra: dc: fix MC_DECERR display0_win errors on shutdown
Adam Cheney [Sat, 16 Jun 2012 02:22:35 +0000]
video: tegra: dc: fix MC_DECERR display0_win errors on shutdown

When a DC window is being released, a NULL flip is used to indicate
that the window should be disabled.  To disable a window, 0 is
written to WIN_OPTIONS.

The MC_DECERR on window shutdown is a symptom of forgetting step 2)
below when disabling windows, leaving no indication that there is
anything to wait for.  This causes DC to erroneously unpin the
scanout buffer while the buffer is still actively being used.

Summary of flip (window update) synchronization in DC:
1) program some window registers
2) set win->dirty=1
3) schedule the activation of the registers
4) request VBLANK or HBLANK interrupts
5) wait for win->dirty==0

In the trigger_windows ISR (every VBLANK or HBLANK):
1) if there is no window update pending in HW, clear dirty flag to
   indicate that ACTIVE registers are up-to-date.

bug 991572
bug 995614
bug 989119
bug 983251
bug 960424
bug 866711

Change-Id: I8b710aac874b202838c3989608b7e0bd15425382
Signed-off-by: Adam Cheney <acheney@nvidia.com>
Reviewed-on: http://git-master/r/109370
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agomedia: tegra: avp: Remove compiler warning
Juha Tukkinen [Mon, 18 Jun 2012 13:11:43 +0000]
media: tegra: avp: Remove compiler warning

Get rid of maybe-uninitialized warning when using 4.6 toolchain.

Bug 999222

Change-Id: Ic8e944eaba281cdea45950b61f93093ff0e59f20
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/109553
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Stefan Becker <stefanb@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

7 years agoarm: tegra: emc: Fix compiler warning
Juha Tukkinen [Mon, 18 Jun 2012 11:29:01 +0000]
arm: tegra: emc: Fix compiler warning

Initialize a variable to avoid a compiler warning and a potential bug.

Bug 999222

Change-Id: I77724b21d20049340943856c8d00af5e067c206a
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/109552
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Stefan Becker <stefanb@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

7 years agovideo: tegra: host: Support per Soc hardware headers
Terje Bergstrom [Fri, 8 Jun 2012 08:40:27 +0000]
video: tegra: host: Support per Soc hardware headers

Make all chip specific functions static. Include the chip specific
functions in SoC files after including the hardware headers. This
makes the chip specific functions to be compiled per SoC, and with
the correct hardware definitions.

Bug 982965

Change-Id: I4774d4dc351951cb886d9d4da66cf021f3f0121e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/107581
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: Tegra: Harmony: highspeed uart enable
Ramalingam C [Thu, 7 Jun 2012 09:42:24 +0000]
arm: Tegra: Harmony: highspeed uart enable

Based on the kernel command line argument, this change will register the
UARTD for the tegra_uart driver, instead of the serial8250. Hence we can
put the harmony for the UART automation test.

Bug 991545

Change-Id: I5e637c73f4ce352fb615453121d14e2874e51a53
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/106755
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mursalin Akon <makon@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: Fix cpu governor change issue
Puneet Saxena [Wed, 30 May 2012 10:58:31 +0000]
arm: tegra: Fix cpu governor change issue

It fixes the issue where cpu governor change
was inconsistent across platforms.

In T2x, AUTO HOTPLUG is disabled therefore we need
to store/restore gov for all online cpus across
LP0 cycle.

In T3x, AUTO HOTPLUG is enabled therefore storing/restoring
gov for Cpu0 across LP0 cycle. Cpu0 remains online in suspend
and resume.

bug 991081

Change-Id: I167654aa21e4832b3fdc40e3d388a4d3f984632b
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/105404
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agommc: core: adding new sysfs entry for prod_rev
Vishal Singh [Fri, 18 May 2012 13:33:11 +0000]
mmc: core: adding new sysfs entry for prod_rev

Adding new sysfs entry for product revision which is needed by
mNAND health and status user space tool.

Bug 974823.

Change-Id: I4a07a5e6c1c81e2b7a4c1ed024e987e06f9f87c8
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/103366
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: Luis Dib <ldib@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>

7 years agovideo: tegra: host: Give names to chip_support parts
Terje Bergstrom [Fri, 15 Jun 2012 04:48:17 +0000]
video: tegra: host: Give names to chip_support parts

Give names to the structures inside nvhost_chip_support. This way
they can be referred to individually.

Change-Id: I9b727bfc232d11957a8bd3e3570583d47cff778e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/109103
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>

7 years agovideo: tegra: host: Remove unused functions
Terje Bergstrom [Fri, 15 Jun 2012 04:45:44 +0000]
video: tegra: host: Remove unused functions

Remove unused functions in CDMA and debug. They were left unused
when debug dump started using sync queue instead of channel
registers for detecting current position.

Change-Id: Ib1f0bc8f702667d0453079e6d5f5d8ca08f8db09
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/109102
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>

7 years agovideo: tegra: host: Use chip_ops for save context
Terje Bergstrom [Fri, 15 Jun 2012 04:43:07 +0000]
video: tegra: host: Use chip_ops for save context

Call drain fifo and save context functions via nvhost_chip_support.
Earlier client drivers called into host1x code directly, which
makes each client driver SoC specific.

Change-Id: I4f805abad21012e59e11bf6a98fa46441c71c51a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/109101
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>

7 years agoARM: tegra: dvfs: Fix error checking of voltage
Juha Tukkinen [Thu, 14 Jun 2012 14:44:34 +0000]
ARM: tegra: dvfs: Fix error checking of voltage

Fix error checking of predicted voltage. Also get rid of
maybe-uninitialized warning when using 4.6 toolchain.

Bug 949219
Bug 999222

Change-Id: I47553aba5a93c91bdd93cbf75081d69f92aec4dd
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/108899
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agovideo: tegra: host: expose power management paramters via sysfs
Mayuresh Kulkarni [Tue, 12 Jun 2012 12:52:26 +0000]
video: tegra: host: expose power management paramters via sysfs

this commit exposes following power management parameter through
sysfs:
- clockgate_delay: delay after which module is clock gated after
it goes idle. this read/write attribute & unit is ms.
- powergate_delay: delay after which module is power gated after
it is clock gated. this is read/write attribute & unit is ms.
- refcount: current reference count on the module. this is
read-only attribute.

path is: /sys/devices/host1x/<device-name>/acm/ where
<device-name> = name of device node like gr2d or gr3d etc

Bug 845598

Change-Id: I6011eb90ee85b5fc576320272e657ce31f9e264d
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/108827
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Francis Hart <fhart@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

7 years agousb: tegra: otg: fix unbalanced suspend/resume
Xin Xie [Wed, 13 Jun 2012 01:23:31 +0000]
usb: tegra: otg: fix unbalanced suspend/resume

Becasue of a previous workaround, suspend/resume pair is implemented as
suspend/complete pair in the driver's dev_pm_ops field.

If any driver suspend routine (which is called before otg suspend)
failed, then tegra_otg_resume() will be called even tegra_otg_suspend()
is not called. This will cause disable the OTG clock, and OTG will not
generate any more IRQ.

Ideal fix would be use suspend/resume pair to implement the dev_pm_ops,
but this might break previous workaround. This patch check suspend()
routine is called or not in the resume routine; even we use suspend/
resume pair in the future, it will not cause bad behaviour.

BUG 999759

Change-Id: I88f9c28bb76c5ff9e32917904017f291456cb933
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/108444
(cherry picked from commit c751aeea65f126d8e2df7f8a9ba02a631f958dc1)
Reviewed-on: http://git-master/r/108945
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agoiio: light: fix error handling for LTR558
Shridhar Rasal [Fri, 15 Jun 2012 09:13:33 +0000]
iio: light: fix error handling for LTR558

Change-Id: I34748241728bb0bab1861f8abacffdfe2939740f
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/109158
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoUSB: tegra: otg: Enable host by default
Krishna Yarlagadda [Wed, 13 Jun 2012 12:50:16 +0000]
USB: tegra: otg: Enable host by default

Host support should be disabled only when there is platform
data specifying proper setting.

Bug 998001

Change-Id: I99ff534074dd7ebbf12b53dcf53d6286925965d2
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/108760
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoMerge remote-tracking branch 'origin/dev/omp_bcmdhd_update_5_90_195_61' into promotio...
varun colbert [Fri, 15 Jun 2012 19:33:09 +0000]
Merge remote-tracking branch 'origin/dev/omp_bcmdhd_update_5_90_195_61' into promotion_build

7 years agosound: soc: tegra: fix compilation errors
Rhyland Klein [Wed, 30 May 2012 18:34:47 +0000]
sound: soc: tegra: fix compilation errors

Several compilation errors popped up when building the 3.1 kernel for
chrome. Warnings included callback structure changing and not being
updated in the max98095 codec driver and unused labels.

With these change I am able to compile in the max98095 codec support
and wm8903 without build errors.

Bug 986933

Change-Id: Ia8b2511f54b031eadcad8c74efa88be9288f25fb
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-on: http://git-master/r/105464
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoarm: tegra: configs: enable CONFIG_TUN
Om Prakash Singh [Thu, 14 Jun 2012 06:09:23 +0000]
arm: tegra: configs: enable CONFIG_TUN

Bug 997101
Signed-off-by: Om Prakash Singh <omp@nvidia.com>

Change-Id: I5da0bfe342193d93e021eb9a24aacb09bf38e6a0
Reviewed-on: http://git-master/r/108780
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: usb_phy: disable all interrupt for 2ls
BH Hsieh [Wed, 13 Jun 2012 12:14:57 +0000]
arm: tegra: usb_phy: disable all interrupt for 2ls

Disable all interrupts on current CPU
while doing 2ls to make sure the 3 us
delay being executed precisely

bug 944998

Change-Id: I645709ffdd2481a63223272e1b3f7f1f78466236
Reviewed-on: http://git-master/r/108536
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoarm: tegra: xmm: removing L3 state transition
Vinayak Pane [Thu, 17 May 2012 01:45:02 +0000]
arm: tegra: xmm: removing L3 state transition

Remove L3 state from xmm power driver. New usb phy code
allows pm state transition L0->L2 and L2->L0. When the
system goes in LP0/LP1 suspend then the modem power
state is kept at L2 and bus state in suspend controlled by
PMC. At system resume the hsic bus is given back to USB.

Bug 991709

Change-Id: Ib3b74d7da30a5103eddd747726ac7c4423472c76
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/108076
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agousb: serial: baseband_usb_chr kernel panic
pyu [Thu, 7 Jun 2012 14:55:39 +0000]
usb: serial: baseband_usb_chr kernel panic

Two threads race for two resources when baseband_usb_close()
get called from a user process

Bug 988188

Change-Id: Ic962640b6414e576d34b7ff6870b21b644837434
Signed-off-by: pyu <pyu@nvidia.com>
Reviewed-on: http://git-master/r/107088
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoarm: tegra: configs: enable CFG80211
Om Prakash Singh [Thu, 14 Jun 2012 13:53:27 +0000]
arm: tegra: configs: enable CFG80211

Bug 999876
Change-Id: I174d6d7495454f4b28f0315513d6f703743f832d
Signed-off-by: Om Prakash Singh <omp@nvidia.com>

7 years agoarm: tegra: configs: enable DHD_ENABLE_P2P
Om Prakash Singh [Thu, 14 Jun 2012 13:52:38 +0000]
arm: tegra: configs: enable DHD_ENABLE_P2P

Bug 999876
Change-Id: I174d6d7495454f4b28f0315513d6f703743f832d
Signed-off-by: Om Prakash Singh <omp@nvidia.com>

7 years agonet: wireless: bcmdhd: fix Makefile and Kconfig
Om Prakash Singh [Thu, 14 Jun 2012 09:51:19 +0000]
net: wireless: bcmdhd: fix Makefile and Kconfig

Bug 999876

Change-Id: I83a139e6c0dd42cf095fa2ac1376732075a15434

7 years agocfg80211: fix a crash in nl80211_send_station
Felix Fietkau [Thu, 11 Aug 2011 01:00:33 +0000]
cfg80211: fix a crash in nl80211_send_station

mac80211 leaves sinfo->assoc_req_ies uninitialized, causing a random
pointer memory access in nl80211_send_station.
Instead of checking if the pointer is null, use sinfo->filled, like
the rest of the fields.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

7 years agonet: wireless: bcmdhd: Fix P2P driver crash for MFG firmware
Leslie Yu [Tue, 29 May 2012 22:18:17 +0000]
net: wireless: bcmdhd: Fix P2P driver crash for MFG firmware

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

7 years agonet: wireless: bcmdhd: Make responce waiting uninterruptible
Dmitry Shmidt [Tue, 29 May 2012 22:05:33 +0000]
net: wireless: bcmdhd: Make responce waiting uninterruptible

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

7 years agonet: wireless: bcmdhd: Fix WPS PBC overlap failure
Neeraj Kumar Garg [Thu, 24 May 2012 19:19:18 +0000]
net: wireless: bcmdhd: Fix WPS PBC overlap failure

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

7 years agonet: wireless: bcmdhd: Ignore signal_pending() while waiting in IOCTL
Dmitry Shmidt [Wed, 16 May 2012 23:50:06 +0000]
net: wireless: bcmdhd: Ignore signal_pending() while waiting in IOCTL

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

7 years agonet: wireless: bcmdhd: Check return value from dhd_dev_init_ioctl()
Dmitry Shmidt [Wed, 16 May 2012 18:26:24 +0000]
net: wireless: bcmdhd: Check return value from dhd_dev_init_ioctl()

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

7 years agonet: wireless: bcmdhd: Fix WARN_ON(!res->pub.channel)
Dmitry Shmidt [Tue, 15 May 2012 20:20:25 +0000]
net: wireless: bcmdhd: Fix WARN_ON(!res->pub.channel)

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

7 years agonet: wireless: bcmdhd: Change singal pending return value from -110 to -4
Dmitry Shmidt [Tue, 15 May 2012 19:22:48 +0000]
net: wireless: bcmdhd: Change singal pending return value from -110 to -4

- ETIMEDOUT is interpreted as FW is not responding,
  so return EINTR instead

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

7 years agonet: wireless: bcmdhd: Fix filtering setting in case of P2P
Dmitry Shmidt [Thu, 10 May 2012 20:20:40 +0000]
net: wireless: bcmdhd: Fix filtering setting in case of P2P

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

7 years agonet: wireless: bcmdhd: Avoid turning radio UP twice on start
Dmitry Shmidt [Thu, 3 May 2012 17:34:15 +0000]
net: wireless: bcmdhd: Avoid turning radio UP twice on start

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

7 years agonet: wireless: bcmdhd: Set MMC_PM_KEEP_POWER flag on suspend
Dmitry Shmidt [Wed, 2 May 2012 21:25:59 +0000]
net: wireless: bcmdhd: Set MMC_PM_KEEP_POWER flag on suspend

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

7 years agonet: wireless: bcmdhd: Update to Version 5.90.195.61
Dmitry Shmidt [Tue, 1 May 2012 18:00:21 +0000]
net: wireless: bcmdhd: Update to Version 5.90.195.61

- Deauth frame from p2p GO to client doesn't go from firmware
  if we do del_virtual_iface immediately. Putting a delay after
  sending deauth frame to allowed FW to send out deauth frame.
- IF_DEL operation was timing out due to wrong status check.
  Fixed it and added few debug prints.
- Sending Provision Discovery directly to GO instead of doing
  an internal scan. Also put the internal scan count to 3 to have
  better timings for GO-NEG.
- Increase beacon timeout only for concurrent mode. For STA only
  operation, use the default beacon timeout value (4).
- If scan abort is due to timeout, aborting the scan in FW is not
  required. Moreover, as this scan_timeout call is coming in timer
  interrupt context, all blocking calls such as fw scan abort will
  result in kernel panic : don’t call abort in Firmware.
- Add p2p_cancel_listen routine. Fix p2p_listen_complete related
  kernel crash seen while turning off WiFi.

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

7 years agonet: wireless: bcmdhd: Turn OFF wlan power if interface UP fails
Dmitry Shmidt [Mon, 30 Apr 2012 23:34:01 +0000]
net: wireless: bcmdhd: Turn OFF wlan power if interface UP fails

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

7 years agonet: wireless: bcmdhd: Allow 80211_HT capability
Dmitry Shmidt [Thu, 12 Apr 2012 20:48:46 +0000]
net: wireless: bcmdhd: Allow 80211_HT capability

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

7 years agonet: wireless: bcmdhd: Fix improper band handling
Dmitry Shmidt [Tue, 10 Apr 2012 22:44:41 +0000]
net: wireless: bcmdhd: Fix improper band handling

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

7 years agonet: wireless: bcmdhd: Update to version 5.90.195.53
Dmitry Shmidt [Thu, 5 Apr 2012 21:49:13 +0000]
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>

7 years agonet: wireless: bcmdhd: Move FW hang processign to work queue
Dmitry Shmidt [Mon, 2 Apr 2012 17:27:13 +0000]
net: wireless: bcmdhd: Move FW hang processign to work queue

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

7 years agonet: wireless: bcmdhd: Fix FW hang recovery
Dmitry Shmidt [Mon, 2 Apr 2012 17:23:59 +0000]
net: wireless: bcmdhd: Fix FW hang recovery

- Reduce IOCTL responce timeout to 2 sec (from 20)
- Fix pending status in case of timeout
- Pass error code from dhd_is_associated() call
- Call cfg80211_disconnected() if no timeout detected

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

7 years agonet: wireless: bcmdhd: Fix frame sequence lag issue
Andrey Smolnikov [Mon, 2 Apr 2012 17:19:30 +0000]
net: wireless: bcmdhd: Fix frame sequence lag issue

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

7 years agonet: wireless: bcmdhd: Fix crash in dhd_preinit_ioctls() band set
Dmitry Shmidt [Thu, 29 Mar 2012 19:10:36 +0000]
net: wireless: bcmdhd: Fix crash in dhd_preinit_ioctls() band set

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

7 years agonet: wireless: bcmdhd: Add CONFIG_DHD_ENABLE_P2P Kconfig option
Dmitry Shmidt [Thu, 29 Mar 2012 19:09:23 +0000]
net: wireless: bcmdhd: Add CONFIG_DHD_ENABLE_P2P Kconfig option

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

7 years agonet: wireless: bcmdhd: Turn off DHD_USE_EARLYSUSPEND option
Dmitry Shmidt [Tue, 27 Mar 2012 20:45:55 +0000]
net: wireless: bcmdhd: Turn off DHD_USE_EARLYSUSPEND option

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

7 years agonet: wireless: bcmdhd: Update to Version 5.90.195.46
Dmitry Shmidt [Mon, 26 Mar 2012 20:30:33 +0000]
net: wireless: bcmdhd: Update to Version 5.90.195.46

- Fix WEXT compilation
- Start SoftAP in G-band only
- Fix IF_DEL timeout due to wrong status check
- Fix P2P to pass certification
- Enable arpoe in concurrent mode by default
- Fail to start sched scan in P2P GO

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

7 years agonet: wireless: bcmdhd: Add 'wlan_ctrl_wake' wakelock
Dmitry Shmidt [Wed, 21 Mar 2012 19:35:56 +0000]
net: wireless: bcmdhd: Add 'wlan_ctrl_wake' wakelock

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

7 years agonet: wireless: bcmdhd: Set probe_resp.timestamp value to scan results
Dmitry Shmidt [Wed, 21 Mar 2012 00:04:02 +0000]
net: wireless: bcmdhd: Set probe_resp.timestamp value to scan results

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

7 years agonet: wireless: bcmdhd: Add constant mDNS filter
Dmitry Shmidt [Tue, 20 Mar 2012 20:38:06 +0000]
net: wireless: bcmdhd: Add constant mDNS filter

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

7 years agonet: wireless: bcmdhd: Add WL_CFG80211_STA_EVENT config option
Dmitry Shmidt [Tue, 20 Mar 2012 20:08:13 +0000]
net: wireless: bcmdhd: Add WL_CFG80211_STA_EVENT config option

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

7 years agonet: wireless: bcmdhd: Update to Version 5.90.195.35
Dmitry Shmidt [Thu, 15 Mar 2012 19:47:26 +0000]
net: wireless: bcmdhd: Update to Version 5.90.195.35

- Add SoftAP auto-channel support
- P2P fixes

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

7 years agonet: wireless: bcmdhd: Fix mac setting from platform hook
Dmitry Shmidt [Tue, 13 Mar 2012 22:25:46 +0000]
net: wireless: bcmdhd: Fix mac setting from platform hook

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

7 years agonet: wireless: bcmdhd: Fix crash on timeout in wl_notify_escan_complete
Dmitry Shmidt [Tue, 13 Mar 2012 00:33:52 +0000]
net: wireless: bcmdhd: Fix crash on timeout in wl_notify_escan_complete

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

7 years agonet: wireless: bcmdhd: Add sched-scan config option
Dmitry Shmidt [Mon, 12 Mar 2012 22:45:04 +0000]
net: wireless: bcmdhd: Add sched-scan config option

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

7 years agonet: wireless: bcmdhd: Allow Improved suspend/resume processing on 2.6.39
Dmitry Shmidt [Mon, 5 Mar 2012 21:25:48 +0000]
net: wireless: bcmdhd: Allow Improved suspend/resume processing on 2.6.39

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

7 years agonet: wireless: bcmdhd: Always turn Off wlan power on interface down
Dmitry Shmidt [Mon, 5 Mar 2012 18:17:06 +0000]
net: wireless: bcmdhd: Always turn Off wlan power on interface down

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

7 years agonet: wireless: bcmdhd: Add SETSUSPENDMODE command
Dmitry Shmidt [Tue, 28 Feb 2012 19:03:37 +0000]
net: wireless: bcmdhd: Add SETSUSPENDMODE command

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

7 years agonet: wireless: bcmdhd: Minor cleaning
Dmitry Shmidt [Tue, 28 Feb 2012 18:30:59 +0000]
net: wireless: bcmdhd: Minor cleaning

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

7 years agonet: wireless: bcmdhd: Add SET_RANDOM_MAC_SOFTAP option
Dmitry Shmidt [Mon, 27 Feb 2012 23:51:56 +0000]
net: wireless: bcmdhd: Add SET_RANDOM_MAC_SOFTAP option

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

7 years agonet: wireless: bcmdhd: Update to Version 5.90.195.30
Dmitry Shmidt [Mon, 27 Feb 2012 22:02:51 +0000]
net: wireless: bcmdhd: Update to Version 5.90.195.30

- Fix STA features if P2P FW is in use
- Move ENABLE_P2P_INTERFACE to Makefile
- Minor fixes in PNO scan

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

7 years agonet: wireless: bcmdhd: Update to Version 5.90.195.28
Dmitry Shmidt [Mon, 27 Feb 2012 20:35:15 +0000]
net: wireless: bcmdhd: Update to Version 5.90.195.28

- Improve scan for p2p
- Use use_rxchain support
- Use WL_WIRELESS_EXT instead of CONFIG_WIRELESS_EXT
- Initial sched_scan support

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

7 years agonet: wireless: bcmdhd: Turn interface down (only) in case of FW crash
Dmitry Shmidt [Thu, 23 Feb 2012 18:36:40 +0000]
net: wireless: bcmdhd: Turn interface down (only) in case of FW crash

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

7 years agonet: wireless: bcmdhd: Fix driver hang when resetting
Mike J. Chen [Thu, 16 Feb 2012 05:54:57 +0000]
net: wireless: bcmdhd: Fix driver hang when resetting

bus->tx_max was not being initialized when we do a reset and
the driver is statically linked.  this led to about a 50%
chance that it would be considered an illegal value when
we send the mac address to the FW.  add code to initialize
it to a safe value until we receive the right value from the fw.

Bug: 5974574

Change-Id: I28ab25d97203ef075e5354c25f85a25daaff5594
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>