summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2012-08-20usb: gadget: tegra_udc: Enable DR IRQ in udc_starttegra-l4t-r16-rcPreetham Chandru
Currently dr_controller_run() is called only during otg state change. When we unload a gadget driver, for example g_mass_storage gadget driver, dr_controller_stop() is called but when it is loaded back dr_controller_run() won't get called becasue of the if condition failure. i.e if (!udc->transceiver) { dr_controller_run(udc); } So when the gadget driver is loaded for the second time without removing the cable (i.e without otg state change), the device won't get enumerated on the host because DR IRQs are not enabled. This CL fixes the above issue. Bug 1012787 Signed-off-by: Preetham Chandru <pchandru@nvidia.com> Change-Id: Ia127630e24dbe4c1e418163c2b858efb3baa8e45 Reviewed-on: http://git-master/r/114592 (cherry picked from commit be3e9def273181d1b44c1891de8602faebd719a8) Reviewed-on: http://git-master/r/124283 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-20usb: ehci: tegra: Fix Slab corruption errorPreetham Chandru
Give ownership of the DMA buffer back to the processor first and then free the buffer. Otherwise processor won't be able to access the dma mapped buffers and this would lead to slab corruption. When the DMA buffer is freed without a call to dma_sync_single_for_cpu(), the kernel won't be able to set the buffer as POISON FREE and when we acquire this memory back again the kernel will start printing slab corruption output as the memory is not set to POISON FREE Bug 1017884 Bug 1018161 Reviewed-on: http://git-master/r/#change,122151 Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Reviewed-on: http://git-master/r/122390 (cherry picked from commit 642d37a0eee196d0ce811dd11bb7af5ba281ee3a) Change-Id: I00d6cb185cd2314cccb56f968eb0a05288588c13 Reviewed-on: http://git-master/r/123907 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-10arm: tegra: fb: Apply new mode even if its currentShashank Sharma
Set activation of a mode forcefully via setting FB_ACTIVATE_FORCE flag. Required for stereo modes also. Bug 1005399 Change-Id: I37872cc2a04abc8774a5f9f9df7d9e90f2c977f6 Signed-off-by: Shashank Sharma <shashanks@nvidia.com> Reviewed-on: http://git-master/r/122087 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-07video: tegra: fb: Configure dc from fbShashank Sharma
This patch contains following changes: 1. Modify tegra_fb_update_monspecs to select best mode to apply on framebuffer, in HDMI hotplug. 2. Add a console_lock to prevent corruption while fbcon running in multiple threads. 3. Add a tegra_dc_disable/enable in tegra_fb_set_par to reflect the programmed new mode applied on DC. Bug: 1005399 Change-Id: I133b38b00f25f767afc05549550fecde8d092fb2 Signed-off-by: Shashank Sharma <shashanks@nvidia.com> Reviewed-on: http://git-master/r/120932 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Kiran Adduri <kadduri@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-07video: tegra: nvmap: Fix breakage for T20Hiroshi DOYU
NVMAP_CONVERT_CARVEOUT_TO_IOVMM is only available for IOMMU less SoCs. This was introduced by (in 'main'): commit b8b0b4c42fc77d94b8deadaa46f795784f3bbb5e video: tegra: nvmap: Make IOMMU/IOVMM selectable in Kconfig Bug 1017112 Change-Id: I2a6f101b15085ece600f77690bc77adc042eb29f Reviewed-on: http://git-master/r/117976 (cherry picked from commit a68ae587edbc3ca5d3216d39c462abd84f469027) Reviewed-on: http://git-master/r/121409 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com> Tested-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-02usb: ehci: tegra: prevent illegal register accessRakesh Bodla
Make sure phy is turned ON before reading USB registers. Bug 993380 Bug 1006579 Bug 1018601 Change-Id: Ib951cad822f90f59fe829d016e2c1bda7a7cc243 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/116045 (cherry picked from commit a1a6db7dc88880fb3d4bca0036ce421e4032adae) Reviewed-on: http://git-master/r/117972 Tested-by: Preetham Chandru <pchandru@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Kiran Adduri <kadduri@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-07-16video: tegra: nvmap: Make IOMMU/IOVMM selectable in KconfigHiroshi DOYU
This patch allows nvmap to use the standard IOMMU API as its backend engine instead of the legacy tegra IOVMM by Kconfig. Enable TEGRA_IOMMU_{GART,SMMU} under IOMMU in config, and it automatically disables IOVMM, instead. Change-Id: I71112ef8072591aac4a93075623ca31c8851a960 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/114217 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2012-07-13video: tegra: fix compilation warningRhyland Klein
Without the CONFIG_SWITCH enabled, there are multiple unused variable warnings that get treated as error. bug 949219 Signed-off-by: Rhyland Klein <rklein@nvidia.com> Change-Id: I39512367fa4bbd3b00a435d0d7a31cfede9e712f Reviewed-on: http://git-master/r/115428 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
2012-07-13cpufreq: Protected access of policy attributePuneet Saxena
It takes read RW semaphore to access policy governor bug 997731 Change-Id: Ibdc3dd54cf6076c0fef4bc58f144e4bcb4631d76 Signed-off-by: Puneet Saxena <puneets@nvidia.com> Reviewed-on: http://git-master/r/107079 GVS: Gerrit_Virtual_Submit Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com> Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-13video: tegra: dc: fix build error in print_modeJon Mayo
Use the right number of parameters for tegra_dc_calc_fresh() when called from print_mode(). This code is only used for debug. Change-Id: I4d0bb8b1700f670644057039fe8d0bc315b27c1d Signed-off-by: Jon Mayo <jmayo@nvidia.com> Reviewed-on: http://git-master/r/115485 Reviewed-by: Automatic_Commit_Validation_User
2012-07-13bluesleep: stop/start based on HCI_DEV_REG/HCI_DEV_UNREG eventsNagarjuna Kristam
when BT is turned off HCI_DEV_DOWN event is received and bluesleep protocol is stopped. On bluesleep stop, EXT_WAKE gpio will be set to default high level. This condition does not allow BT chip to enter low power mode. So, start and stop bluesleep based on HCI_DEV_REG and HCI_DEV_UNREG events instead of HCI_DEV_UP and HCI_DEV_DOWN. Also, enable and disable host wake functionality based on HCI_DEV_UP and HCI_DEV_DOWN events, as these events indicate BT turn ON and OFF Bug 1014590 Change-Id: I3929c1328ac024eb080359283107dabf3712e9ea Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com> Reviewed-on: http://git-master/r/114984 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-13tegra: dc: Make data output along with pixel clock.Roger Hsieh
After making pclk output ahead of LVDS_SHDN# , data output is later than panel ready then caused partial black screen. Force triggered data output to get it fixed. Bug 972377 Bug 976081 Bug 1001434 Change-Id: Icd455d7439f622e46295158a5435286c521526aa Signed-off-by: Roger Hsieh <rhsieh@nvidia.com> Reviewed-on: http://git-master/r/113164 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-07-12hwmon: tegra: tsensor: improve counter accuracyDaniel Fu
When set threshold of tsensor,convert the temp to counter. The counter convert from temp is with ~1.8C average error. Improved the accuracy, make it to be ~0.1C. Bug 1015288 Change-Id: Icab03b559eaeb8846dd1191869afe39c9965f934 Signed-off-by: Daniel Fu <danifu@nvidia.com> Reviewed-on: http://git-master/r/114904 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2012-07-12video: tegra: dc: consider bandwidth efficiency for tegra2Bharat Nihalani
This is similar to commit a62be5b5595ad86411ced81bceeb3d6a693426d2 pushed for rel-14 branch. Bug 1004341 Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-on: http://git-master/r/111227 (cherry-picked from fbfce3106da8dad18948103c812bdd9d45ffdd06) Change-Id: Ib459094fd6499b3cc63bc534bf36e57dc98ce62b Reviewed-on: http://git-master/r/114584 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-07-12media: video: tegra: ar0832:Update Aptina settingsAmy Deng
updated MT9E013 and AR0832 Recommended Settings Bug 1009371 Change-Id: Ib1e4ce2f42ebc8d2080a47613cf7054a19198dda Signed-off-by: Amy Deng <amyd@nvidia.com> Reviewed-on: http://git-master/r/113092 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Yining Deng <ydeng@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-12video: tegra: dc: support disp mode override via boot argsNirav Patel
Allows overidding the default disp mode without having to recompile the kernel. Boot args can be specified in the following format: disp_params=<rgb|hdmi|dsi>:pclk,h_active,v_active,h_ref_to_sync, v_ref_to_sync,h_sync_width,v_sync_width,h_back_porch,v_back_porch, h_front_porch,v_front_porch;<rgb|hdmi|dsi>:pclk,h_active,... Bug 969088 Change-Id: Id0acf608de145493f6749d5b799d4bbb8162ba72 Signed-off-by: Nirav Patel <nipatel@nvidia.com> Reviewed-on: http://git-master/r/104604 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-07-11video: tegra: treat compilation warning as errorSanjay Singh Rawat
- Adding flag to treat warning as error. - Handled warning of unused function. bug 949219 Change-Id: Ic6edfc28bae95b8395cbd51e80f14aa4aa663f61 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/114624 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-11net: wireless: WFD specific changesJun (Gab-Joo) Lim
WFD specific changes integrated from broadcom patch Bug 1001418 Bug 997838 Change-Id: I0632307bf5fb959def4ee12687430a14ab9e068e Signed-off-by: Narayan Reddy <narayanr@nvidia.com> Reviewed-on: http://git-master/r/111032 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-11media: video: tegra: sh532u: Focuser range tuning supportNaren Bhat
Support for get/set capabilities added. Focuser code has a way to calibrate itself that results in determination of optimal working range. This along with actual range from device ROM are returned to the caller. Focuser has the macro at lower end and infinity at farther end of the range, which are reversed to the user level to keep the inf/macro positions to be consistent. Focuser range translation is taken out. Bug 1004816 Change-Id: I1a086ff10e99940f9ad861397bf7e71e9996c68a Signed-off-by: Naren Bhat <nbhat@nvidia.com> Reviewed-on: http://git-master/r/110443 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Charlie Huang <chahuang@nvidia.com> Reviewed-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Patrick Shehane <pshehane@nvidia.com> Tested-by: Charlie Huang <chahuang@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-11video: tegra: nvmap: Introduce IOMMU backend instead of IOVMMHiroshi DOYU
Introduce IOMMU backend functions which use DMA API familiy internally. Replace tegra_iovmm_*() API with arm_iommu_*iova*() and dma_(un)map_page_(at)(). Change-Id: I0b014926ffedc12bf8f868b163982c6082d050b6 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/114216 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2012-07-11ARM: tegra: iovmm: Allow alloc_client to take struct deviceHiroshi DOYU
Allow tegra_iovmm_alloc_client() to take struct device * instead of const char *name w/ __tegra_iovmm_alloc_client(). This is necessary to support IOVMM and IOMMU simultaneously. Change-Id: I18df5001bfe0ece8f9f15b636eb11def9f228dfb Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/114215 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2012-07-11iommu/tegra: smmu: move tegra_smmu_init in core_initHiroshi DOYU
Move tegra_smmu_init in core_init. IOMMU should be available at early stage of system booting. Change-Id: I8675e62acef44fb585a731c0f24be716b76ca41a Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/114214 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2012-07-11iommu/tegra: smmu: Enable all SWGRP by defaultHiroshi DOYU
Revisited later with new conf passed from DT. Change-Id: Ic94a698b0ee56603bbb7f2204ae8c5412ea133b1 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/114213 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2012-07-11cpuquiet: Account for the corner case frequency when setting stateSai Charan Gurrappadi
Now consider frequency greater than or equal to idle_top_freq as UP Change-Id: I1332d46d1e42a00b3b31897b158eaf4ccfbaf8f5 Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com> Reviewed-on: http://git-master/r/113678 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com> Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> GVS: Gerrit_Virtual_Submit
2012-07-11drivers: misc: fixed therm estimator bugJoshua Primero
Fixed hi and lo limit bug in thermal estimator driver. bug 1007726 Change-Id: I2be90ca7d875dbed34004b83f070fb5cbd8bc467 Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/113564 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-07-11PM: move initcall_debug message in syscore_resumeDaehyoung Ko
debug uart driver needs to be resumed before calling printk so move debug message after finishing resume bug 992588 Change-Id: Ia8991a4b7be7a4e2a765c8e6b494fd906b38b98c Signed-off-by: Daehyoung Ko <dko@nvidia.com> Reviewed-on: http://git-master/r/108435 (cherry picked from commit 75e7ef273d52b40d5d662541043e7eebc74ee24e) Reviewed-on: http://git-master/r/110433 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-07-11usb: otg: tegra: wake enabledBitan Biswas
Wake sources usb VBUS or ID detect enabled bug 980993 bug 936982 Change-Id: Iea36d308c1a118abdb7815212d749bd058d0054f Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: http://git-master/r/103141 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-07-11ARM: tegra: support multiple wake sources with same irqBitan Biswas
Earlier implementation only allowed single wake source for a particular irq in wake table. Changed implementation to support multiple wake sources ==> single irq mapping. bug 980993 Change-Id: Iacb00487531129ef19c53128824aba802e80350e Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: http://git-master/r/103140 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-07-09crypto: tegra-se: Enable interrupts after clock enableVictor(Weiguo) Pan
Because SE interrupts could be enabled in bootloader, if it's not cleared before jumping into kernel, it continues to assert the interrupt line to interrupt controller. When SE interrupts is enabled in kernel, to access SE registers in IST without clock enabled hung the CPU. To fix this issue, interrupt enabling is moved after clock is enabled. bug 1010334 Change-Id: I1b909efce2c9d92c3112039fc217f7c1360f9bbb Reviewed-on: http://git-master/r/113073 (cherry picked from commit b06e6662f738ad01a3b2b6803db654abaa03385e) Signed-off-by: Victor(Weiguo) Pan <wpan@nvidia.com> Change-Id: Ide4b0295c781e0bba7aa071616e3e6160e44ee76 Reviewed-on: http://git-master/r/114064 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-09video: tegra: host: t30: Add syncpt/epp in ISP chSonghee Baek
This change is for programming VI and EPP through ISP channel to support RGB input and dual video capturing. 1. Added syncpt in the ISP channel to submit the channel. 2. Added epp clock to use VI2EPP for RGB capture. Note: To use this channel, EPP should be free from 2D. Bug 988546 Change-Id: I17fe278c9325aac2ea1e29cbaf50c8a4499d8551 Signed-off-by: Songhee Baek <sbaek@nvidia.com> Reviewed-on: http://git-master/r/113965 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-09video: tegra: host: resolve compilation time warningsSanjay Singh Rawat
- Handled warning of, possible use of uninitialized variable and unused function. bug 949219 Change-Id: I0d7d345e66774f08e52a12e653a5e7aa6a7a8591 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/113905 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2012-07-09video: tegra: resolve compilation time warningsSanjay Singh Rawat
- Handled warning of unused label. bug 949219 Change-Id: I72e22063b199562c4a4c065419c1656e3e8ff7ff Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/113880 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-07-09video: tegra: dc: vblank workerMark Zhang
Freeze vblank worker while suspending by adding the work into system freezewq. This eliminates a kernel panic caused by nvsd reading brightness valuesfrom display while clock gated. Bug 1006180 Bug 1003969 Bug 1003730 Change-Id: Ice9bfb18e5c826ae063c2b901421b1047ff9d2f0 Signed-off-by: Mark Zhang <markz@nvidia.com> Reviewed-on: http://git-master/r/112880 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2012-07-09video: tegra: dtv: Fixed clk disabling issueAdam Jiang
APB clock for dtv logic block should be recorded by dtv_ctx->clk hanlder. Otherwise, kernel will trigger a NULL point error in suspend. Fixed Bug 1011149 Change-Id: I5d342ab6fc8ffb71211e370d304b17d5d44eef20 Signed-off-by: Adam Jiang <chaoj@nvidia.com> Reviewed-on: http://git-master/r/108743 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-07-09input: misc: fix compile time warningChandler Zhang
Add init value for rc in lightsensor_ioctl() to fix compile time warning. Change-Id: Ifcb953873b5bc861303d9d32b1906a69b2c8311f Signed-off-by: Chandler Zhang <chazhang@nvidia.com> Reviewed-on: http://git-master/r/113121 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2012-07-09usb: otg: remove otg callbackChandler Zhang
Previously the callback was added to control USB VBUS. The standard way is to use regulator. Bug 997805 Change-Id: I88b15befaf4e162478da19ead50695978b2c5f4b Signed-off-by: Chandler Zhang <chazhang@nvidia.com> Reviewed-on: http://git-master/r/112901 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-07-09power: smb349: remove otg callbackChandler Zhang
The callback in otg driver is not a standard way of controlling USB VBUS. Remove the callback and use regulator to control. Bug 997805 Change-Id: I6d7fd01f9346e037515901ac6fe6d349a140d13e Signed-off-by: Chander Zhang <chazhang@nvidia.com> Reviewed-on: http://git-master/r/112896 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-07-09watchdog: tegra: Add support for FIQ debuggerKamal Kannan Balagopalan
Enable FIQ on 2nd watchdog expiry to make use of FIQ debugger. FIQ debugger can be used to dump call-stack and registers when WDT logic triggers FIQ on 2nd timeout. Bug 970018 Change-Id: Ia2e7f8b136499974ff51f2f0c2ef55704dfe37e1 Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com> Reviewed-on: http://git-master/r/110953 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Steve Kuo <stevek@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-09watchdog: tegra: Revamp Tegra watchdog supportKamal Kannan Balagopalan
- Make all CPU watchdogs accessible except WDT0 - CPU WDT0 is reserved for suspend/resume WDT recovery - Fix WDT enable sequence on watchdog driver probe Bug 857748 Change-Id: Ia2d07856c32230ab8c9195fee151af09bce3ddde Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com> Reviewed-on: http://git-master/r/99780 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Steve Kuo <stevek@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-09hwmon: tsensor: fix system hang in 0C.Linqiang Pu
Changed the low temp to 0C since 20C is very easy to trigger thermal alert under -15C to 15C environment temperature. And the thermal alert will run into endless alert from tsensor_work_func. Also revised suspend and resume routine to cancel the work when suspending and disable/enable irq. Bug 999175 Signed-off-by: Linqiang Pu <dpu@nvidia.com> (cherry picked from commit 6a909bfa690991438be298d4933946a92e4929c4) Change-Id: Icafc6d5f0164204cc0cb7bea64bef2fadadbfbfd Reviewed-on: http://git-master/r/111550 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-07-09hwmon: tegra: improve tsensor accuracyBitan Biswas
tsensor driver uses fixed point approximations. Improved accuracy of tsensor temperature reading - adding support to handle negative temperature to counter conversions and vice-versa bug 1001632 bug 999175 Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> (cherry picked from commit 86ae0bdc3fbd34a5a1d0e08f7721ed527ddf5408) Change-Id: I5f6df85611d502a6dda1186234078fe973d7ca75 Reviewed-on: http://git-master/r/100576 Tested-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2012-07-06cpufreq: mid-range frequency biassatya popuri
Restrict go_maxspeed_load and max_boost at mid-range frequencies. Change-Id: I9e3c59bbe708b428e12ce4dbef2144be09751d5a Signed-off-by: satya popuri <spopuri@nvidia.com> Reviewed-on: http://git-master/r/111754 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Karthikeyan Samynathan <ksamynathan@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2012-07-06crypto: tegra-aes: synchronize dma buffer accessSanjay Singh Rawat
- Using the dma sync apis to keep coherency. bug 984039 Change-Id: I9e389d2679f05c519ae4a51462247b7efeae01ca Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/111612 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-07-06misc: tegra-cec: Initial CEC Driver for T3x platformAnkit Pashiney
READ API: read API ignores count and will always return 16 bit data. read API expects user to supply it with min of 16 bits data it returns CEC packet in following format bit 0-7: data bit 8: EOM bit 9: ACK WRITE API: write API ignores count and will always accept 32 bit data. write API expects user to supply it with min of 32 bits data it accepts CEC packet supllied in following format bit 0-7: data bit 8: EOM bit 12: Address mode, 0 = Direct, 1 = Broadcast bit 16: Generate Start bit, 0 = Disable, 1 = Enable bit 17: Retry frame, 0 = Disable, 1 = Enable Logical address is set to 4, as of now there is no mechanism to change this address from userspace. Driver is disabled by default in Kconfig Change-Id: Ia3835cec0bb717e63dabca5c5fcb1236847bf492 Signed-off-by: Ankit Pashiney <apashiney@nvidia.com> Reviewed-on: http://git-master/r/105520 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com>
2012-07-05usb: host: tegra: code clean upVenu Byravarasu
Addressed below items with this patch: 1. Using devm_kzalloc in place of kzalloc. 2. Correcting platform_get_irq return value check Change-Id: I68225fe40adbb4be98e16ee2e0a4fccefadd8626 Reviewed-on: http://git-master/r/105843 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-07-05ARM: tegra: usb: turn off power during suspendRohan Somvanshi
Turn off regulators along with clocks during suspend Bug 991262 Reviewed-on: http://git-master/r/108820 (cherry picked from commit 41ae7ac21a2c08da0e4312b8395b380a704fa16c) Change-Id: Ib49eec5d91571d75881f4d252d956dece1d37d60 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/105364 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2012-07-05misc: tegra-baseband: treat compilation warning as errorSanjay Singh Rawat
- Handling warning of wrong return type from function. bug 949219 Change-Id: I49e74de9314ee4934a5a58a8e406f9bade278aaf Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/112906 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-05usb: gadget: tegra_udc: include pm_qos header fileRakesh Bodla
Include pm_qos_params header file to avail pm_qos apis. Bug 923594 Change-Id: Icbaad45e83a688b537159eea22ddd7356565fabf Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/113438 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-07-03net: wireless: bcmdhd: do not register for allMursalin Akon
Do not register bcmdhd driver for all sdio devices. Bug 1006828 Change-Id: I49e2d2bc7fbda4414392d8a28a0feefb1c8031ec Signed-off-by: Mursalin Akon <makon@nvidia.com> Reviewed-on: http://git-master/r/113045 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-07-03cpuquiet: Fix compiler warningSai Charan Gurrappadi
Change-Id: I03c11c295b40ebd500a715974f7fdca560d9a43a Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com> Reviewed-on: http://git-master/r/111286 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>