summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2011-08-11usb: ehci: tegra: enable hotplug interrupt for port3balam
Hotplug on usb is supported only for usb3(instance 2) Bug 859355 Change-Id: I9f31ebae5bda51beddc23dc6e13fd635cf8cef47 Reviewed-on: http://git-master/r/45763 Reviewed-by: Alex Courbot <acourbot@nvidia.com> Tested-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-08-08arm: tegra: otg: check connected devices on resumeVictor Ryabukhin
A device might be connected while CPU is in sleep mode. In this case no interrupt will be triggered. Force irq_work to recheck connected devices. Reviewed-on: http://git-master/r/40331 (cherry picked from commit 749e994e1e0010843e4a2d54e27a7f19274661a7) Change-Id: Ic106a2e3115a87dc9548714ef89383add42fd777 Reviewed-on: http://git-master/r/43433 Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-08-08video: tegra: dc: Update hdmi hot-plug status on resumeManjula Gupta
- Update the upper layer about hdmi removal in suspended state. - Removes the redundant variable hpd_pending. Bug 857122 Change-Id: I78e22e572a9ff0e475d15bbb94c608cfceeefbee Reviewed-on: http://git-master/r/44326 Tested-by: Manjula Gupta <magupta@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-08-04arm:video:dc Audio EDID improvementsScottPeterson
Finer grain determination of audio capabilities for HDMI devices. TO enable audio we have to have basic audio supported in the EDID plus at least one Short Audio Descriptor block. Change-Id: Icb8b242c80ae580cdcdea1910a7cf7bd1f124239 Reviewed-on: http://git-master/r/43304 Tested-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-07-29video: tegra: dc: use a delayed_work on hdcpDonghan Ryu
hdmi modeset triggers to re-start hdcp and trying to negotiate too early can cause HDCP failure. using delayed_work can avoid this situation by starting HDCP a little bit late Bug 855002 Change-Id: I64bd84406ebb02ecc33f53eee65e2b3032a69880 Reviewed-on: http://git-master/r/43463 Tested-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-29media: video: tegra: avp: set sclk to minPrashant Gaikwad
Initialize avp.sclk to minimum. H/W statistics monitor adjusts avp.sclk dynamically depending on load. Bug 831892 Reviewed-on: http://git-master/r/36064 (cherry picked from commit 1d18930770b99fa7a8169ba8300723bf3b5551e0) Change-Id: I67887368d381b882c521f454e7c4624b39e847c8 Reviewed-on: http://git-master/r/43027 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-29media: video: tegra: set_clk_rate for avpSachin Nikam
set_clk_rate for sclk which is parent of avp clock. Bug 843725 Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/39772 (cherry picked from commit 7ca01f6ae2071c5adac467552bdedb54d158d51b) Reviewed-on: http://git-master/r/40598 (cherry picked from commit 52ee27d112691171bbf6bab00329701288944f1e) Change-Id: I8ac5a238b78d4112521453fd985cccfd18b43468 Reviewed-on: http://git-master/r/42798 Tested-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-29media: video: tegra: avp: get module clock freqSachin Nikam
AVP wants to know the clock freq of the modules like VDE and AVP itself. Added interface to handle get clock message from AVP. Bug 843882 Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/38506 (cherry picked from commit 7ab89380014b5b5f368548615f5ab2e144b3e57a) Reviewed-on: http://git-master/r/40597 (cherry picked from commit ea44e0325596c4e78fbd2bcf67648fb524b0c7bc) Change-Id: I5167f3c3efa80cc581bddd7e7e8826da198b7266 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/42797 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-29media: tegra: avp: respond to unsupported service idsSachin Nikam
AVP service driver responds error to AVP for invalid or unsupported service IDs. Bug 843473 Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/39225 (cherry picked from commit 11237d6a408d6ca7aea619e47b02ddf7e158945d) Reviewed-on: http://git-master/r/40596 (cherry picked from commit 6c78fcbf8a0206aece5eb7e972ba1e1e84276ba4) Change-Id: I7ce56be10dc84fcb2a43916258d1c1deaf1b7d8d Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/42796 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-29tegra: avp: implement NvRmPowerModuleClockConfig() for AVPMayuresh Kulkarni
this change will allow clock rate control from AVP. Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/31839 (cherry picked from commit 82f7aa65a57b808a5b028918c7b1b997f8a76db7) Reviewed-on: http://git-master/r/40595 (cherry picked from commit c0a5ebaa43e52b30ecb1f86d5ce7fa9a2325da8b) Change-Id: Ieb4850a1e608b5468716bad51f3a6925e30a5f28 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/42795 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-27video: tegra: dc: fix delay on hdmi modesetDonghan Ryu
wait_event_interruptible_timeout checks the condition before it enters a sleep. Adding a real condition to the function avoids an un-wanted aditional sleep. Bug 833476 Change-Id: Ie52cfa071b980d4fa01af8984f89fa6a1710addc Reviewed-on: http://git-master/r/43225 Reviewed-by: Donghan Ryu <dryu@nvidia.com> Tested-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Michael I Gold <gold@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-07-26video: tegra: host: Clear refcnts+syncpts on suspendElaine K. Tam
Forcibly clear channel refcounts and syncpoints on suspend. Non-zero refcounts and stuck syncpoints remain to be root-caused. - Refcount clear portion is based on fix for Bug 820450 (but with fixup from var mod to m); - Increase wait timeout (6s) for module idle at suspend, wait indefinitely for module idle on retry (otherwise fatal); - Ensure that syncpoint fixups apply only to non-client-managed syncpoints, for case system_suspend == TRUE only (not ACM idle); - Add extra debug logging (see force_suspend) to track potential powerdown races, etc. Bug 834337 Change-Id: I513d77dd841f5ec499c8bb7a08806bbe08a733e5 Reviewed-on: http://git-master/r/39716 Tested-by: Elaine Tam <etam@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-25drivers: net: wireless :bcm4329: disable sdio interrupts before wifi resetRahul Bansal
during system suspend if wifi is on but not connected, android sets RTC alarm to wake up system after 2 mins of system suspend to turn off wifi. during turning off wifi it was observed that BCM4329 MAC is giving spurious sdio interrupts which was causing lockup issue (mmc_lock) between sdio interrupt handling process and wifi stop process, to fix this issue sdio interrupts are disabled before giving MAC reset from host. Bug 834444 Bug 798783 Bug 796147 Bug 797230 Bug 780047 Bug 818687 Change-Id: I696d70422be2866a18b05d85c34547ac847130d6 Reviewed-on: http://git-master/r/43014 Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-25video: tegra: dc: Fix no_vsync hang issue.Gaurav Sarode
no_vsync was causing random hangs due to unwanted interrupts were enabled on default. Fix bug 801463 (cherry picked from commit ff97de537bb721a5692189eb6e13e6856a2c5605) Change-Id: Ief706bd90d0420db1fa39517c3eaba87adcdb246 Reviewed-on: http://git-master/r/42590 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-25video: tegra: host: Force DC reset on stuck DISP syncptElaine K. Tam
Call tegra_dc_schedule_reset when DISP syncpoint is stuck for >= STUCK_FIXUP_COUNT (currently 5) iterations in syncpt_wait_timeout. This causes display to blank off briefly, but subsequently recovers. Bug 834337 Change-Id: I564a34e238f5c954f62ecde902af9de22a4cb32f Reviewed-on: http://git-master/r/42416 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-25usb: otg: tegra: Fix for kernel freeze during resumeVenkat Moganty
Delaying the otg resume to occur after resuming all the devices. This will make sure all the storage drivers are resumed before un-register of the host controller driver. Bug 843287 Change-Id: I38c801d61e0bc903c0cb074d84d753b947f7b7f5 Reviewed-on: http://git-master/r/42412 Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2011-07-21video: tegra: dc: Add basic audio EDIDScottPeterson
Add support so that when the EDID is read from an HDMI display we set the spk_alloc flag to Left+Right, even if the optional SPeaker Allocation Block is not present. This provides a default audio configuration. Bug 849686 Change-Id: I549bfb356ba594f7b38baec0f4e5f18ac91602c0 Reviewed-on: http://git-master/r/42173 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-21video: tegra: nvhost: reduce HOST off timeoutXin Xie
Change-Id: I48cdaf6cd8e716a720ec24b56d1ee54d50ade36e Reviewed-on: http://git-master/r/40676 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-21crypto: tegra-aes: store keys in individual requestsVarun Wadekar
store the keys in the individual request context structure, since there is no other way to manage keys across different crypto operations. also retry requests thrice in case of errors Bug 833165 Bug 818126 Change-Id: I7d3381477b5bc134da5727bb39ea89abe05dc17c Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/40008 Reviewed-by: WooJung Min <wmin@nvidia.com> Tested-by: WooJung Min <wmin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-21tegra: dc: change EMC efficiency for bandwidthXin Xie
BUG 835372 Change-Id: I571ca8785893df339175306f548daa31158721fd Reviewed-on: http://git-master/r/39277 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-21tegra: dc: set EMC clock for every frameXin Xie
BUG 835372 Change-Id: Iccd8ee1e6222e2661e7b3fbbfde615ead6116e02 Reviewed-on: http://git-master/r/38170 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-21tegra: dc: set EMC clock dynamicallyXin Xie
If the screen is idle (no POST for some time), reduce the DC EMC clock according the windows size. If external display connected, the EMC clock will not be reduced. BUG 828306 Reviewed-on: http://git-master/r/37106 Change-Id: I88c76ef3afe5036f47d91f6540846fd767c399e4 Reviewed-on: http://git-master/r/38149 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-20ARM: tegra: dc: Disable EDID dumpArtiste Hsu
tegra_edid_dump() causes audio noise when plugin HDMI cable during video playback and should not be enabled by default. Bug 837728 Change-Id: Ib06926e30420c0aa26c7a6a3949429bbd3f2f9e1 Reviewed-on: http://git-master/r/42006 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-20video: tegra: fix divide by zero exception in hdmi moduleSanjay Singh Rawat
Bug 851086 Change-Id: Ia7f9ae6f43903fee3b1ea28331bfc621a995d338 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/40788 Reviewed-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-19usb: host: tegra: don't clear other port events for phy_clk_vld irqKenji Chen
1st hot-plug event on utmip port can't be detected after LP0 exit. For utmip phy_clk_vld interrupt, the corresponding service routine wants to clear WCKN bit in portsc and it also clears other port events, such as PORT_CSC ,PORT_PEC ,PORT_OCC. Bug 845254 Change-Id: Ib9aac9d411821220c99de0e3f85a7922fdcf2fca Reviewed-on: http://git-master/r/40354 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-14arm: tegra: correct 3D power gate WAR.Roger Hsieh
3D power gate should be always disabled to keep the power. Set T20 enabled by default. Bug 843271 Change-Id: I17745e37436414b3d5f905eb01e347743a012830 Reviewed-on: http://git-master/r/40342 Reviewed-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Tested-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Karan Jhavar <kjhavar@nvidia.com> Reviewed-by: ChihJen Hsu <chhsu@nvidia.com> Reviewed-by: Yu-Fong (Foster) Cho <ycho@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2011-07-13video: tegra: dc: Reduce usage count of nvmap clientVandana Salve
Carveout memory leak occured in video playback on abnormal termination as the tegra overlay driver didn't had the implementation to reduce the usage count of nvmap client on device closure. Hence on abnormal termination of mediaserver, the carveout memory remained allocated causing memory leak. The usage count of nvmap client for overlay driver is incremented on ioctl TEGRA_OVERLAY_IOCTL_SET_NVMAP_FD.It should be decremented on device closure. Added the code to decrement the uage count of nvmap client on release, so that the client and the carveout memory is free'd whenever the count reaches zero on successful as well as abnormal termination of mediaserver process. Similar implementation is done by NvHost channel driver, The NvHost drivers takes care of nvmap client usage count.i.e. decrement the uasge count of nvmap client which is incremented by NVHOST_IOCTL_CHANNEL_SET_NVMAP_FD ioctl. Bug 845676 Reviewed-on: http://git-master/r/40157 (cherry picked from commit c10173d70affb7117284b57fb0870c90823a5880) Change-Id: Ibe71a5daa8e6e3e2618e6b1a43338ff46fc27062 Reviewed-on: http://git-master/r/40837 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-12Revert "tegra: usb: prevent crash if irq occurs while sleeping"Alexandre Courbot
This reverts commit d7b102eca117b41c0f244b292d076e574608c565. Above change prevented USB3 hotplug to work at all. Change-Id: I197dfb727d48ce8627574da4736e0407f2adcb90 Reviewed-on: http://git-master/r/40315 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-12net: ppp: Reduce GFP_ATOMIC memory usageBenoit Goby
100% of the time on stingray, only 1 skb is allocated in the ppp_async_input loop. Pre-allocate this skb out of atomic context. Signed-off-by: Benoit Goby <benoit@android.com> (cherry picked from commit 27b6adb1ebbd0deb1cc0c9886d8371f9ddf854ab) Change-Id: I4cb9a4dffe983a34ad5724c9f0ebbada2fddb555 Reviewed-on: http://git-master/r/36703 Reviewed-by: Amit Kamath <akamath@nvidia.com> Tested-by: Amit Kamath <akamath@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-12usb: misc: out-of-band wake for usb devicesJames Wylder
Allow interrupts to wake usb bus for devices/hosts that don't support remote wakeup. Signed-off-by: James Wylder <james.wylder@motorola.com> (cherry picked from commit d843d79035c5286a0241c473a96ad02e9c48f307) Change-Id: I307f8d44603daf77f20b18dcb252c02df90659bd Reviewed-on: http://git-master/r/36702 Reviewed-by: Amit Kamath <akamath@nvidia.com> Tested-by: Amit Kamath <akamath@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-12media: video: tegra: Correct mclk settings for ov5650John Kramer
Signed-off-by: John Kramer <john.kramer@motorola.com> (cherry picked from commit 498e62c0b48548b07481927e02decd9a00c815d2) Change-Id: Ib616ea4b9ca2a8915db59c60c84511b2b0ac725f Reviewed-on: http://git-master/r/36701 Reviewed-by: Amit Kamath <akamath@nvidia.com> Tested-by: Amit Kamath <akamath@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-12USB: gadget: f_mtp: Don't block waiting for online state in read()Mike Lockwood
Return -ENODEV instead if USB is not connected. Signed-off-by: Mike Lockwood <lockwood@android.com> (cherry picked from commit 89f57cb6b93c3ac3a3b46480574054e603c47c36) Change-Id: Ia3527d3f9a2a5a6a4aa56b717602ab28a8716e0e Reviewed-on: http://git-master/r/36700 Reviewed-by: Amit Kamath <akamath@nvidia.com> Tested-by: Amit Kamath <akamath@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-12net: wireless: bcm4329: Prevent working thread to run during suspend pathDmitry Shmidt
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com> (cherry picked from commit c53be2ce81658292e6e1ef67c070c120d92e06c7) Change-Id: I29d7b8c9d09471850af44e7aefd88eb6395d04bf Reviewed-on: http://git-master/r/36699 Reviewed-by: Amit Kamath <akamath@nvidia.com> Tested-by: Amit Kamath <akamath@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-12USB: gadget: f_mtp: Add support for queueing multiple interrupt requestsMike Lockwood
Fixes problem sending "store added" events when there are multiple stores Signed-off-by: Mike Lockwood <lockwood@android.com> (cherry picked from commit f937994b15d9d0433c027b9314afe0eabdbe0103) Change-Id: I9233074bc0ef1abb149df1e41e3c97eeebf66be4 Reviewed-on: http://git-master/r/36698 Reviewed-by: Amit Kamath <akamath@nvidia.com> Tested-by: Amit Kamath <akamath@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-12video: tegra: check for hdmi peripheral during resumeSanjay Singh Rawat
As HDMI is not a wakeup source. To detect HDMI peripheral which is connected after suspend, we scan for it during HDMI resume. Bug 846365 Change-Id: I8746f18159758887aecca384bba3dd662b96710e Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/39776 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-11arm: tegra: ventana: Revised resume sequence for link ulpi.Raj Jayaraman
Revised version of lp0 resume code for link ulpi. Bug 786136 Change-Id: I6b644a596148ec975d2e74113499358fc115066e Reviewed-on: http://git-master/r/39113 Reviewed-by: Manish Tuteja <mtuteja@nvidia.com> Tested-by: Manish Tuteja <mtuteja@nvidia.com>
2011-07-11i2c: tegra: Avoid duplicate write into Tx FifoAlok Chauhan
Dvc I2C_DONE_INTR_EN interrupt bit is always enable into dvc control register3.During normal transaction on dvc i2c bus sometimes one transaction written two times in TX fifo buffer because of triggered dvc interrupt.This is causing to corrupt the next transaction header and send wrong address over dvc i2c bus.To solve this issue dvc i2c interrupt has to disable during filling of Tx fifo and enable after that. Writing last packet into Tx Fifo is generating i2c interrupt immediately if IE bit is enable in Packet header. Data shared between isr and normal thread are not in sync. So alway update these data before writing into Tx fifo. Updated the following things in code: (1) Add the code to mask/unmask I2C_DONE_INTR_EN into dvc control reg3 (2) Always updates the i2c driver required field structure data before writing into Tx Fifo register. (3) Add the code to handle tx fifo overflow condition also. (4) Put delay before resetting the controller BUG 839528 Change-Id: Iac45e628e71b8a727d3211024b7e980d33fd128a Reviewed-on: http://git-master/r/39981 Reviewed-by: Alok Chauhan <alokc@nvidia.com> Tested-by: Alok Chauhan <alokc@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2011-07-11usb: host: ehci: Increase IAA watchdogBenoit Goby
The IAA watchdog has been added to work around flaky controllers that sometimes miss IAA interrupts. We don't need it on Tegra and it is known to cause panics. Increase it to a large value to make sure it does not fire unexpectedly. Signed-off-by: Benoit Goby <benoit@android.com> Change-Id: I0d7a9568f7f438f2b33c350fb7b2a129fbfc9510 Reviewed-on: http://git-master/r/40065 Tested-by: Cho-Che Cheng <jacheng@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-06arm: tegra: otg: Remove host stopSuresh Mangipudi
Remove the stop host call when device is entering suspend. Need to be detect the host device even after the device exits from LP state. Bug 835678 Change-Id: Icf32c828078bb0f42237f49373af25d0c768a301 Reviewed-on: http://git-master/r/39506 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Alex Courbot <acourbot@nvidia.com> Tested-by: Alex Courbot <acourbot@nvidia.com>
2011-07-06usb: ehci: tegra: fix hotplug issue on usb2Ken Chang
usb hotplug is supported only for UTMI phy. usb_phy_type should be carefully checked in ehci irq. bug 845612 Change-Id: I2fdc7c79b9816dd3465353375448b07f138ff950 Reviewed-on: http://git-master/r/39338 Tested-by: Ken Chang <kenc@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Yu-Fong (Foster) Cho <ycho@nvidia.com> Reviewed-by: ChihJen Hsu <chhsu@nvidia.com>
2011-06-30video: tegra: hdmi: support for edid like datasyed rafiuddin
- Added support for eld extraction from edid and support for propogation of eld to HDA. - Differentiate video/audio hotplug - Change the value sent to HDMI hotplug switch class driver so that we can get hdmi hotplug events without audio enabled based on whether the display has audio or not. bug 836548 Change-Id: I89475049df19ed36d9b77eb15f3aee2e0fdf8f71 Reviewed-on: http://git-master/r/35672 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-06-29tegra: usb: prevent crash if irq occurs while sleepingAlexandre Courbot
In some rare cases, EHCI irqs interrupts be triggered while the block is suspended. This is notably the case when unplugging a host cable to which no device is attached. In this case, the interrupt handler will be called with the block powered off, which will eventually crash. This patch workarounds this by returning from the interrupt handler immediatly if the block is not powered on. Change-Id: I7763f56f20a984e3db716306b6bf8ec223c90363 Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Reviewed-on: http://git-master/r/35604 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-06-28video: tegra: nvmap: fix GART pin lockupsKirill Artamonov
Fix GART lockups caused by fragmentation by evicting mapped areas from iovm space after unsuccessful array pinning attempt. Fix double unpin error happening during interrupted submit. Fix possible sleep in atomic context in iovmm code (semaphore inside spinlock) by replacing spinlock with mutex. Fix race between handle_unpin and pin_handle. bug 838579 bug 838073 bug 818058 bug 844307 Conflicts: drivers/video/tegra/nvmap/nvmap_mru.c Change-Id: Ie44fa88510f62ce5c7d31af3b07afdf69a3ad4a6 Reviewed-on: http://git-master/r/38430 Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com> Tested-by: Kirill Artamonov <kartamonov@nvidia.com> Tested-by: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-28video: tegra: nvmap: single page 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 take extra space in carveout and create unnecessary page mappings in GART and SMMU. 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 The change also does sanity check of available system memory before adding sysmem bit for carveout allocations. bug 777839 Reviewed-on: http://git-master/r/31383 (cherry picked from commit 502c2becc54b49d26371f9b167f0c6f82a1bc37f) Bug 844307 Conflicts: drivers/video/tegra/nvmap/nvmap_handle.c Change-Id: Ia74f4aad4d12bb7d94e1abea1ef4c9db44b03cd8 Reviewed-on: http://git-master/r/38429 Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com> Tested-by: Kirill Artamonov <kartamonov@nvidia.com> Reviewed-by: Janne Hellsten <jhellsten@nvidia.com> Tested-by: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-26tegra: host: fix the compare statement.Jubeom Kim
Change-Id: I8af3d087b361b91c17ed7a8035670f7041f5544b Reviewed-on: http://git-master/r/37983 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-26spi: tegra: fix uninitialized values and if statementJubeom Kim
- Initialized the read_words value. - (tspi->irq < 0) is not valid because tspi->irq is unsigned value. Change-Id: I37973c863ecc770b9744737faf5d69cce7b97400 Reviewed-on: http://git-master/r/37868 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-26rtc : tps6586x: move NULL checking to the front.Jubeom Kim
Change-Id: Ic46e7f16fdd90db6dc8d7c1e723f10c5d928f382 Reviewed-on: http://git-master/r/37866 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-24media: video: tegra: avp: Retry to connect to the AVP.Jubeom Kim
Sometimes avp_node_try_connect is failed. It is the timing problem between CPU and AVP. 1) Added the retry routine for avp-connection. 2) Increased the time-out value of msg_wait_ack_locked function from 200ms to 400ms. Bug 822104, 797362 Change-Id: I92cbbf232ee30179480270f41caf13611c101157 Reviewed-on: http://git-master/r/36439 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-24media: video: tegra: avp: add kfree to error routine.Jubeom Kim
Needs kfree function when error occurs. Change-Id: Ie12fb975459e33c76c0b44d173be4ba2e0da1536 Reviewed-on: http://git-master/r/37859 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-24tegra_mediaserver: fix wrong kzalloc param, uninitialized valuesJubeom Kim
- Changed the kzalloc param from node to block. - 'CHECK_CONDITION((physical_address < 0), ...' is not valid, because the physical_address value is unsigned value. - Fixed uninitialized values Change-Id: I4eb58b6793ee1ca39664439e5f6aed334e16aa87 Reviewed-on: http://git-master/r/37862 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Stephen Holmes <sholmes@nvidia.com>