summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2012-03-30tty: serial: core: Fix console resume for PORT_TEGRAPradeep Kumar
WAR to enable console prints when console service is not started for port type TEGRA. Bug 958959 Change-Id: I51e582d16195171f1f8bae9324e2ddece4638281 Signed-off-by: Pradeep Kumar <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/92814 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Joshua Cha <joshuac@nvidia.com> Tested-by: Joshua Cha <joshuac@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-03-30usb: ehci: tegra: add suspend_fail flagRakesh Bodla
Adding the suspend_fail flag to proprogate the bus suspend failure to the ehci suspend. This ensure the proper synchronization between two suspend calls. Bug 932020 Reviewed-on: http://git-master/r/92286 (cherry picked from commit 9548deb7f4dfda95067731744b3122a47be3f654) Change-Id: I00cc062888fcf7085be7aa3556ae500e0e457cd1 Reviewed-on: http://git-master/r/93130 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-03-30usb: otg: tegra: code clean upVenu Byravarasu
Modified multiple if conditions to switch case. Included a new OTG state case: undefined Change-Id: Iba4cf1a79b8c220fc873966bd8a89f43a5648863 Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-on: http://git-master/r/92832 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-03-30usb: host: tegra: code clean upVenu Byravarasu
With this patch: 1. Renamed structure and function names to be more meaningful. 2. Removed unnecessary local variables. Change-Id: I0684d840c1b8c606c1643e1e2517e083be825787 Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-on: http://git-master/r/92817 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-03-30video: tegra: dc: remove obsolete overlay interfaceJon Mayo
Remove old overlay interface, it is replaced with TEGRA_DC_EXTENSIONS External functions made static now that overlay.c no longer needs them. Change-Id: I5d080ceb19ad90d3b5cc4bf20494c967687293a5 Signed-off-by: Jon Mayo <jmayo@nvidia.com> Reviewed-on: http://git-master/r/92661 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Chao Xu <cxu@nvidia.com> Reviewed-by: Robert Morell <rmorell@nvidia.com> Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-by: Michael I Gold <gold@nvidia.com> Reviewed-by: Markus Holtmanns <mholtmanns@nvidia.com>
2012-03-30power: smb349: resolve compilation time warningsSanjay Singh Rawat
bug 949219 Change-Id: I56904b3607c92281076ae3245ee1071922763eb8 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/92557 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Gerrit_Virtual_Submit
2012-03-30i2c: tegra: Correct 10bit address configurationLaxman Dewangan
The slave address of device to be configured in packet header as follows: 7 bit address: PacketHeader3[7:1] 10 bit address: PacketHeader3[9:0] Fixing the code to make packet header3 properly. Change-Id: I1797066d23ada5d4d7b14710201a1fb17566b78b Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/92556 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Andy Carman <acarman@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
2012-03-30input: keyboard: remove interrupt_key driverLaxman Dewangan
Removing interrupt key driver as this duplicates the gpio_keys driver. Desired functionality can be achieve through the gpio_keys. Change-Id: I7e5bc18d4b30c64fa08bb64cdceffe2193c43c8f Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/92462 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2012-03-30video: tegra: host: Remove pre-check in syncpt waitTerje Bergstrom
Remove the check and debug dump for cases where we compare against an old syncpt value. Also removes an extra check that is already done by wait_event_interruptible_timeout(); Bug 941327 Change-Id: Icbaf70b04a8bd070c3fdd3467b981de11219d2b9 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/92283 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2012-03-30video: tegra: nvmap: Refactor page pool code.Krishna Reddy
Refactor page pool code. Add page pool support for all memory types. Add support to enable/disable page pools. Add support to allow configuring page pool size. Change-Id: I07c79004542efdd5909547928b3aa5d470e38909 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/91914 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com>
2012-03-30usb: gadget: fsl_udc_core: Properly return the self-powered bitahcheng
This patch fixes the GetStatus always reports self powered. As per USB compliance update, a device that is actively drawing more than 100mA from USB must report itself as bus-powered in the GetStatus(DEVICE) call. Bug 928340 Change-Id: Iefd1577a2ff2f301add98b14a402ed8eacc3aa28 Signed-off-by: ahcheng <ahcheng@nvidia.com> Reviewed-on: http://git-master/r/91404 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-03-30mtd: chips: support for the new CFI version 1.5 and write buffer programmingManoj Chourasia
This patch add CFI version 1.5 support. It replaces classic word programming by write buffer programming and sets the FFS write size to 512 bytes. The patch taken from spansion bug 906309 Reviewed-on: http://git-master/r/89412 (cherry picked from commit 733c7ef4b9bdc52ac95095436a5cf83aa0296da5) Change-Id: I63cbd0bad077e055d6efd4e2b4c7d26c608d1b66 Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com> Reviewed-on: http://git-master/r/91307 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Amlan Kundu <akundu@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-03-30mmc:host: add pm_caps and pm_flags to platform dataMursalin Akon
Initialize pm_caps and pm_flags through platform data. Bug 956238 Change-Id: I400f6e92541fa2e63ccc7f829e204d5eef4697fc Signed-off-by: Mursalin Akon <makon@nvidia.com> Reviewed-on: http://git-master/r/90790 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Gerrit_Virtual_Submit Reviewed-by: Allen Martin <amartin@nvidia.com>
2012-03-30net:wireless:bcmdhd: Add BCM4330 chip IDMursalin Akon
Add ID of BCM4330 to supported chips. Remove ID of BCM4329 as it is not supported. Bug 956238 Change-Id: I5c9e809245161d76c3decab3e5252ce111a2a07d Signed-off-by: Mursalin Akon <makon@nvidia.com> Reviewed-on: http://git-master/r/90657 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Gerrit_Virtual_Submit Reviewed-by: Allen Martin <amartin@nvidia.com>
2012-03-30rtc: tps80031: Enable RTC interrupt appropriatelyVenu Byravarasu
Observed interrupt not getting enabled properly. hence fixing it. bug 937221 Change-Id: If852c9cd40fc98711fe12a124b533ee8ee99eb3c Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-on: http://git-master/r/83992 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-03-30video: tegra: host: do not assume 3d channel opened by user spaceMayuresh Kulkarni
- if user space does not open 3d channel, 3d scaling algorithm is not initialized. so return safely when 3d scaling is disabled - also do not call nvhost_module_suspend() explicitly for host1x client modules. nvhost_channel_suspend() takes care to suspend the module if ref count = 0 - call nvhost_module_suspend() only for host1x device as it does not use actual hardware channel Bug 953451 Change-Id: Iba2b771b71d9b41c8ed978112566181872c56259 Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/92506 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Peer Chen <pchen@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Emily Jiang <ejiang@nvidia.com>
2012-03-30usb: gadget: fsl_udc: Remove regulator error messagePreetham Chandru
Print only a warning message if usb_bat_chg regulator is not registered. Some boards do not support usb charging and for such boards usb_bat_chg regulator will not be registered. Hence print only a warning message in such cases. Bug 956558 Signed-off-by: Preetham Chandru <pchandru@nvidia.com> Change-Id: I64c727f122c09d3865d649f3529b053bc65615ad Reviewed-on: http://git-master/r/91521 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-03-29net:wireless:bcmdhd: rename bcmsdh_remove & bcmsdh_probeMursalin Akon
rename bcmsdh_remove & bcmsdh_probe to *_bcmdhd to resolve symbol conflicts with bcm4329 driver. Bug 956238 Change-Id: I750238ddf9b3a0d9ff9583a7ec456aceef28531c Signed-off-by: Mursalin Akon <makon@nvidia.com> Reviewed-on: http://git-master/r/90656 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Gerrit_Virtual_Submit Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Allen Martin <amartin@nvidia.com>
2012-03-29video: tegra: add cursor mode flippingAdam Cheney
This change adds a flag to flip windows in cursor mode. Cursor mode will cause flips to be skipped over if there are newer flip requests waiting in the workqueue. Add CURSOR_MODE to caps bitfield. bug 942762 Change-Id: Ib52a0a5565f961cdd9650e4204cd65b86f96fee1 Signed-off-by: Adam Cheney <acheney@nvidia.com> Reviewed-on: http://git-master/r/90418 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Robert Morell <rmorell@nvidia.com>
2012-03-26Input: gpio_keys - add support for interrupt only keysLaxman Dewangan
Some of buttons, like power-on key or onkey, may only generate interrupts when pressed and not actually be mapped as gpio in the system. Allow setting gpio to invalid value and specify IRQ instead to support such keys. The debounce timer is used not to debounce but to ignore new IRQs coming while button is kept pressed. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Cherry-picked from mainline d8ee4a1c90529ed06e1aa43d034986649f7b670b Change-Id: Ibf8e407351082d816dd051d2c69a4a1a7caa70e7 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/92321 Reviewed-by: Automatic_Commit_Validation_User
2012-03-26Input: gpio_keys - consolidate key destructor codeDmitry Torokhov
Signed-off-by: Dmitry Torokhov <dtor@mail.ru> (cherry picked from commit a16ca23935afc0d72215b139720bd07df3162a9f) Change-Id: I90ae154a3b124fad0e9320ac5d9d8083175461b5 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/92320 Reviewed-by: Automatic_Commit_Validation_User
2012-03-26Input: revert "gpio_keys - switch to using threaded IRQs"David Jander
request_any_context_irq() should handle the case when using GPIO expanders that themselves use threaded IRQs, and so the premise of change 7e2ecdf438bb479e2b4667fc16b1a84d6348da04 is incorrect. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> (cherry picked from commit 6709c9a5d8c53092cbe89128df4e0a549e93133b) Change-Id: I0b4267f6493483c2edc9926f48ecda68d863bead Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/92319 Reviewed-by: Automatic_Commit_Validation_User
2012-03-26Input: gpio_keys - constify platform dataDmitry Torokhov
The platform data should not be altered and therefore should be accessed through const pointers. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Cherry-picked from d9080921aa32c70a95476ce387e973787b892591 Change-Id: I5791f831909d4417a5c2732e310630c97c42f4a9 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/92318 Reviewed-by: Automatic_Commit_Validation_User
2012-03-26Input: gpio_keys - use of_property_read_u32()Tobias Klauser
Use the of_property_read_u32() helper function to retrieve u32 values from the device tree. Also do not pass the len parameter to of_get_property if it isn't checked afterwards. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Dmitry Torokhov <dtor@mail.ru> (cherry picked from commit cca84699a079a91b0a0cb4f2da8548e56859376a) Change-Id: I265e0cdc8b761572d1c78d699d761097be26a4e4 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/92317 Reviewed-by: Automatic_Commit_Validation_User
2012-03-26crypto: tegra-aes: save key during key callSanjay Singh Rawat
Save the key in hardware when the key setting call comes. Currently it is set at later time. Bug 917607 Change-Id: Ibdacb07c16c161eeba00eda6716884518e40c40a Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/90072 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-03-26usb: gadget: tegra: Fence read for AHB memory coherencyRakesh Bodla
Fix memory coherency of AHB Master-initiated writes to DRAM by reading the fence registers to make sure memory is flushed to DRAM from the MC/EMC. Bug 729267 Bug 952405 Change-Id: I96454fa43b58778d15095de2edb42e9dac1547d2 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-on: http://git-master/r/88285 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-03-26usb: ehci: tegra: Fence read for AHB memory coherencyRakesh Bodla
Fix memory coherency of AHB Master-initiated writes to DRAM by reading the fence registers to make sure memory is flushed to DRAM from the MC/EMC. Bug 729267 Bug 952405 Change-Id: Ia60ee6796e53de6ece89e7e2ad531009a2fe5f00 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-on: http://git-master/r/88284 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-03-26tty: serial: 8250: use postcore_initcall instead of module_initVarun Wadekar
When the driver is not built as a module, use postcore_initcall instead of module_init. This allows us to get the console prints very early during the kernel boot process. Bug 928931 Change-Id: Icbf60476f76486511237b72f5c53656ff7931676 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/76518 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-03-23video: tegra: host: use bus_for_each_dev for channel debug outputMayuresh Kulkarni
- this patch uses the iterrator bus API to print the channel status on debug-fs output - it is the first step for removal nvhost_master holding pointers to all the channels Bug 871237 Change-Id: I2eaf8f0124512f1bc1ea9bbbe71d2c112b1947d2 Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/91676 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2012-03-23video: tegra: host: Split submit into subfunctionsTerje Bergstrom
Split host1x_channel_submit() into subfunctions. Bug 926690 Change-Id: I8be55cbc9d25ee76c758a918de4a9bb27e2ea846 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/90626 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2012-03-23rtc: tps80031: Fixing POR month comparisonVenu Byravarasu
As month calculation is modified to fix bug 931452 and POR comparison for month is not updated, fixing it. bug 951622 Change-Id: Ifd906b48c51b155809ed88892579e9dd14abd5a0 Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-on: http://git-master/r/89663 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-03-23mfd: Build rtc5t583 only if I2C config is selected to y.Laxman Dewangan
Fixing build error reported by Stephen Rothwell: drivers/built-in.o: In function `rc5t583_i2c_init': rc5t583.c:(.init.text+0xb3db): undefined reference to `i2c_register_driver' drivers/built-in.o: In function `rc5t583_i2c_probe': rc5t583.c:(.devinit.text+0x8fa0): undefined reference to `regmap_init_i2c' drivers/built-in.o: In function `rc5t583_i2c_exit': rc5t583.c:(.exit.text+0x708): undefined reference to `i2c_del_driver' Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> (cherry picked from commit 5364d0b8640dd15e5c0b3ba40d0e874764b1bc88) Change-Id: If1cfde6c6e0e52b4e55b07401afcd91a895b8905 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/91799 Reviewed-by: Automatic_Commit_Validation_User
2012-03-23mfd: Add support for RICOH PMIC RC5T583Laxman Dewangan
Ricoh power management IC RC5T583 contains is multi functional device having multiple sub devices inside this. This device has multiple dcdc/ldo regulators, gpios, interrupt controllers, on-key, RTCs, ADCs. This device have 4 DCDCs, 8 LDOs, 8 GPIOs, 6 ADCs, 3 RTCs etc. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Cherry-picked from mainline 1b1247dd75aa5cf5fae54a3bec7280046e9c7957 Change-Id: I5d3bcfb45e232a1a9a210ec14815356ae1918c5d Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/91798 Reviewed-by: Automatic_Commit_Validation_User
2012-03-23i2c: tegra: Remove synchronization between init and isrChaitanya Bandi
Removed unnecessary synchronization between init and isr because clock driver is making sure that any operations will be completed before disabling the driver clock. Change-Id: I545e48be73697e023fedb8c663402c15e2a472df Signed-off-by: Chaitanya Bandi <bandik@nvidia.com> Reviewed-on: http://git-master/r/91779 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-03-23net: usb: raw-ip: rx / tx statisticsShawn Joo(Seongho)
Add rx, tx, error statistics feature Bug 932703 Change-Id: Ic7a6232dd3b48feff2b064fcff8f0d146b1e9902 Signed-off-by: Shawn Joo <sjoo@nvidia.com> Reviewed-on: http://git-master/r/89305 Tested-by: Gerrit_Virtual_Submit Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-03-23video: tegra3: dc: remove hard coded HDMI ratesShashank Sharma
Set dc clock rate dynamically to requested pixel rate. Using modes specified in monitor's EDID data. Return mode set errors on unsupported clock tolerances. Bug 931908 Change-Id: I60990ecbc2fbeab542987036b8ccc30b8dababe8 Signed-off-by: Shashank Sharma <shashanks@nvidia.com> Reviewed-on: http://git-master/r/86073 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-03-22video: tegra: nvavp: Fix for high SMMU apartureKaz Fukuoka
- With this fix NVAVP works with CONFIG_TEGRA_SMMU_BASE_AT_E0000000. Change-Id: I9c267bc9b008a57f6f0cc4e9b27dbee0501e6a77 Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com> Reviewed-on: http://git-master/r/91316 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-03-22video: tegra: dc: VGA modes in supported mode listShashank Sharma
Add following VGA video modes in tegra_dc_hdmi_supported_modes list: Resolution Refresh rate(Hz) ----------- ---------------- 640x480 75 720x400 59 800x600 60 800x600 75 1024x768 75 1024x768 60 1152x864 75 1280x800 60 1280x960 60 1280x1024 60 1368x768 60 1440x900 60 1600x1200 75 1680x1050 60 Add CVT representation of all above modes to make sure they pass all the HDMI constraints. Add a new function tegra_dc_reload_mode to pick up CVT representation of matching mode. Bug 883911 Signed-off-by: Shashank Sharma <shashanks@nvidia.com> Change-Id: I5227644207d38ca83a0452d3c078ef202e40a508 Reviewed-on: http://git-master/r/89126 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Kiran Adduri <kadduri@nvidia.com> Reviewed-by: Jon Mayo <jmayo@nvidia.com>
2012-03-21video: tegra: dc: disable disp.emc clock when 0 new rate is requestedNitin Kumbhar
Not disabling emc clock when it's being set to zero results in incorrect reference count when a call is made to clear bandwidth. This happens when two worker threads try to handle dc emc rate. A deep-sleep/wake-up cycle easily shows this scenario. With this fix, disp.emc's ref count is properly managed even after multiple deep-sleep/wake-up cycles. Bug 947228 Change-Id: I045fafbd483af1e3d492b8d0395275e45642d059 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: http://git-master/r/90100 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-03-21video: tegra: host: Correct waitchk comparison logicTerje Bergstrom
Change waitchk comparison logic to use the new nvhost_syncpt_is_expired(). Bug 941327 Change-Id: Ib7de04ad7663990bb416e39f8d79a46a9f5955fa Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/89769 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-03-21Bluetooth: remove DEBUG macro from btwilink driverNagarjuna Kristam
Change-Id: I1721115a1d500f1101c856809ec3fd3ac4a3fe67 Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com> Reviewed-on: http://git-master/r/89409 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-03-21cpufreq: Typecast compared integersAntti P Miettinen
The min/max frequencies in cpufreq_policy are unsigned integers but pm_qos_request() returns a signed int. Compare as unsigned, frequencies are never negative. Bug 949219 Change-Id: Iba0de9ad6bf221f7a2e5560f597aa56cbeb7b6f6 Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com> Reviewed-on: http://git-master/r/91214 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2012-03-21cpufreq: set go_maxspeed_load to 85%Shridhar Rasal
To get better performance setting it to 85% from 95% bug 941275 Change-Id: I08bc711ea159d070cf6b62ce25506c8a5bdd7ac4 Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-on: http://git-master/r/91159 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-03-21video: tegra: host: refactor for upstreamingMayuresh Kulkarni
- split the nvhost clients into their own directories - each client is a nvhost_device and nvhost_driver - all the code related to host1x control node is centralized at single place in dev.c - all the code related to host1x modules nodes is centralized at single place in bus_client.c - update the copyright notice & year for new files Bug 871237 Change-Id: Ief85064699e35ad02b48a7e54496928d7f085af4 Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/83491 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-03-20cpufreq: update target freq alwaysShridhar Rasal
set determined target freq always bug 941275 Change-Id: If72936ed145867abd32b43c5c5100290df2fc187 Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-on: http://git-master/r/91010 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Satya Popuri <spopuri@nvidia.com> Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-03-20video: tegra: dsi: Clear host trigger bit explicitly on fifo emptyAnimesh Kishore
dsi HW does not clear host trigger bit automatically on dsi interface disable if host fifo is empty. This leads to hang. Clearing the bit explicitly. Bug 930453 Change-Id: Id24359dc274f187f8ac634ad838ef4a6a29a6a5e Signed-off-by: Animesh Kishore <ankishore@nvidia.com> Reviewed-on: http://git-master/r/90043 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2012-03-20arm: tegra: nvmap: Update nvmap_alloc api.Krishna Reddy
Update nvmap_alloc api to take heap_mask as arg. This is to let clients specify the specific heap needed. Change-Id: I9950b3e60e6dac0301b6dc66be3e9d0bab8e0fee Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/90471 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2012-03-20video: tegra: host: Fix sync point comparisonTerje Bergstrom
Fix sync point comparison to take into account old expired values, and do proper comparison taking into account wrapping. Bug 941327 Change-Id: I70724637ba870b2e29bac695abc0ea2b968394d7 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/84808 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ilan Aelion <iaelion@nvidia.com> Reviewed-by: Acorn Pooley <apooley@nvidia.com>
2012-03-19video: tegra: nvmap: Optimze nvmap page pool shrink timeKrishna Reddy
Bug 925987 Change-Id: Ifab4e515c7dd06b92d798e7eb93094c35e02b878 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/89414 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-03-19Drivers: MTD: NAND: restore to the NAND controllerRamalingam C
On entering the power saving mode NAND controller registers are getting reset. With this change resume will restore the controller registers' values. Bug 933291 Change-Id: Ia1a43827b4b4a91ab1383bf07c3c0fe3068b666b Signed-off-by: Ramalingam C <ramalingamc@nvidia.com> Reviewed-on: http://git-master/r/90883 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-by: Preetham Chandru <pchandru@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>