summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2010-12-01sdhci-tegra: Optimizing sdio suspend handlertegra-10.9.7Rahul Bansal
Bug: 730157 Change-Id: I8741f2be5c3c8933edf0dcc3b9d00006eeb86117 Reviewed-on: http://git-master/r/11682 Reviewed-by: Rahul Bansal <rbansal@nvidia.com> Tested-by: Rahul Bansal <rbansal@nvidia.com> Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-29sdhci-tegra:Limiting clock based on platform clock limits.pkunapuli
The requested SD clock will be limited to the maximum supported clock on the platform. Bug 761966 Change-Id: I03cd76ae42f56675f47d185da73352e716f6d255 Reviewed-on: http://git-master/r/11429 Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-11-24video: tegra: nvmap: Clean whole L1 instead of VA cleaningvdumpa
For large allocations, cleaning each page of the allocation can take a significant amount of time. If an allocation that nvmap needs to clean or invalidate out of the cache is significantly larger than the cache, just flush the entire cache. bug 711478 and bug 744221 Revert "video: tegra: nvmap: perform cache maintenance for rw_handle" This reverts commit d963f09c3ebb2d690d266f8f607b4876acaf2ab1. Reviewed-on: http://git-master/r/10213 (cherry picked from commit 6469f378a596f0572035cd27a17851ea86b763c9) Change-Id: I1e514f505db860eb01d575a98f0f80c8794e8463 Reviewed-on: http://git-master/r/10497 Reviewed-by: Eric Werness <ewerness@nvidia.com> Reviewed-by: Markus Holtmanns <mholtmanns@nvidia.com> Tested-by: Markus Holtmanns <mholtmanns@nvidia.com> Reviewed-by: Janne Hellsten <jhellsten@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-22[arm/tegra] serial: Getting dma transfer count with rts inactive.Laxman Dewangan
Getting the transfer count by dma with rts disable. In this way we can avoid the race condition arise by hw with incoming data. Change-Id: Ieeeadfeea9293c70fd2eb96ff9d82888a58b2b3a Reviewed-on: http://git-master/r/11020 Tested-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-22[arm/tegra] serial: Support for break on console driver.Laxman Dewangan
There is sysrq feature which works from console with sending break and then character. The console driver uses the 8250 driver. In tegra uart controller, after receiving break, it needs to clear the rx fifo by reading fifo till empty to receive the another break/character. Fixing this issue in 8250 driver. bug 697978 Change-Id: I4eb71a67bafc186ec9934fce164e28ad86fa0ace Reviewed-on: http://git-master/r/8736 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-15[arm/tegra] Support for Wake-On-Wireless Event.Rahul Bansal
Support for device wakeup on receiving SDIO interrupt in LP1/LP0 for incoming wifi pakcket. Bug: 730157 Change-Id: Ia2e9bf2af215f33d6d6d8d78ba0cdf2d71011917 Reviewed-on: http://git-master/r/9813 Reviewed-by: Rahul Bansal <rbansal@nvidia.com> Tested-by: Rahul Bansal <rbansal@nvidia.com> Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Tested-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-06nvmap: Improved compaction algorithm implementedKirill Artamonov
Fast compaction algorithm: for every free block from the beginning of CO, try to reallocate block before and after the free block. Once enough free space for requested allocation is freed, return. Full compaction triggers if fast one fails: it works like fast one but also uses block moving algorithm which doesn't require extra CO memory. It compacts all heap, merging as much free space as possible. Also fixed few bugs. bug 740842 bug 746972 (cherry picked from commit 171edd17a191c8a4a4f9a8434dec796089cda141) Change-Id: I40ec2c49a3c3f37fd7149e8123eda59da4caef39 Reviewed-on: http://git-master/r/10149 Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com> Tested-by: Kirill Artamonov <kartamonov@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-11-06[ARM/Tegra] nvmap fix for crash in spin_lock() callThomas Roell
Gate access to h->carveout.co_heap by (h->alloc && !h->pg_alloc) Bug 743185 (cherry picked from commit daba1dc0a3e050a2739293904cad9e65eb27a559) Change-Id: I5014fb40074e79e4db293767e3ef512ea35401d8 Reviewed-on: http://git-master/r/10148 Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com> Tested-by: Kirill Artamonov <kartamonov@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-10-28csr lowpower mode:adding bluesleep support for csrrgoyal
Adding bluesleep support for CSR chip BUG 691608 Change-Id: I5cb9420201e99b36a9ee26a411c0312b3c6e3fa1 Reviewed-on: http://git-master/r/9678 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-27[[ARM/Tegra] Clean up build warning messagelazhao
Clean up warning message caused by unused variable and improper struct type. Bug 682070 Change-Id: I3409ad22e67252df14d6d14898aa8792a0019574 Reviewed-on: http://git-master/r/8436 Reviewed-by: Lance Zhao <lazhao@nvidia.com> Tested-by: Lance Zhao <lazhao@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-26[arm/tegra] support RTC alarm interrupt in odm_kitJon Mayo
New API added to odm_kit to register a callback to use on RTC interrupt. Supported added for RTC alarms in the max8907b PMU. Bug 717253 Bug 734529 Change-Id: I34abebd7dd3caf4ef8923fcf651c50f6d245f6b4 Reviewed-on: http://git-master/r/7328 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Tested-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-25sdhci-tegra:Detect SD cards inserted during suspend.Pavan Kunapuli
Update card_present variable during resume by reading card detect gpio value inorder to detect cards inserted during suspend. Change-Id: Ie3eb7cb09cf84fa0795a21c44b28e07e6302adb7 Reviewed-on: http://git-master/r/8060 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-25nvmap: various fixes for bug 743185Venkata (Muni) Anda
Fixed the following: Missing node creation for debug_fs while doing compaction. Missing locks in handle_free Split heap functionality was not creating debugfs node Misc code clean-up. roll up of unmerged changes from other branch Bug 743185 (Cherry picked from commit 396c587981b2d0d1abb1daf481a5fe4bbd0ba70d) Change-Id: I55249e14ea69c3780b24efbfaea9ceef9ef23534 Reviewed-on: http://git-master/r/8236 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Reviewed-by: Thomas Roell <troell@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-22sdhci-tegra:Passing the correct handle to read/write macros.Pavan Kunapuli
The tegra_sdhci structure pointer is passed to the sdhci_readl and sdhci_writel macros instead of the required sdhci_host structure pointer. Corrected this. Change-Id: Icc7172387fc206c65c685e5ee5ee6ab390e9ad89 Reviewed-on: http://git-master/r/9020 Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Rahul Bansal <rbansal@nvidia.com> Tested-by: Rahul Bansal <rbansal@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-21[ARM]: touch: low power mode for touchscreen.Suresh Mangipudi
The late resume of touch was not invoked when display was not turned on. This has been handled now. Bug 740740 (cherry picked from commit ef6a066e3ad9254312660bbb725be9ed49448ffa) Change-Id: Id2f1cd255ed59019fb46778da1b93cbe7aa3b8bb Reviewed-on: http://git-master/r/7973 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-21[ehci-tegra] Fix VBUS handling in OTG modeVenkat Moganty
When USB cable is removed from the USB1 port side then VBUS is turned off but, if USB cable is removed from the device side then VBUS is not getting turned off and is showing high even when USB cable is removed completely from the USB1 port. Fixed this by checking the OTG state "OTG_STATE_A_SUSPEND" and then turning off the VBUS and phy power down. Bug 741587 Change-Id: Ib8f3dbddc48de0d12179dbd504503621854f44cd Reviewed-on: http://git-master/r/8199 Reviewed-by: Lance Zhao <lazhao@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Tested-by: Lance Zhao <lazhao@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-20[arm/tegra] serial: Stop rx dma only if transfer in progress.Laxman Dewangan
If serial core driver request for the stop rx then dequeue the dma request and read the rx fifo only if rx is in progress. Change-Id: I8cd8a75a59773f0195ed876f7faeb89ac0f2cbec Reviewed-on: http://git-master/r/7579 Reviewed-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-19[arm/tegra] kbc: Adding scanning timeout configuration.Laxman Dewangan
Keyboard controller goes to continuous polling mode from wakeup mode if any key is pressed and stay for hw default to 5 second. This parameter was not configurable from odm. It is require to configure this parameter from odm based on platform. Adding support for keeping this time as configurable. The default time still be 5 second if it is not configured from odm. Change-Id: I0fc11cc2a2d64db33b00c048f87081b6181354fa Reviewed-on: http://git-master/r/8644 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Chun-Hung (Alex) Wu <chuwu@nvidia.com> Tested-by: Chun-Hung (Alex) Wu <chuwu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-19[ARM/tegra] clocks: Enabled clock before set rate.Alex Frid
Made sure graphics and sdhci clocks are enabled before the respective rate is configured. Change-Id: I2d09ad111321b296a8d8fbb2d4bff02016e12feb Reviewed-on: http://git-master/r/8272 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-15[ARM/tegra] nvhost: Tuned ACM timeout.Alex Frid
Drastic reduction of ACM timeout to 2ms (from 1sec) resulted in power increase for NV omxplayer video-playback (bug 738557). The reason is that short-term scheduling does not provide enough idle time for LP2 state (CPU powered down). On the other hand, 1 sec timeout prevented core voltage scaling during Android music audio-playback (bug 735111). Hence, tuned ACM timeout to 25ms. (cherry picked from commit 32c727ae2c4f91e8d7c9c261921bb62ad14217c9) Change-Id: I96c46c43e9b3089b6a7e01db5f6d122122758c90 Reviewed-on: http://git-master.nvidia.com/r/8470 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Hoang Pham <hopham@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-15[ARM/Tegra] nvhost : unpin context memory handle before freeingAndrew Wright
Bug 731923 Reviewed-on: http://git-master/r/7002 (cherry picked from commit b927a389930941297f987cc7967d10d319deba6b) Change-Id: I576de9b2dfd4245f471ca26636a146ead3df021b Reviewed-on: http://git-master.nvidia.com/r/8430 Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com> Tested-by: Andrew Wright <awright@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-14[tegra] huawei EM770 modem supportRakesh Kumar
Added EM770 vendor and product id in usb serial driver. Bug 721467 Change-Id: Ib64820f25b02a69c8a366b9251f9419dd4bfa786 Reviewed-on: http://git-master.nvidia.com/r/8385 Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Tested-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-13[ARM/Tegra] Fix commit f3824fd58e2654a0d8d3159cb1f776d3ad0169a2Zhijun He
Check for pgalloc is not required. Bug 731923 Reviewed-on: http://git-master/r/7218 (cherry picked from commit 665dba4dd0617f763815bce96dec4a14f8a0c6f6) Change-Id: I82e701555605f4322a95a66b75ffe3f3bce2a5a6 Reviewed-on: http://git-master.nvidia.com/r/8266 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-13[ARM/Tegra] nvmap: fix a crash in _nvmap_handle_freeZhijun He
When the memory for a handle is not allocated, and then if the caller calls _nvmap_handle_free it should not do the cache operations on the memory as there is no memory allocated Bug 731923 Reviewed-on: http://git-master.nvidia.com/r/7166 (cherry picked from commit f3824fd58e2654a0d8d3159cb1f776d3ad0169a2) Change-Id: Icf11ece6d07e122991e0d9b6b4a3dbf8c45ea017 Reviewed-on: http://git-master.nvidia.com/r/8265 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-13video: tegra: nvhost: fix race condition in hostintr wait listZhijun He
Reviewed-on: http://git-master/r/6507 (cherry picked from commit 3708cd7a859d1ca4f3230bc8bfb018894bb6277e) Change-Id: I1609b8b8d1f2de51f7eafa2105fb1f695903a252 Reviewed-on: http://git-master.nvidia.com/r/8262 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-08[ARM/tegra] nvhost: Reset syncpoints on host initialization.Alex Frid
Added syncpoints reset to host initialization, to synchronize h/w state with shadow variables. Bug 743910 Change-Id: I09420fe2fb85b0e79f0e5d11ade8515e28e96910 Reviewed-on: http://git-master/r/8038 Tested-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Andrew Howe <ahowe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-10-07[arm/tegra] kbc: Keep KBC to wake mode before LP0 entryLaxman Dewangan
KBC does not behave properly after resume from LP0 if KBC is in continuous mode before entering into LP0. So making sure that KBC should be in wakeup mode before entering to LP0. bug 740263 Change-Id: Ia882dfb034bd9ab87811855f2ac20d26fc9581d8 Reviewed-on: http://git-master/r/7756 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-10-05[tegra-ehci]USB device detection for host mode in LP0Venkat Moganty
USB devices are not recognised when connected to the USB port, when system is already in LP0. Root port power is not getting enabled when resume from LP0. By the time root hub checks for the port connection auto suspend is getting called and device is not recognised. Fixed this by enabling the root port power during the ehci_restart functionality. Bug 741890 (cherry picked from commit 188bf7050751a40d6f2d6a858e2702774fc70f77) Change-Id: Ib88ed3fc4b01719777a0e49e27434ef6425bc53d Reviewed-on: http://git-master/r/7834 Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-10-05[tegra/nvmap] Fix iounmap issue in nvmap.vdumpa
Incorrect address is passed to iounmap, which is causing virtual space leak. Bug 732355 Reviewed-on: http://git-master/r/7554 (cherry picked from commit 593fc2ae6dfadff51ca45353b35dfbd3de0fcce7) Change-Id: Id69a7b3a6e130c91d594fc0ff32b8080cf192e2c Reviewed-on: http://git-master/r/7858 Tested-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-10-05[usb-host]Remove controller restart in host mode during resumeVenkat Moganty
During resume from LP0 controller is getting restarted in host mode due to this hcd state is getting changed from the suspend state. Controller state should not be changed for host mode. Fixed this to restart the controller only in OTG mode. Bug 724437 (cherry picked from commit cbea530301ae3d9a4a7271d11c819bfc8de8f892) Change-Id: Idc2897a2790087e00ee66e30fea734c9d117029e Reviewed-on: http://git-master/r/7833 Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-10-05[usb-hcd]Adding missed memory barrier in the hcd driverVenkat Moganty
There is one wmb missing in the usb host controller driver after the queue head update. Due to this data transaction is not happening on the bus after urb submission by the hcd driver. Register updates/queue heads data in the memory is not reflected on the AHB bus. After adding the wmb after queue head update data transaction the USB bus started with out any delay. Bug 737242 (cherry picked from commit eff18c3f40253f7af0b576126b954d8572cbea64) Change-Id: I9f3ae6d8743a03a58034a82f4fe2850fd7278c4f Reviewed-on: http://git-master/r/7747 Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-10-05[arm/tegra] provide wifi power/carddetect abstractionRakesh Kumar
When user switches on wifi, wifi driver need to poweron wifi card and ask sdhci stack to enumerate the card. Sdhci stack does not provide any interface to achieve this. Major wifi vendors depend on platform to provide wifi poweron/reset/carddetect abstraction function. Bug ID 739374 Change-Id: I988393352ff6cb54be3d70a59c94f67eedff06fb Reviewed-on: http://git-master/r/7097 Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Tested-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-09-30[tegra-udc] Fix device compliance testRama Kandhala
On k32, remote wake up is enabled in the descriptor based on gadget->ops. Since, remote wakeup is not supported, disabled gadget->op->remote_wakeup based on USB_ANDROID. Bug 710624 (cherry picked from commit c0340053278c9c9ceb98772cc3566d298dca4d9a) Change-Id: I760632dd38a9f56dadfbb4d446e83f28cdb5338f Reviewed-on: http://git-master/r/7556 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2010-09-30[arm/tegra] kbc: Keep enabling if wake key configured in suspend/resume.Laxman Dewangan
Keep enabling the kc controller only if any of keys are configured as wakeup source during suspend. bug 735233 (cherry picked from commit 13825a46587b0508aa7a43054964b76524d5f2b6) Change-Id: I028965400ee4f96c1460f8e261a2376943384030 Reviewed-on: http://git-master/r/7499 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-09-23tegra bluesleep: Bluetooth active power management driverAnantha Idapalapati
A new driver is implemented to actively manage the bluetooth module power. bluesleep also tries to manage the power of the transport used. Two signals (GPIOs) are used to manage the power events. BT_WAKE : signal from HOST to BT chip to intimate BT chip can sleep. HOST_WAKE: signal from BT chip to HOST to intimate HOST should wakeup/ activate the transport modules required for BT communication. Bug 680524, 691608 (cherry picked from commit 111f4ccd3c4cfde2fa52ae4c0c56a2288c3af3a8) Change-Id: I5edba2aa18c566f0ebfc4ecf9c54149ee3376666 Reviewed-on: http://git-master/r/6850 Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Anantha Idapalapati <aidapalapati@nvidia.com> Tested-by: Anantha Idapalapati <aidapalapati@nvidia.com>
2010-09-23[driver] isl29018: Moving driver from hwmon to iio/light.Laxman Dewangan
Moving the isl29018 from hwmon to the staging/iio/light driver. Replacing the hwmon registration with iio registration and doing required changes to make it iio driver. bug 728678 (cherry picked from commit 2c72f7dff2b74375b35936cd4c94a891f169009d) Change-Id: I223d4451b62f2260cd2f9ee2ed8ba77ec8672b52 Reviewed-on: http://git-master/r/7109 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-09-23[sensor] isl29018: Adding proximity sensing functionality.Laxman Dewangan
Following are changes: - using smbus api to read/write from/to device. - Adding proximitysensing with scheme 0 and 1. - Adding ir sensing. - Removing the undesired definition and code. - Remove gpio initialzation and usage. - Sysfs interface for setting range/resolution/proximity scheme. - sysfs interface for reading lux/proximity ir and ir. - General code cleaning. (cherry picked from commit 0a148f035c9284cfa0e60e875052d6768267d731) Change-Id: I0d84f534a14b85e5a6bcea3218ecd8d864c0a103 Reviewed-on: http://git-master.nvidia.com/r/7102 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-09-22[ARM/tegra] nvhost: Reduced ACM timeout.Alex Frid
Reduced ACM timeout to 2ms (from 1sec). This is necessary to detect host / 3D idle under frequent activity bursts. Bug 735111 Bug 726052 (cherry picked from commit 1ff7aa46f02f61f070ae41abd8e0a36d4a4f1f3d) Change-Id: I711286925776c2955f7c43acae0cb8b2c1763e4a Reviewed-on: http://git-master.nvidia.com/r/7007 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Niranjan Wartikar <nwartikar@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-09-21[USB ADB]: rate control adb printsNarendra Damahe
limit the number of times adb_open and adb_release may be printed in a short period of time, to prevent adb death spirals when exiting suspend (cherry picked from commit 3a1e33f6715f7133ba9fe26d68342c1ff6106b20) Change-Id: I575f38269c9a4c46a3a59ff7a06c8bda36a0c0d4 Reviewed-on: http://git-master/r/6723 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-09-19nvrm: single pages allocation policy correctedKirill Artamonov
When user doesn't use default heap policy and selects GART or carveout allocation, automatic single-page-to-sysmem rule doesn't work. Because of broken rule many single page allocations go to GART and carveout. The fix adds sysmem bit to heap mask when allocation is single page and GART or carveout is present in heap mask. bug 730124 bug 731923 (cherry picked from commit 3ca9989c922420a57215d297189738a0464c4073) Change-Id: I2ea8018ae5ed9d31e90659479d0e44052ebf9431 Reviewed-on: http://git-master/r/6701 Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com> Tested-by: Kirill Artamonov <kartamonov@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-09-17watchdog: add tegra_wdt driverGary King
add a driver for the hardware watchdog timer embedded in NVIDIA Tegra SoCs Change-Id: I40730213119b4f325e3de008a5efb28f5d578b1c Signed-off-by: Gary King <gking@nvidia.com> Reviewed-on: http://git-master/r/6305 Reviewed-on: http://git-master/r/6705
2010-09-17video: tegra: nvmap: perform cache maintenance for rw_handleMarkus Holtmanns
bug 715382 Integrate from tegra-2010-07 Change-Id: I790bd0e6ff5ddd9513ae7a5ddfce491dcd1e32b3 Reviewed-on: http://git-master/r/6673 Reviewed-by: Markus Holtmanns <mholtmanns@nvidia.com> Reviewed-by: Antti Hatala <ahatala@nvidia.com> Tested-by: Antti Hatala <ahatala@nvidia.com>
2010-09-16[arm/tegra] serial: Fixing Tx to work in case of out of dma.Laxman Dewangan
When system runs out of dma and uart driver tries to allocate dma, the dma allocation fails. In such case, the uart communication should work with interrupt based -non dma mode. bug 730003 (cherry picked from commit 4a9d5633474c806799ccc6d167f3d624c92d560c) (cherry picked from commit 2000a076103c559446d11ad49debc4e0f2952e8a) Change-Id: I96c2a3f79fd9044e3b54771b60cad7dcb12f517b Reviewed-on: http://git-master/r/6599 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Harry Hong <hhong@nvidia.com> Tested-by: Harry Hong <hhong@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-09-16tegra video: remove cancelled actions from the list at power downAndy Carman
[bug] 729378 Change-Id: I34d276d2552491c933983309df0fe31f7bf3ba7e Reviewed-on: http://git-master/r/6443 Reviewed-by: Andy Carman <acarman@nvidia.com> Tested-by: Andy Carman <acarman@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-09-16[arm/tegra] dma and serial: Adding pointer checksLaxman Dewangan
Adding the valid pointer checks before accessing the pointers which is passed when public apis are called. Also resetting the pointers to null once the allocated handles are freed. (cherry picked from commit 0954407534a757b316bc35a0232968feed23243a) Change-Id: Ib8b99f0556fb9a98c74ba8911a00879451fad9e5 Reviewed-on: http://git-master/r/6578 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-09-13[arm/tegra] serial: Removing wait loop for tx emptyLaxman Dewangan
When uart_close() or uart_suspend() calls the tegra_uart_suspend() the drivers waits in tight loop for tx to be empty. This wait is not required because serial_core driver have already waited for the tx fifo to empty with proper timeout before calling these function. bug 730612 (cherry picked from commit 13387c532dfb35dc672b290aec8b7a4db49730d6) (cherry picked from commit ddd896c933e3f8d5fb28948ad957ec12b3d881cd) Change-Id: Ie898ad0a134684844bf80ae00a1c8dd4b02a605a Reviewed-on: http://git-master/r/6372 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Harry Hong <hhong@nvidia.com> Tested-by: Harry Hong <hhong@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-09-09[ARM/tegra] nvhost: WAR power down of powered off module.Alex Frid
Replaced assert on powering down of already powered off module with skipping the power down procedure in this situation is detected. WAR for bug 727964. (cherry picked from commit c562c8fdf58a552fe9ba1c62ffec66e0b67447e5) Change-Id: I2f55052d38874bf196bc89a06fa478aa3e9783c2 Reviewed-on: http://git-master/r/6283 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-09-09[tegra/ARM] nvhost: Added nvhost resume.Alex Frid
Added nvhost device resume function, and moved syncpoints restoration here from run-time power_host() control. Respectively added syncpoints saving to nvhost suspend procedure. This change is required, since power_host() has no way to account for display advancing syncpoints after they have been already saved. Bug 726052 (cherry picked from commit 629bbd439e1bb156a8cfce3de9384e42586d4f42) Change-Id: I6149cfa1bff72cb9b5e9e9da0f302c7d8a3032a0 Reviewed-on: http://git-master/r/6282 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-09-09[usb-msd]Fix to increase MSD write performanceVenkat Moganty
MSD write performance is decreased due to the file_sync() called in the write path this is introduced in the K32. After removing this write performance is increased and it is back to K29. Bug 727609 (cherry picked from commit 3674a60b8d4ede5d9305bf59a205e9f16e025f2a) Change-Id: I99e63302e1b189b600163c216847eae437e86a9f Reviewed-on: http://git-master/r/6246 Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-09-02video: tegra: nvmap: disallow splitting when no spare blocks availableThomas Roell
The block realignment if a block wasn't split lead to a slow leak of carveout memory if the previous block was not a free block. Change-Id: I08bd89364932f2c4fc4faf1dec177dab03e82a9a Reviewed-on: http://git-master/r/5851 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Thomas Roell <troell@nvidia.com>