summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2012-05-01power: smb349: fix NULL pointer issue.Syed Rafiuddin
Configure i2c client structure in update charger structure only when the charger driver is in use. If charger driver is not used return -ENODEV Change-Id: Ib1bc99145ee75bea819f69157920f9096e5d40ba Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-on: http://git-master/r/98712 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-05-01power: max17048: correcting vcell calcualtionSyed Rafiuddin
Vcell is calculated based on upper 12msb's of ADC result. Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-on: http://git-master/r/95830 (cherry picked from commit e550636d9b03207b9d4fecf078168175964d85fd) Change-Id: Ic2834d8c8576b938e9d7d400c2beeb459ddeb5fc Reviewed-on: http://git-master/r/98669 Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com> Tested-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-05-01video: tegra: host: t30: use max 2d clockDonghan Ryu
setting max 2d clock can make noticeable performance difference in 2d limited usecase such as buffer clearing Change-Id: I40ef999e7eeebff45b657f00293608561cae831d Signed-off-by: Donghan Ryu <dryu@nvidia.com> Reviewed-on: http://git-master/r/98644 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-05-01media: video: tegra: sh532u focus driverErik Lilliebjerg
- Abort initialization if an I2C error to avoid excessive load on the I2C bus since it is heavily used during initialization. - Updated to the latest NVC framework. - Added feature that allows for the key focus points to be set at runtime and the relative positions recalculated. Bug 929133 Bug 938934 Change-Id: Ida4ab885bf35057ae6df131e3ec3587a891a7dc9 Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com> Reviewed-on: http://git-master/r/93944 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-04-30net: wireless: sd8797: Add Kconfig to marvel sd8797Narayan Reddy
add Konfig to marvel 8797 and some tailing space corrections. Bug 954218 Change-Id: I2885f2a74dea14ffeeb5dad65e03e217c77c5013 Signed-off-by: Narayan Reddy <narayanr@nvidia.com> Reviewed-on: http://git-master/r/98436 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-04-30net: wireless: sd8797: Marvell sd8797 Wi-Fi driverMohan T
Initial commit for Marvell sd8797 Wi-Fi driver Package Ver: T3T-14.69.11.p111-M2614303_A0B0-MGPL Bug 954218 Change-Id: I76fcadb5cda054d1e489c4cff77a3c461bdac742 Signed-off-by: Mohan T <mohant@nvidia.com> Reviewed-on: http://git-master/r/97305 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-04-30media: video: tegra: ar0832: adjust frame rateJihoon Bang
Change line_length for 1080p mode in order to change frame rate from 31.30 to 29.50 fps. The reason that new fps is not 30 is because flicker detection requires fps not to be multiples of 60/50Hz. This change helps save power and lower the chance of frame drop. Bug 928296 Change-Id: I4fda13d9334c725754b3f5eab034309a1dfef3dc Signed-off-by: Jihoon Bang <jbang@nvidia.com> Reviewed-on: http://git-master/r/83636 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-26usb: otg: tegra: change logic for enable clockAndy Carman
When there is PMU interrupt we need to enable controller clock. For this currently, work is being schedule, removing this as clock can be enabled directly without scheduling any work. bug 925958 bug 941899 Signed-off-by: Andy Carman <acarman@nvidia.com> Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-on: http://git-master/r/88777 (cherry picked from commit fc31c04b7124f30970e862dd1b21a97d18dca38e) Change-Id: I8f6e7325771219488440226ddde97a32da228608 Reviewed-on: http://git-master/r/97882 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-26mmc: tegra: enable MMC_PM_IGNORE_PM_NOTIFYnaveenk
enable MMC_PM_IGNORE_PM_NOTIFY for all sd instances Bug 956238 Bug 932086 Change-Id: I4d455e480eabace403719f1813d97abfa4d01924 Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com> Reviewed-on: http://git-master/r/96071 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2012-04-26video: tegra: host: Reset 3D after power onTerje Bergstrom
Sometimes 3D unit comes up with incorrect scissor configuration. Earlier patch added the scissor registers to the context save list, but that did not solve the problem. Remove the extra registers, and reset 3D after powering it up. Bug 939307 Change-Id: Id795f2d99ec3c6b907da2785b1816ce753af7a3f Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/87654 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Graziano Misuraca <gmisuraca@nvidia.com> Tested-by: Graziano Misuraca <gmisuraca@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
2012-04-25video: tegra: dsi: Add DSI register dump in debugfs.Kevin Huang
Bug 951349 Change-Id: I79fb2e49fa38b83af78323b5f5cf6dbca8fd83c2 Signed-off-by: Kevin Huang <kevinh@nvidia.com> Reviewed-on: http://git-master/r/98512 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-04-25net: usb: raw-ip: Fix autopm / system suspend issues.Michael Hsu
Add system suspend count and avoid urb activity during system suspend. Use async autopm to avoid deadlock with system suspend. Do not allocate rx urb's constantly - allocate once upon init, free rx urb upon exit. Bug 929408, 952748, 957354 Change-Id: I4ea050fc881528cf44d2039d42891e21c9df8c4e Signed-off-by: Michael Hsu <mhsu@nvidia.com> (cherry picked from commit 8bd7322127ccf6727d949f4bc1b2a4eac4b6814e) Reviewed-on: http://git-master/r/95166 Reviewed-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-04-24hdmi: Set INJECT_NULL_SAMPLE only for stereo streamsSayak Ghosh Choudhury
Bug 953210 Change-Id: Id40b3fe90174a2a8c9a6faf3f35f61d9f7eeb642 Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com> Reviewed-on: http://git-master/r/98477 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-24video: tegra: dc: Activate register update after programmedMark Zhang
Inform DC register updated after we programmed. This eliminates the display corruption while device enters and resumes from LP0. Signed-off-by: Mark Zhang <markz@nvidia.com> bug 964626 Change-Id: I4c655d4800474c675d4cdb6204d6fe66e8c6c4b5 Reviewed-on: http://git-master/r/98336 Tested-by: Mark Zhang <markz@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Peer Chen <pchen@nvidia.com> Reviewed-by: Jon Mayo <jmayo@nvidia.com>
2012-04-24power: max17048: configure hibernate modeSyed Rafiuddin
configure fuel-gauge to enter and exit hibernate mode Change-Id: Ifaa471a4b796fc1aa2b30f109091227eb19cf6ae Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-on: http://git-master/r/97900 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-24kernel: nvhost: add OOM checksAnton Kondratenko
This change adds check for out of memory conditions after memory allocations Bug 967504 Change-Id: Icafc16528880ea376dd69a023570b85c25e3d057 Signed-off-by: Anton Kondratenko <akondratenko@nvidia.com> Reviewed-on: http://git-master/r/97113 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
2012-04-24ARM: tegra: dc: support YUV422 formatJon Mayo
Change-Id: I8aa25b03fe6801882b65209cb1a6e125ef27ac2c Signed-off-by: Michael I. Gold <gold@nvidia.com> Reviewed-on: http://git-master/r/98319 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-04-24video: tegra: dc: add tracing informationJon Mayo
add trace_printk to log useful debug information. Bug 870685 Change-Id: I29c0b1600f234ebb06d19c8b6c713b16f6e7643c Signed-off-by: Jon Mayo <jmayo@nvidia.com> Reviewed-on: http://git-master/r/89204 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Prashant Malani <pmalani@nvidia.com>
2012-04-24media: video: tegra: tegra_camera: re-arch power and clockJihoon Bang
There are a couple of issues found in tegra_camera. 1. clock enable/disable is controlled by user space. -> If client process crashes, there is no way to disable clock. 2. power enable/disable is associated with clock enable. -> There is no reason to relate power with clock. -> There is only one regulator for this driver. -> As same as #1, it may leave power up when client process crashes. 3. driver allows multiple clients to access. -> This is not the case for this driver. This changes addresses the problems described above. Bug 948780 Change-Id: Ie534771327175f56cf0e138f1c07096ddba470a8 Signed-off-by: Jihoon Bang <jbang@nvidia.com> Reviewed-on: http://git-master/r/92386 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2012-04-23video: tegra: nvavp: Add force clock stay on APIHyung Taek Ryoo
Add nvavp_force_clock_stay_on ioctl which provides way for user-mode driver to stay on AVP clock state. This change is to fix LP0 resume fail during Widevine playback. Since VDE/BSEV clocks are used by OTF driver in secure world during closing sesssion, the change makes VDE/BSEV clocks running while entering LP0. Bug 960130 Bug 961015 Change-Id: I7eaaa9a33537a72b6ae0a016372bc513fef532e2 Reviewed-on: http://git-master/r/96302 Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com> Tested-by: Hyung Taek Ryoo <hryoo@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Karan Jhavar <kjhavar@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2012-04-20tegra: usb: otg: Clear only interrupt enabling bits in suspendJoshua Cha
In resuming from LP1, USB HOST is wrongly detected in Tegra2. In that time, adb connection doesn't work also. So clear only interrupt enabling bits to fix this problem. Bug 960254 Bug 970012 Change-Id: I2f8e891ab2abcf8552526ff305d6f3a148076edd Signed-off-by: Joshua Cha <joshuac@nvidia.com> Reviewed-on: http://git-master/r/96769 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-20video: tegra: dc: update windows after set lutAdam Cheney
TEGRA_DC_EXT_SET_LUT programmed the proper shadow registers but did not copy the shadow registers to the active set. Signed-off-by: Adam Cheney <acheney@nvidia.com> bug 947281 Change-Id: Id734e128bb708f1a75c0cad22b0c51b083d8df3b Reviewed-on: http://git-master/r/91368 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-19usb: otg: tegra: callback for otg plug/un-plug notificatonSyed Rafiuddin
Addition of callback function to nofity the plug and un-plug of OTG cable to charger driver. Change-Id: I6b16d051cafe0799cffe8a05d1510da27e841f8b Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-on: http://git-master/r/97514 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Chandler Zhang <chazhang@nvidia.com> Tested-by: Chandler Zhang <chazhang@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-04-19mmc: tegra: Disable card and host clk separatelyPavan Kunapuli
Disable card clock before disabling internal clock to ensure that there are no abnormal clock waveforms. Bug 947058 Change-Id: I98a3f7f63b4380b62bead05f1018d3cddc0ac217 Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-on: http://git-master/r/95396 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-19mmc: host: Disable SDIO card clock when idlePavan Kunapuli
Disable SDIO card clock when there are no commands/ data transfers on the SD bus. Bug 958954 Bug 955742 Bug 952344 Change-Id: I7390be0406f7e46c0eb88ede2ae6f904b2181306 Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-on: http://git-master/r/95390 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-19usb: ehci: tegra: Fence read in unmap urbKrishna Yarlagadda
There is a chance that we might read an TD request which has just arrived after fence read in a interrupt handler. Added fence read in unmap urb to avoid this issue. Bug 964879 Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-on: http://git-master/r/95916 (cherry picked from commit 8d8415820014710052eef088ed2d579d0531cd52) Change-Id: Ia682654a25c685cf3dd2e76c8b9ea30427a06d89 Reviewed-on: http://git-master/r/97507 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-04-19drivers: resolve compilation time warningsSanjay Singh Rawat
bug 949219 Change-Id: I5942ba86bd1cbe1f1bd06a7c9f51a10d83e6cabb Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/92819 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-04-18i2c: tegra: support for I2C_M_NOSTART protocol manglingLaxman Dewangan
Adding support for protocol mangling I2C_M_NOSTART. Change-Id: I6cc0c96b3c374d452ea886a0f983dc5d31c4575c Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/92573 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-18power: smb349: addition of regulator interfaceSyed Rafiuddin
Addition of reglator interface to detect the usb cable plug/unplug detection. Bug 961166 Bug 966874 Change-Id: Ida297bc39df9aca8cffe60c29bc24f2d32819f56 Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Signed-off-by: Chandler Zhang <chazhang@nvidia.com> Reviewed-on: http://git-master/r/96440 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-04-18mfd: max8907c: Disable Hard Reset with Power keyAshwini Ghuge
Disable Hard Reset on long press of power key. Bug 893517 Change-Id: Ic328a04e917aa1bed6780e6f9a2f1c575f84fb68 Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com> Reviewed-on: http://git-master/r/96687 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-18usb: gadget: fsl_udc: support udc driver without otgRakesh Bodla
Currently udc driver is dependent on otg driver. Added irq work to make gadget driver work with disabling otg driver. Bug 962366 Change-Id: Id782d8003da12ace553b8b812fa410567c281b34 Reviewed-on: http://git-master/r/95106 Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Tested-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-04-17Revert "video: tegra: dc: load video mode during vblank"Jon Mayo
Change-Id: Ib1b0fc6015a9dd45982a97231972dadba6b5a92e Reviewed-on: http://git-master/r/96966 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-04-17usb: otg: tegra: set & read otg state with sysfsVenu Byravarasu
Add support for setting & reading back OTG state with sysfs bug 947300 Change-Id: I178c3eb6e2b227ca11fee8916e38c6677d3e4cb0 Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-on: http://git-master/r/96660 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-04-16cpufreq: interactive: change timer rateShridhar Rasal
Tune *timer_rate* used to increase cpu frequency. bug 943712 Change-Id: I3ded757e21825c475606976c2dcfcd75d9467ef8 Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-on: http://git-master/r/96525 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Satya Popuri <spopuri@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2012-04-16usb: ehci: tegra: use suspend_noirq()/resume_noirq()Preetham Chandru
usb driver needs to be suspended late and resumed early even before irqs are disabled/enabled. Without this change the following two issues are seen during lp0 and lp1 states. In lp0, when there is a usb wakeup event (by unplugging the usb device) we get the following error: "tegra-ehci tegra-ehci.2:fatal error" "tegra-ehci tegra-ehci.2: HC died; cleaning up" The above error comes because an irq is generated even before the usb_resume was called. A similar issue is seen in lp1 as well. Bug 954564 Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Change-Id: Id25fd2588ec034bd6aa54c17607e322f412adc5c Reviewed-on: http://git-master/r/95778 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-16USB: cdc-acm: disconnect stuck issue and acm_tty_open crashVinayak Pane
acm_disconnect() should not kill the anchored URB because they are already killed by stop_data_traffic(). Submit read URBs before control urb is sent because there is a possibility of response coming immediately after ctrl is sent. Bug 957744 Bug 961808 (cherry picked from commit 05c10cbe01f0275e5fe121d763692261c51987fc) Reviewed-on: http://git-master/r/93673 Signed-off-by: Vinayak Pane <vpane@nvidia.com> Change-Id: I5597e239ec3722afb6b4c1cd5fbe228e30af2a2d Reviewed-on: http://git-master/r/96585 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-16net: usb: raw-ip: check invalid referenceShawn Joo(Seongho)
before point reference check valid. it prevents null point reference panic. Bug 954883 Signed-off-by: Shawn Joo(Seongho) <sjoo@nvidia.com> Reviewed-on: http://git-master/r/88781 (cherry picked from commit aac87c7d9c7cf7563bb79a29d517a6ffdba5874f) Change-Id: Ica17acb6cc2a1a7ed03f41d8b569fdb6e2098fc9 Reviewed-on: http://git-master/r/96464 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-16video: tegra: nvmap: Disable CONFIG_NVMAP_ALLOW_SYSMEMHiroshi DOYU
This is necessary to introduce DMA iommu mapping API in nvmap. Change-Id: I9c043460ca08cc25c4688811a2021820aed5c9f7 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/96378 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2012-04-16usb: serial: baseband: Restructure open and closeVinayak Pane
This commit reorganizes the usb chr driver for (1) Application does not have to rmmod & insmod (2) Application recovery mechanism to restart download (3) Change memory allocation policy to accommodate in low-mem situations. (4) Avoid kernel panic when module is not removed Bug 947621 Bug 956211 Reviewed-on: http://git-master/r/91373 (cherry picked from commit bb5a148979a92191e0dfb4d97d4942f877f18309) Change-Id: I2679d1d5f94cfe6e7dc98df0026f64cab703fe5c Signed-off-by: Vinayak Pane <vpane@nvidia.com> Reviewed-on: http://git-master/r/96334 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-04-16usb: cdc-acm: fix anchored urb leakVinayak Pane
Anchored urbs needs to put ref count after unanchoring them at resume. Bug 944250 Signed-off-by: Vinayak Pane <vpane@nvidia.com> Reviewed-on: http://git-master/r/86015 (cherry picked from commit eb88ad392bdc05ce216d6adeec54c4f4856ec78a) Change-Id: I7e5413fb8866db9a15da57166402cb567f07391a Reviewed-on: http://git-master/r/96333 Tested-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-04-16net: usb: raw-ip: do not free skb if TX_BUSY flag setVinayak Pane
Consume skb buffers only in success case. In fatal error case stop tx transmission instead. This prevents many retries and possible kernel crash. Bug 937178 Signed-off-by: Vinayak Pane <vpane@nvidia.com> Reviewed-on: http://git-master/r/83290 (cherry picked from commit 974ffdc61f26d86744e1a7b1003117da50df9020) Change-Id: Ib2b982c0cea91d2ba5e30c04869c4f22dca7ed31 Reviewed-on: http://git-master/r/96331 Tested-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-04-16crypto: tegra-aes: schedule single work handlerAmit Kamath
Multiple queue were getting scheduled leading to race condition. Bug 955259 Change-Id: I7dd8d0d15b17552c3a611449642439ae21fa4b5d Signed-off-by: Amit Kamath <akamath@nvidia.com> Reviewed-on: http://git-master/r/93097 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Gerrit_Virtual_Submit Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-04-16iommu/tegra-gart: fix spin_unlock in map failure pathLucas Stach
This must have been messed up while merging, the intention was clearly to unlock there. Change-Id: Icf525a51d4899dc718710ec56a4d3fd2150501cd Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/96139 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2012-04-16iommu/tegra: smmu: Print device name correctlyHiroshi DOYU
Print an attached device name correctly. Change-Id: I8352bd81916936aa2276a51c0161f0c2be709760 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/96138 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2012-04-16HID: hid-sony: set sony PS3 controller LEDs over bluetoothNagarjuna Kristam
set PS3 controller first LED, when connected over bluetooth. Bug 847075 Change-Id: Ia32c692cbd5d7e041625d8bccfcb935ae669e82a Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com> Reviewed-on: http://git-master/r/95804 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-04-16mmc:host:tegra: make embedded sdio code conditionalMursalin Akon
Enable embedded sdio code, iff MMC_EMBEDDED_SDIO Kconfig is on. Bug 956238 Change-Id: I16539f5cad5fc66082af2f569ea36a54c12457e3 Signed-off-by: Mursalin Akon <makon@nvidia.com> Reviewed-on: http://git-master/r/90655 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-04-15regmap: fix compile errors in regmap-irq.c due to stride changesStephen Warren
Commit f01ee60fffa4 ("regmap: implement register striding") caused the compile errors below. Fix them. drivers/base/regmap/regmap-irq.c: In function 'regmap_irq_sync_unlock': drivers/base/regmap/regmap-irq.c:62:12: error: 'map' undeclared (first use in this function) drivers/base/regmap/regmap-irq.c:62:12: note: each undeclared identifier is reported only once for each function it appears in drivers/base/regmap/regmap-irq.c: In function 'regmap_irq_enable': drivers/base/regmap/regmap-irq.c:77:37: error: 'map' undeclared (first use in this function) drivers/base/regmap/regmap-irq.c: In function 'regmap_irq_disable': drivers/base/regmap/regmap-irq.c:85:37: error: 'map' undeclared (first use in this function) Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> (cherry picked from commit 56806555de5485d6786bf0f8df01b8ed9fc5d006) Change-Id: I1b0787c81695ddbfb081a1342690a44162474574 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/96511 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-15regmap: implement register stridingStephen Warren
regmap_config.reg_stride is introduced. All extant register addresses are a multiple of this value. Users of serial-oriented regmap busses will typically set this to 1. Users of the MMIO regmap bus will typically set this based on the value size of their registers, in bytes, so 4 for a 32-bit register. Throughout the regmap code, actual register addresses are used. Wherever the register address is used to index some array of values, the address is divided by the stride to determine the index, or vice-versa. Error- checking is added to all entry-points for register address data to ensure that register addresses actually satisfy the specified stride. The MMIO bus ensures that the specified stride is large enough for the register size. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> (cherry picked from commit f01ee60fffa4dc6c77122121233a793f7f696e67) Change-Id: I634977dcb0fe9ff95c7932e9195a2c1918eb1c18 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/96510 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-15regmap: fix compilation when !CONFIG_DEBUG_FSStephen Warren
Commit 79c64d5 "regmap: allow regmap instances to be named" changed the prototype of regmap_debugfs_init, but didn't update the dummy inline used when !CONFIG_DEBUGFS. Fix this. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> (cherry picked from commit abec95adefaeb2229cb28de65f3d32cd149b9dd9) Change-Id: Ieb049fa9ed0dd26d21a37592ecb25488b0909c0b Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/96509 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-04-15regmap: allow regmap instances to be namedStephen Warren
Some devices have multiple separate register regions. Logically, one regmap would be created per region. One issue that prevents this is that each instance will attempt to create the same debugfs files. Avoid this by allowing regmaps to be named, and use the name to construct the debugfs directory name. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> cherry-picked form mainline d3c242e Change-Id: Ia3301fb4d28645f1d3593e547f9409ce20c0acfe Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/96508 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>