summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-05-25tegra: Disabling the EC keyboard and mouse driver for E1206tegra-9.12.12.1Laxman Dewangan
The E1206 based platform does not support the EC keyboard and EC mouse. Returning fail in the initialization of the EC keyboard and mouse driver init. Tested that it worked properly on Harmony and do not get enabled in E1206 based platform. Change-Id: Ib487715cda3d82d8c1fff8d5b34a572e0d81fbe7 Reviewed-on: http://git-master/r/1479 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Jitendra Aditya Lanka <jlanka@nvidia.com> Tested-by: Jitendra Aditya Lanka <jlanka@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-05-25tegra framebuffer - dsi one shot supportArthur Spence
DSI one shot support requires register access in the tegra framebuffer to poke the frame trigger bit (with both the trigger bit and the tearing effect signal are high, a frame of pixels will be sent to the panel). The boot args must also be expanded to have a "use tearing effect" flag. Change-Id: Id0c3960cac5b59dd23fd6547f1b7dae4d422ac32 Reviewed-on: http://git-master/r/1460 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Arthur Spence <aspence@nvidia.com>
2010-05-24tegra apb dma: Adding support for SPI4.Laxman Dewangan
Adding the support for the SPI4 as the apb dma requestor. Tested on whistler with spi unit testcase, on harmony with playback. Change-Id: Ib16dcb8f9eaec47d7b27026e2c2e576373df7e6a Reviewed-on: http://git-master/r/1374 Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-24tegra: Fix potential data abort if module doesn't existScott Williams
Change-Id: I453606faa4edb4668a351dea8303ba83910923d1 Reviewed-on: http://git-master/r/1465 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-05-22tegra RM: added busy hints pool (bug 686569).Alex Frid
Change-Id: Ic018767fff54472f97ab74ab71988ab3cdf5b981 Reviewed-on: http://git-master/r/1426 Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com> Tested-by: Venkata (Muni) Anda <vanda@nvidia.com> Reviewed-by: Daehyoung Ko <dko@nvidia.com> Tested-by: Daehyoung Ko <dko@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-22tegra ODM: Changing the Rainbow 570 modem power on pulse time.Steve Lin
Rainbow 570 modem requires power on pulse more than a second. This change increases the power on plus time and correct the DAP connection table for Rainbow 570. The Rainbow1 modem also works after the pulse time change. Bug 640843 Change-Id: I194c9d84a9a10bbb3bc3e14eea53f18a9a54ed6a Reviewed-on: http://git-master/r/1431 Tested-by: Szming Lin <stlin@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-21nvmap: tighten handle validation before pinningAnssi Kalliolahti
Do not allow pinning handles without local context anymore (this was a special case and is not needed anymore). Also, added check for handle poison before pinning. This prevents kernel panic (BUG_ON in _nvmap_handle_pin_locked) when trying to pin already freed handle. Change-Id: Iabf408c182aa0907596957233169568abedbbb1f Reviewed-on: http://git-master/r/1449 Reviewed-by: Antti Rasmus <arasmus@nvidia.com> Tested-by: Anssi Kalliolahti <akalliolahti@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-20tegra: added delay to avoid hang after Lp0 resumeNarendra Damahe
Bug 679959 Change-Id: Id541c2f51fe2e0cb2c4cbb08aafbcb53da251218 Reviewed-on: http://git-master/r/1468 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-20tegra:adding timeout for graceful exitNarendra Damahe
Bug 679959 Change-Id: I71324cc89b4e3031ecc94ee5c05ba6193bab6533 Reviewed-on: http://git-master/r/1463 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-20tegra usb-phy: Enable/disable Clock Over On bit for all controllersVenkat Moganty
Enable Clock Over On bit for all three controllers during phy resume and disable during the suspend. Added timeout for the phy clock wait loops. Bug 679959 Tested on Ap20/Harmony. Change-Id: I3219946e6351c8ddf5e036dfc3a3f2b3693e99a6 Reviewed-on: http://git-master/r/1455 Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-20tegra-l2x0: atomic cache shutdownJitendra Lanka
Sometimes during the cache shutdown process, USB interrupts causing cache maintainance ops are leading to system crash. To avoid this, we disable interrupts before cache shutdown and enable them afterwards. Bug 673802 - Warm boot stress test failed on Harmony Tested on: Harmony Change-Id: Ieb9d9e92bbdd441b875844d8fa659b0795a09455 Reviewed-on: http://git-master/r/1438 Tested-by: Jitendra Aditya Lanka <jlanka@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-20tegra timers: Added safety net for SMP tick handover.Alex Frid
Made sure that jiffies update duty is not stuck with off-line CPU: if this situation is detected, re-assign the tick ownership respectively (should fix bug 683277). Replaced spin-locks in timer access code with local interrupt control: local timers are "local", and do not need interprocessor protection. Change-Id: Ib0d690d8558724f7da384aba8b5cdf3d5ea8fdbb Reviewed-on: http://git-master/r/1415 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-20nvmap: fix unpin/pin race condition with RECLAIM_UNPINNED_VMAntti Hatala
_nvmap_handle_unpin needs to acquire the mru_vma_lock before decrementing the pin count, to ensure that a decrement to zero and insertion on the MRU VMA list appears atomic with respect to a second client calling _nvmap_handle_pin on the same handle; otherwise, the two clients race and the pin operation may trigger a BUG because the handle has a valid IOVMM area but is not located on any MRU VMA list. also, clean up some additional allocation-inside-spinlock issues; release the MRU VMA lock before calling tegra_iovmm_create_vm, and reacquire the lock after returning. Change-Id: If3a32e493a9222eac56a0980c10c0d4281389e7e Reviewed-on: http://git-master/r/1448 Tested-by: Antti Hatala <ahatala@nvidia.com> Reviewed-by: Antti Hatala <ahatala@nvidia.com>
2010-05-19tegra kernel: Fixed version mismatch error.vdumpa
Bug 687750 Fixed version mismatch error between prebuilt kernel modules and locally built zImage files. Change-Id: Ia7d2f08270eab00d94359e085e807d15cb43b86a Reviewed-on: http://git-master/r/1446 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Tested-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-05-19fsl udc: Add support for USB test mode feature.Venkat Moganty
Adding support for USB-IF High Speed electrical test mode for device mode. Support added for electrical test modes: 1. TEST_J 2. TEST_K 3. TEST_SE0_NAK 4. TEST_PACKET 5. TEST_FORCE_ENABLE Bug 675483 Bug 649012 Tested on AP20/Whistler and AP20/Harmony with USB HS electrical test tool. Change-Id: Iabb91e8a7fdda5eb4e95141390f4e9785a5a8a99 Reviewed-on: http://git-master/r/1345 Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com> Tested-by: Ramachandrudu Kandhala <rkandhala@nvidia.com> Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-19Setting MMC_CAP_MMC_HIGHSPEED in host capabilities.Pavan Kunapuli
Setting MMC_CAP_HIGHSPEED in host capabilites to detect high speed eMMC cards, set high speed mode and configure maximum supported clock frequency(52MHz). Bug 687587: eMMC device is not detected as a high speed device. Tested on: AP20 Android with boot from eMMC. Change-Id: I664659aa9edad34518a0a74dee01534309de4af9 Reviewed-on: http://git-master/r/1421 Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-19tegra usb-phy: Fix UTMI/ULPI LP0 issues.Venkat Moganty
UTMIP pads were turned off before the UTMI phy is set in to the suspend mode. This is corrected by turning off the UTMIP power control pads after phy is suspended. Added workaround for ULPI to bring out of suspend by setting USB2_CLK_OVR_ON bit in CLK_RST_CONTROLLER register. Bug 679959 Tested on Ap20/Harmony with Lp0 suspend/resume tests. Change-Id: I6519568f20c4cd859c198d82c2a3007305a61317 Reviewed-on: http://git-master/r/1413 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-19tegra: enable MODVERSIONS for Harmony & Whistler LDKAntti Rasmus
Change-Id: I3866ba5a1f13b50051b2c3a4424d80ccd39ce1ca Reviewed-on: http://git-master/r/1440 Reviewed-by: Janne Hellsten <jhellsten@nvidia.com> Tested-by: Janne Hellsten <jhellsten@nvidia.com>
2010-05-18tegra power: Don't power gate the TD partition.tkasivajhula
Occasionally, ungating the TD partition when exiting LP0 causes the entire system to crash. This WAR avoids this issue by keeping the TD partition always on. Change-Id: I20e09b3014feb011f922e654e2fb6d28a956d693 Reviewed-on: http://git-master/r/1435 Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Tested-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-18Enable ftrace using gcc 4.4 calling conventions.Simo Melenius
This is a patch from http://marc.info/?l=linux-arm-kernel&m=124946219616111&w=2 that enables ftrace on ARM linux-2.6.29 by supporting newer gcc 4.4 calling conventions. See discussion in http://nvbugs/674756. Change-Id: I46c84ef6d9c025f5c56db5cd3934283e1a7a07d2 Reviewed-on: http://git-master/r/1147 Reviewed-by: Gary King <gking@nvidia.com> Reviewed-by: Simo Melenius <smelenius@nvidia.com> Tested-by: Simo Melenius <smelenius@nvidia.com>
2010-05-17[ARM/tegra] usbphy: partial revert of assignment != comparisonGary King
the assignment to hDdkUsbPhy->IsHostMode was intentional; rewrite the code to make this clearer Change-Id: Ifc881397c240049b7c0a4300ae3267be397bfda5 Reviewed-on: http://git-master/r/1420 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-05-17tegra mmc: enable MMC_UNSAFE_RESUME config for tegra_harmony_androidDeepesh Gujarathi
Normally, when the system goes into suspend, all the storage cards are removed and later re-enumerated upon resume. During re-enumeration the device name and number are not guaranteed to be the same as they were during bootup. This can cause data corruption on cards. When the MMC_UNSAFE_RESUME config is enabled, it will prevent kernel from unmounting the mmc cards before suspend. Upon resume the cards will still be using the same device id as they were before suspend. This change seems to fix a lot of mmc related issues that occur during LP0 transitions. partial fix for Bug 679959 Change-Id: Ib90f95ebbc81c5b6e9e83e740ece31f914a262eb Reviewed-on: http://git-master/r/1412 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-17[ARM/tegra] usbphy: assignment != comparisonGary King
Change-Id: Id3d6b1575329b3ad1a763488a442449774f9d4e1 Reviewed-on: http://git-master/r/1414 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-17tegra-kernel-fuse: Add fuse burning support from Linux via sysfsVenu Byravarasu
A fuse module is added to support programming and reading back fuse values. This module is built as part of kernel. Bug 657504 Tested on: Whistler Change-Id: I5663679c8d41834aa4077e9940a0595f6575af64 Reviewed-on: http://git-master/r/1259 Reviewed-by: Andy Carman <acarman@nvidia.com> Tested-by: Andy Carman <acarman@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-17tegra power: Workaround for daemon crash.tkasivajhula
Put the AVP suspend operation in the kernel. It appears that someone in userspace is still active after nvrm_graphics has suspended. Change-Id: Ie3b67478d502c8af5fd25a141d362409f737ffc3 Reviewed-on: http://git-master/r/1404 Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Tested-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-15tegra:Power Good Timer value change for HarmonyNarendra Damahe
Bug 679959 Change-Id: I60f183280f650bf5238bfdb944d5dd112832ad4d Reviewed-on: http://git-master/r/1403 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Tested-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-15tegra serial: Removing the compilation warning.Laxman Dewangan
Fixing the statement which is producing the warning. Compiled without warning, tested with harmony BT-A2dp. Change-Id: I7540653522124aa93b5afc8551a07e8322b37316 Reviewed-on: http://git-master/r/1381 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-14[ARM/tegra] Enable DEVNVMAP_RECLAIM_UNPINNED_VM in androidSachin Nikam
Enable GART virtualization in android Bug 678065 texture_alloc test is run to verify this. Change-Id: Ic2c3b32b9c6c1a090f2c7884d24123ce38558e68 Reviewed-on: http://git-master/r/1376 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-05-14tegra kbc: Sw interface to set debaunce time in clock ticks.Laxman Dewangan
It is require to set the debaunce time in terms of clock tick granularity. 1 clock tick is 1/32 ms. The granulairty of 1ms is too much to tune the key scanning performance. Bug 684129 Change-Id: Ida7ca5c07ca1d6aa8f8aee57b243aea32baca38a Reviewed-on: http://git-master/r/1383 Reviewed-by: Hu He <hhe@nvidia.com> Tested-by: Hu He <hhe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-14tegra ehci: Shutdown ehci only when host is in operationRama Kandhala
During ehci shutdown, the driver accesses the controller registers and hence it powers up the phy. It is observed that during re-powering as part of shutdown, there is a hang while accessing ULPI view_port register. Preventing this by modifying ehci shutdown code to shutdown only when the ehci is in operation. Bug 685566 Change-Id: If69a23071c56c8f76c6f3c6615c1b948a452b9ce Reviewed-on: http://git-master/r/1397 Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Tested-by: Nitin Ghate <nghate@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-13[tegra ALSA] Updating sndfx header fileVijay Mali
In order to keep sndfx file in sync with audiofx header file updating tegra_sndfx.h with structures and definitions, made the corresponding changes in code. Verified both playback and record are working fine. For bug 686588 synopsis: Incosistent kernel panic while running ALSA decode tests Change-Id: Idc121a467a7c5460d0aa68416232d07b539b2a45 Reviewed-on: http://git-master/r/1379 Reviewed-by: Vijay Mali <vmali@nvidia.com> Tested-by: Vijay Mali <vmali@nvidia.com> Reviewed-by: Manjula Gupta <magupta@nvidia.com> Tested-by: Manjula Gupta <magupta@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-13tegra nvec_keyboard: disable key scanning before exitingVarun Wadekar
Ask the Ec to disable key scanning before closing the interface. tested on harmony Change-Id: Iad099994088506d28092c77d48a893dfccadec4e Reviewed-on: http://git-master/r/1380 Tested-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-12warnings: Cleaning up compilation warnings from tegra codeSachin Nikam
Bug 682070 warnings like: - defined but not used - unused variable - format type - control reaches to the end of non-void function Image builds and boots properly after these changes. Change-Id: I91578a9684b42fcf9652cf76e492f1020194e6e6 Reviewed-on: http://git-master/r/1339 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Tested-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-12tegra: Perform DSB immediately before WFIScott Williams
As per ARM recommendation, perform a DSB immediatly before a WFI. Change-Id: Id024356efa7e2f316f7b7c96ebb3936a12d70b3a Reviewed-on: http://git-master/r/1318 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-05-12tegra RM : Bug 661401 Move RM transport into a seperate device nodeakamath
Change-Id: Ia2153071522be2badfb192057c6facad227f6dd4 Reviewed-on: http://git-master/r/1148 Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-12tegra RIL - added wake up pins and audio configurationSheshu Shenoy
- Added GPIO pins to the wake up table so that in-coming calls wake up the system when EMP and IFX Modems are present. - Added audio configuration for IFX modem. - Bug 679896 - Removed tabs and adjusted indentation Change-Id: I93db8c9f5a531b682365cfb916163b101132deee Reviewed-on: http://git-master/r/1362 Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Tested-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-11nvmap: free from correct carveout block if init split heap failsGary King
fix a coding error where the wrong carveout structure (an uninit variable) was specified as the heap to free. Change-Id: Ic2bdd66c52afffeaebe720e96a7513db32f41a72 Reviewed-on: http://git-master/r/1364 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-05-11tegra serial: Fixing system freeze when doing uart data transfer.Laxman Dewangan
Removed the rx and tx separate lock and used only one lock to control the interrupt enable bit in independent rx and tx path. The interrupt control register is shared between the rx and tx workqueue. Tested on harmony with BT, playing songs for 30 minutes without any packet loss. Change-Id: I690f28559c0ae0c3dc98ab930298e964a7ea07dc Reviewed-on: http://git-master/r/1316 Reviewed-by: Rahul Bansal <rbansal@nvidia.com> Tested-by: Rahul Bansal <rbansal@nvidia.com> Tested-by: Anjali Kotnala <akotnala@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-11tegra : Move AVPLC to 24 MhzDara Ramesh
Bug 656729 Power optimization - Optimize aac, mp3 and wma ulp use cases for restricitng AVP activity within LC at 24 Mhz Tested on E1108 board with audioplayback (AAC,MP3, WMA) Power numbers are reduced by 2.3 mW and without effecting LP2 duty cycle (LP2@ 97%). Change-Id: Ibb89e611994d4f9da752c2bfa15e50f9c08280a0 Reviewed-on: http://git-master/r/1351 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-11tegra RM: Updated tegra idle loop timing (part 2).Alex Frid
Estimated LP2 sleep time based on the duration of current idle sleep length as specified by the scheduler, instead of using time to the next interrupt (the latter does not take into account user mode sleep delays). Change-Id: I66bde7035fb71dbcb93c50d92e28a276a1cd9466 Reviewed-on: http://git-master/r/1313 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-10tegra pm: use correct config variable nameMayuresh Kulkarni
The name of config variable MACH_TEGRA_GENERIC_DEBUG is not correct. It should be CONFIG_MACH_TEGRA_GENERIC_DEBUG. MACH_TEGRA_GENERIC_DEBUG is the name set in kconfig. Change-Id: I29435b4105fc34e9ed2d352e908f2c3f1efb800a Reviewed-on: http://git-master/r/1342 Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Tested-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-10tegra ALSA: Do not queue buffers to the mixer in stopped stateSandeep Shinde
In SNDRV_PCM_TRIGGER_STOP state of the driver, if a buffer gets queued then it might not be returned back as it never gets rendered. In this scenario play_thread never exits as it keep on waiting for receiving all the buffers back from mixer before exiting. This is to solve bug 684393. In case of START->STOP->START scenario (happens in case of underruns), without closing the stream, there will not be any buffer loss as buffers are queued by application at appl_ptr and they remain there, once next START is called, they will be picked up for the playback. Change-Id: I4536e35bc59a6a4d67b24d9a8dc57a738ec695e3 Reviewed-on: http://git-master/r/1323 Reviewed-by: Gary King <gking@nvidia.com> Reviewed-by: Vijay Mali <vmali@nvidia.com> Tested-by: Vijay Mali <vmali@nvidia.com> Reviewed-by: Sandeep Shinde <sashinde@nvidia.com> Tested-by: Sandeep Shinde <sashinde@nvidia.com>
2010-05-07tegra gpio: Removing the redundant table for gpio-vddio rail.Laxman Dewangan
The vddio rail information is part of the pingroup table and there is gpio nr-pingroup table. Using these tables to get the vddio power rail information for the given gpio nr. Tested on whistler e1109+nand. Change-Id: I9c91f8016b91fec8ccd5f0577ba95ac6cf65a267 Reviewed-on: http://git-master/r/1281 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
2010-05-07udc/tegra: configure memory prefetcher for USBPavan Kunapuli
When we are programming two DTDs very close to each other, the second DTD is being prefetched before it is actually written to DDR. To prevent this, we disable prefetcher before programming any new DTD and re-enable it before priming endpoint. Bug 597487 Change-Id: Iaf15a2bfb10cfc24d34bcb4b3093c1c6c48d5d22 Reviewed-on: http://git-master/r/1149 Reviewed-by: Gary King <gking@nvidia.com> Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
2010-05-07tegra l2 cache: minor code shufflingMayuresh Kulkarni
Also use l2 cache code only if it is enabled via config. This is useful when running with l2 cache disabled. Tested on Harmony + Android for LP0 with l2 cache enabled. Change-Id: I3c6c77e968497a34a92405080eb5d2b1834ed4ab Reviewed-on: http://git-master/r/1283 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-05-07tegra ALSA: Replacing completion object with wait_queue_head_tSandeep Shinde
Following are the changes done: - Removed completion object appl_ptr_comp used for waiting for app buffers when buffer_in_quque=0. - If a completion object wakes-up after every 120 seconds if not signalled during that time. - Now using wait_queue_head_t which suits the purpose better. - Removed play_thread running dependency on shutdown_thrd as it is no more required. - Removed label EXIT from play_thread All these changes were done based on comments from Google. Refer to below issues for the complete discussion. http://codereview.chromium.org/1705013/show Change-Id: Id902a73f704ddf38ec8b9071bc36ee0f6db89f30 Reviewed-on: http://git-master/r/1305 Reviewed-by: Manjula Gupta <magupta@nvidia.com> Tested-by: Manjula Gupta <magupta@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-07tegra_uvc:graceful exit when usb camera is unpluggedSachin Nikam
Bug 657105 Problem:When the USB Camera is unplugged while preview VIDIOC_DQBUF ioctl hangs in uvc_queue_waiton() as it waits on interrupt which will never come, as USB Camera is unplugged. Solution:Using wait_event_interruptible_timeout() instead of wait_event_interruptible() in function uvc_queue_waiton() with timeout value 250 mSec so as to gracefully exit. With this change VIDIOC_DQBUF ioctl returns error, USB Camera driver handles this error to gracefully exit. Change-Id: I74aebadafb727b66cb1de8d70c6512a4ded63d03 Reviewed-on: http://git-master/r/1294 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Tested-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-07ehci tegra: Power down phy during auto suspend.Venkat Moganty
During auto suspend, USB phy is not powered down. Due to this there is increase in the power numbers. Fixed by powering down/up the phy during auto suspend/resume. Bug 682727 Tested on Harmony/eclair. Change-Id: I9c5500308bdaa3cb9f17b7f0745bd12969a29aae Reviewed-on: http://git-master/r/1317 Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-07Merge branch 'android-tegra-2.6.29-9.12.11' of ssh://git-master/linux-2.6 ↵Gary King
into merge-9.12.11
2010-05-07fsl udc: Fix cable connect/disconnect checkingtegra-9.12.11Venkat Moganty
On VBUS interrupt irq acknowledges the VBUS interrupt and schedules the work thread for powering/up down the USB phy and clocks based on the VBUS status. But, in the work thread instead of checking the VBUS status directly, rechecking the interrupt status which is already disabled. This is fixed by checking the vbus status only in the work thread for controlling the power up/down sequence. Due to the disconnect problem power numbers increased when there is no USB cable connected to the system. Bug 682756 Bug 682727 Change-Id: Id1c5b3cd1f2f195c4dfadf397e1f8650bf9da12b Reviewed-on: http://git-master/r/1300 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>