summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2012-01-11net: bpf_jit: fix an off-one bug in x86_64 cond jump targetMarkus Kötter
[ Upstream commit a03ffcf873fe0f2565386ca8ef832144c42e67fa ] x86 jump instruction size is 2 or 5 bytes (near/long jump), not 2 or 6 bytes. In case a conditional jump is followed by a long jump, conditional jump target is one byte past the start of target instruction. Signed-off-by: Markus Kötter <nepenthesdev@gmail.com> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: Ib8b7320109c5fc492688d63fc3089fd0868a0aa1 Reviewed-on: http://git-master/r/74213 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11sparc: Fix handling of orig_i0 wrt. debugging when restarting syscalls.David S. Miller
[ A combination of upstream commits 1d299bc7732c34d85bd43ac1a8745f5a2fed2078 and e88d2468718b0789b4c33da2f7e1cef2a1eee279 ] Although we provide a proper way for a debugger to control whether syscall restart occurs, we run into problems because orig_i0 is not saved and restored properly. Luckily we can solve this problem without having to make debuggers aware of the issue. Across system calls, several registers are considered volatile and can be safely clobbered. Therefore we use the pt_regs save area of one of those registers, %g6, as a place to save and restore orig_i0. Debuggers transparently will do the right thing because they save and restore this register already. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I904bc58192c45c132938a97629578a954f26478d Reviewed-on: http://git-master/r/74212 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11sparc64: Fix masking and shifting in VIS fpcmp emulation.David S. Miller
[ Upstream commit 2e8ecdc008a16b9a6c4b9628bb64d0d1c05f9f92 ] Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: Id8e8670b16cd66ceb1ac5c42a0f784a657f069e3 Reviewed-on: http://git-master/r/74211 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11sparc32: Correct the return value of memcpy.David S. Miller
[ Upstream commit a52312b88c8103e965979a79a07f6b34af82ca4b ] Properly return the original destination buffer pointer. Signed-off-by: David S. Miller <davem@davemloft.net> Tested-by: Kjetil Oftedal <oftedal@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I382ae5b35768be56473c8e92d68e2f3c74bf1422 Reviewed-on: http://git-master/r/74210 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11sparc32: Remove uses of %g7 in memcpy implementation.David S. Miller
[ Upstream commit 21f74d361dfd6a7d0e47574e315f780d8172084a ] This is setting things up so that we can correct the return value, so that it properly returns the original destination buffer pointer. Signed-off-by: David S. Miller <davem@davemloft.net> Tested-by: Kjetil Oftedal <oftedal@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I1515c20b1bcb29e9d32fedaa7fc2af3bfea265cb Reviewed-on: http://git-master/r/74209 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11sparc32: Remove non-kernel code from memcpy implementation.David S. Miller
[ Upstream commit 045b7de9ca0cf09f1adc3efa467f668b89238390 ] Signed-off-by: David S. Miller <davem@davemloft.net> Tested-by: Kjetil Oftedal <oftedal@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I469c7a79eaa35d3b5dcc1e6c1468174aa96dd87f Reviewed-on: http://git-master/r/74208 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11sparc: Kill custom io_remap_pfn_range().David S. Miller
[ Upstream commit 3e37fd3153ac95088a74f5e7c569f7567e9f993a ] To handle the large physical addresses, just make a simple wrapper around remap_pfn_range() like MIPS does. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I6817a588d5422f96a100466db56d11c33aa39ec4 Reviewed-on: http://git-master/r/74207 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11sparc64: Patch sun4v code sequences properly on module load.David S. Miller
[ Upstream commit 0b64120cceb86e93cb1bda0dc055f13016646907 ] Some of the sun4v code patching occurs in inline functions visible to, and usable by, modules. Therefore we have to patch them up during module load. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I52459596488560825f22a9eb4c4afb3c0e2b3428 Reviewed-on: http://git-master/r/74206 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11sparc32: Be less strict in matching %lo part of relocation.David S. Miller
[ Upstream commit b1f44e13a525d2ffb7d5afe2273b7169d6f2222e ] The "(insn & 0x01800000) != 0x01800000" test matches 'restore' but that is a legitimate place to see the %lo() part of a 32-bit symbol relocation, particularly in tail calls. Signed-off-by: David S. Miller <davem@davemloft.net> Tested-by: Sergei Trofimovich <slyfox@gentoo.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I588195deba991fe368241abdc4f270d6d3792e7d Reviewed-on: http://git-master/r/74205 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11sparc64: Fix MSIQ HV call ordering in pci_sun4v_msiq_build_irq().David S. Miller
[ Upstream commit 7cc8583372a21d98a23b703ad96cab03180b5030 ] This silently was working for many years and stopped working on Niagara-T3 machines. We need to set the MSIQ to VALID before we can set it's state to IDLE. On Niagara-T3, setting the state to IDLE first was causing HV_EINVAL errors. The hypervisor documentation says, rather ambiguously, that the MSIQ must be "initialized" before one can set the state. I previously understood this to mean merely that a successful setconf() operation has been performed on the MSIQ, which we have done at this point. But it seems to also mean that it has been set VALID too. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I6c1c9cf6f1336fc332d2e1fc0453e2bc16a7089b Reviewed-on: http://git-master/r/74204 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11oprofile, arm/sh: Fix oprofile_arch_exit() linkage issueVladimir Zapolskiy
commit 55205c916e179e09773d98d290334d319f45ac6b upstream. This change fixes a linking problem, which happens if oprofile is selected to be compiled as built-in: `oprofile_arch_exit' referenced in section `.init.text' of arch/arm/oprofile/built-in.o: defined in discarded section `.exit.text' of arch/arm/oprofile/built-in.o The problem is appeared after commit 87121ca504, which introduced oprofile_arch_exit() calls from __init function. Note that the aforementioned commit has been backported to stable branches, and the problem is known to be reproduced at least with 3.0.13 and 3.1.5 kernels. Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@nokia.com> Signed-off-by: Robert Richter <robert.richter@amd.com> Cc: Will Deacon <will.deacon@arm.com> Cc: oprofile-list <oprofile-list@lists.sourceforge.net> Link: http://lkml.kernel.org/r/20111222151540.GB16765@erda.amd.com Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I6a8f198e5d3573276fba8efa3d2e006da5f02e1f Reviewed-on: http://git-master/r/74197 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11ARM:imx:fix pwm period valueJason Chen
commit 5776ac2eb33164c77cdb4d2b48feee15616eaba3 upstream. According to imx pwm RM, the real period value should be PERIOD value in PWMPR plus 2. PWMO (Hz) = PCLK(Hz) / (period +2) Signed-off-by: Jason Chen <jason.chen@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I2afb2920cb25c74bbb16a6b60c6316fb02f434c0 Reviewed-on: http://git-master/r/74194 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11oprofile: Fix uninitialized memory access when writing to writing to oprofilefsRobert Richter
commit 913050b91eb94f194392dd797b1ff3779f606ac0 upstream. If oprofilefs_ulong_from_user() is called with count equals zero, *val remains unchanged. Depending on the implementation it might be uninitialized. Change oprofilefs_ulong_from_user()'s interface to return count on success. Thus, we are able to return early if count equals zero which avoids using *val uninitialized. Fixing all users of oprofilefs_ulong_ from_user(). This follows write syscall implementation when count is zero: "If count is zero ... [and if] no errors are detected, 0 will be returned without causing any other effect." (man 2 write) Reported-By: Mike Waychison <mikew@google.com> Signed-off-by: Robert Richter <robert.richter@amd.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: oprofile-list <oprofile-list@lists.sourceforge.net> Link: http://lkml.kernel.org/r/20111219153830.GH16765@erda.amd.com Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: Ic9b5dd12ec6e93b609b0e61acd02944352cd436d Reviewed-on: http://git-master/r/74177 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11MXC PWM: should active during DOZE/WAIT/DBG modeJason Chen
commit c0d96aed8c6dd925afe9ea35491a0cd458642a86 upstream. Signed-off-by: Jason Chen <jason.chen@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: Icc9894300313f95acc1f44580d96f7b4cb81afa3 Reviewed-on: http://git-master/r/74171 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-11ARM: OMAP: rx51: fix USBFelipe Contreras
commit e5fe29c7198a1f6616286dfc8602a69da165cb3f upstream. Commit 10299e2e4e3ed3b16503d4e04edd48b33083f4e2 (ARM: RX-51: Enable isp1704 power on/off) added power management for isp1704. However, the transceiver should be powered on by default, otherwise USB doesn't work at all for networking during boot. All kernels after v3.0 are affected. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Reviewed-by: Sebastian Reichel <sre@debian.org> [tony@atomide.com: updated comments] Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I3d121b72126c37320b1485ba98a67f3a132e22cc Reviewed-on: http://git-master/r/74155 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10arm: enterprise: tegra: Fix typo.Krishna Reddy
Fix typo in the #defines around enterprise_carveouts. Change-Id: Ia3afe520504a2833c540a669ad54fbcfadff6254 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/74053 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
2012-01-10arm: tegra3: config: enable dynamic debug print supportPritesh Raithatha
Bug 921207 Change-Id: Id58bb2c144645a3105a3111ef7ed4eb3da528644 Reviewed-on: http://git-master/r/73719 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/73967 Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10ARM: tegra: defconfig: Enable H/W statmonPrashant Gaikwad
Bug 920989 Change-Id: Ic1239ee799ac4e80e356ca7b9664f7875af91dce Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-on: http://git-master/r/73145 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit 7160189436da41570ad3a69155f0a7f633bd9ca9) Reviewed-on: http://git-master/r/73961 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10arm: tegra: comms: Resume issue with XMM flashed modemSeshendra Gadagottu
power_onff flag updated correctly for flashed modem. BUG 905931 Change-Id: I383b1e01e380c04d8fd0179c50c77e4adf6f2a0b Reviewed-on: http://git-master/r/72894 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Michael Hsu <mhsu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit c70dc7a8bc0c0bff5b09b5099d5ac3a1a1b2299d) Reviewed-on: http://git-master/r/73960 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10ARM: Tegra: fuse: Add A04 revisionPrashant Gaikwad
Change-Id: Ie1facdb47d9eae2438f1bb3928db174690dd2e4d Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-on: http://git-master/r/72862 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit da61c8810313729b8c8f451f6cf1586afff2bf12) Reviewed-on: http://git-master/r/73959 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10ARM: tegra: ventana: VDD_DDR_RX should NEVER be powered offArtiste Hsu
bug 871544 VDD_DDR_RX is a reference voltage used by the DDR/LPDDR IO cells. If this supply is turned off and memory accesses are taking place then the values read from the Memory may be corrupted. (cherry picked from commit Id01d051ce02ed1d30484c42297624483f6561314) Reviewed-on: http://git-master/r/50764 Change-Id: Ib4832f3a856b01411f626d5870ab2fc440eccdd1 Signed-off-by: Artiste Hsu <chhsu@nvidia.com> Reviewed-on: http://git-master/r/72797 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit c3e189bdefae5d4568b4a67fa48bb1c7b880c22a) Reviewed-on: http://git-master/r/73958 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10arm: tegra: ventana: set eMMC in 8bit modeArtiste Hsu
bug 907745 Change-Id: Ib51b125b419e374ac7b9874335ddb34ef30a1aa8 Signed-off-by: Artiste Hsu <chhsu@nvidia.com> Reviewed-on: http://git-master/r/72795 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit e5d445086995f1180b1c5e0dda01410937709b64) Reviewed-on: http://git-master/r/73957 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10Tegra: Pinmux: Fixed up errors about DTV interfaceAdam Jiang
Pin configuration on DTV interface could be enabled by this patch. Fixed Bug 904626 Fixed Bug 881303 Change-Id: I6b5dc12629740bb8275156df9d9a5b4ca9dae352 Signed-off-by: Adam Jiang <chaoj@nvidia.com> Reviewed-on: http://git-master/r/66626 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Animesh Kishore <ankishore@nvidia.com> Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com> (cherry picked from commit c34733e5ea933b322cd5edbceb93f921ffe413de) Reviewed-on: http://git-master/r/73955 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10arm: tegra: power: Fix build errors if PM_SLEEP is not selectedScott Williams
Change-Id: I2e7fa55c5d02ada3b203ec9627a4d91a5f17ca9b Signed-off-by: Scott Williams <scwilliams@nvidia.com> Reviewed-on: http://git-master/r/73539 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> (cherry picked from commit e3b0a2205133e5209a9e35c2300c03d384b1ae2a) Reviewed-on: http://git-master/r/73954 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10tegra: usb_phy: increase delay for stable line valuesRakesh Bodla
Increase the delay before usb detectors for stable line values. Bug 882441 Change-Id: I64b0a34f06948f3283188fdc22e6d0075ce044d6 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/73385 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> (cherry picked from commit 6de4bf955bf4af7bbd0e9bf5d69b5b425d7cb000) Reviewed-on: http://git-master/r/73953 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10arm: tegra: REVERT "use unsigned cpuidle latency variables"Joseph Lehrer
Reverting until LP2 hang problem better understood. bug 896827 Reverts I8c8226433d26efbbc1579372c9a73cbc5897f26c Signed-off-by: Joseph Lehrer <jlehrer@nvidia.com> Change-Id: I9ae1f8e75b77049baf26480691b98e6f9cacca4e (cherry picked from commit c0b30ab66c5f1286a5c1f10777c436a80f8f2fa8) Reviewed-on: http://git-master/r/72905 Reviewed-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Matt Wagner <mwagner@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Karan Jhavar <kjhavar@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-by: Joseph Lehrer <jlehrer@nvidia.com> Tested-by: Joseph Lehrer <jlehrer@nvidia.com> (cherry picked from commit 3d7b52eaf614848e8417c84b819c76faed306503) Reviewed-on: http://git-master/r/73951 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10arm: tegra: baseband: Enable autosuspend for Icera modemSteve Lin
Bug 854339 Bug 909614 Reviewed-on: http://git-master/r/67043 (cherry picked from commit 8888fb8c193295b77224ff71de45794db01c7c92) Change-Id: I8a8cca0f8126d2e70710fcadad4c115bc0251e6d Reviewed-on: http://git-master/r/70976 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Jonathan Roux <jroux@nvidia.com> Reviewed-by: Steve Lin <stlin@nvidia.com> (cherry picked from commit 65b1a3d7f6ad78f92af1825f46b2fbb9306d377d) Reviewed-on: http://git-master/r/73949 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10arm: tegra3: config: Build SND_HDA_INTEL as a moduleRahool Paliwal
Build SND_HDA_INTEL as a module. SND_HDA_INTEL is required for audio on HDMI. Building it with "y" makes it default ALSA device, which then blocks all multimedia audio use cases. Bug 921550 922497 922520 Change-Id: I7cf437d10b21d8e99c9e6a783f63399d3b883e75 Signed-Off-By: Rahool Paliwal <rpaliwal@nvidia.com> Reviewed-on: http://git-master/r/73724 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-06ARM: tegra: uarte: Enable loopbackPradeep Goudagunta
Enable uarte as loopback interface for Cardhu and Enterprise boards. Bug 845036 Bug 921090 Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Change-Id: Ib27a9dadeefec11fdf5a31ecd887eb2d788350d0 Reviewed-on: http://git-master/r/73178 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
2012-01-06arm: tegra: whistler: GME pingroup tristatedBitan Biswas
GME pin group is tri-stated on whistler to save VDDIO_NAND power bug 916292 Change-Id: Id6c049c24d9f59d20f33f105b32c62f79124a6ed Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: http://git-master/r/73008 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-01-06arm: tegra2: clocks: add fuse and fuse_burn clocksVarun Wadekar
These clocks are needed for fuse programming and was added to the tegra3 code but not to the tegra2 code. Bug 906200 Change-Id: I3ff13e526c252406a5107c5e9f7dd0af8f31c98b Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/72136 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-01-06arm: tegra: whistler: enable tegra-aes driverVarun Wadekar
Bug 921655 Change-Id: I43e35ecb87d9792b54ded64690c1bfbc7919a634 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/73161 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Shridhar Rasal <srasal@nvidia.com> Tested-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
2012-01-06arm: tegra: Disable pll_p_out clocks by defaultScottPeterson
Disable unused pll_p_out clocks until they are needed to reduce power. Change-Id: I60c2a7ca50a957f23ca20ec559dbbb1aa26ca797 Reviewed-on: http://git-master/r/72464 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2012-01-06ARM: tegra: Clean up tsensor includesDan Willemsen
mach-tegra/tegra3_tsensor.h is used for the parameterized initialization of the tsensor device. mach-tegra/include/mach/tsensor.h is used for the tsensor device driver. Really, mach-tegra/tegra3_tsensor.c should go away - probably becoming a device driver. Change-Id: I16edae878f1e97d1654252cfee49cd9dd7f77db7 Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-on: http://git-master/r/72481 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-01-06ARM: tegra: cpufreq: add cpu to emc mapping for AP25Prashant Gaikwad
With current mapping for CPU frequency greater than 816 MHz EMC frequency will be always 600 MHz. AP25 max EMC frequency is 760MHz. If CPU frequency is greater than 1GHz then set EMC frequency to 760 MHz. Change-Id: I617e1637bd14c3c8560ffdfa17769f6554059609 Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-on: http://git-master/r/67893 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-01-06ARM: tegra: whistler: use SKU to initialize EMCPrashant Gaikwad
EMC chip id is same for different whistler boards. Use SKU to initialize EMC. Change-Id: I133711e9cfdf5beb8d26e076069c096ccd98af5c Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-on: http://git-master/r/67892 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-01-06Revert "Revert "ARM: tegra: whistler: Add AP25 EMC scaling table""Prashant Gaikwad
This reverts commit 5f1a3978ce2f00d531d4c831b7b34ed55e960572. Change-Id: I6650d3e51eb5fcb4048e8ed84bdafebc0307ce5a Reviewed-on: http://git-master/r/72930 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-01-06ARM: tegra: dvfs: Update Tegra3 CPU DVFS tablesAlex Frid
Bug 817679 Bug 841336 Change-Id: I9a9d9e7a03b64774b1d2ebd8533be85582827515 Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: http://git-master/r/71755 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-01-06arm: tegra: Enable HDMI for harmonyPreetham Chandru
Enabled HDMI support for harmony. Bug: 911662 Change-Id: I50d513dc0705fb64fc3946c1518b60b885d6194e Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Reviewed-on: http://git-master/r/72611 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-01-06ARM: tegra: dvfs: Re-arrange Tegra3 scaling voltagesAlex Frid
Removed 925mV and 950mV steps / added 1.175mV and 1.212mV Tegra3 CPU voltage scaling steps. Bug 841336 Change-Id: I51f91df857ab3df7d66fcee4cda21318cd3b23eb Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: http://git-master/r/71738 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2012-01-06ARM: tegra: power: L2 cache sync only for CPU0 LP2Prashant Gaikwad
Bug 922010 Change-Id: I19724ae5d8421b2fccfc604ecb0a867d20fddf75 Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-on: http://git-master/r/72986 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-01-05Linux 3.1.7Varun Wadekar
Change-Id: I99507d7cfdcee064f808856dc2ce99d806fd864f
2012-01-04arm: tegra: fix for spurious INT on PNP of uartRamalingam C
On Harmony during PNP of UART console, spurious interrupts are triggered continuously. Hence kernel/irq/spurious.c will disable the interrupt. To avoid the trigger of spurious interrupts, this patch disables the modem status interrupts. Bug: 909044 Change-Id: I00529ed16503d2c29f377e558b90f2c379e8b624 Signed-off-by: Ramalingam C <ramalingamc@nvidia.com> Reviewed-on: http://git-master/r/72751 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-01-04arm: tegra: delete the debugfs sys entry for suspendVandana Salve
Deleted the tegra debugfs /sys entry. Instead have a unified /sys/power/suspend/mode sysfs entry to set the suspend state. Bug 911096 Change-Id: I280eb0ed0f5c8b46c2147d84c27b1cf728078709 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/72419 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-01-04ARM: tegra: pinmux: Support for setting pin ioPradeep Goudagunta
-Added support for setting a pin io state to INPUT/OUTPUT. -Exported tegra_pinmux _get_pingroup/_set_io to make them available to loadable kernel modules. Bug 845065 Change-Id: I7d9500f590b804d1d222dfd7e42d1dbfc6686611 Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/71975 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-01-04tegra3: clock: Support for divisor 15.1Laxman Dewangan
Uart clock source has divisor of 16 bits where LSB is 0.5. Adding support for divisor 15.1 and configuring uart for use the 15.1 type divisor. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Change-Id: Ifdd77041e7abb43026bbfb273f6e12923d64d607 Reviewed-on: http://git-master/r/70324 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2012-01-04arm: tegra: power: io dpd APIs definedBitan Biswas
Defined IO deep power down(DPD) APIs for tegra drivers - tegra_io_dpd_get - returns dpd handle tegra_io_dpd_enable - enable driver dpd tegra_io_dpd_disable - disables driver dpd bug 919993 Change-Id: I45976b41dca0e3e9266ace86393ef4db8b20c97b Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: http://git-master/r/72737 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-01-04ARM: tegra3: config: enable R8169Mursalin Akon
Enable Cardhu dock Ethernet Change-Id: Icc2f6329938f74816b304ff32dd7b554f645b088 Signed-off-by: Mursalin Akon <makon@nvidia.com> Reviewed-on: http://git-master/r/70634 Reviewed-by: Lokesh Pathak <lpathak@nvidia.com> Tested-by: Lokesh Pathak <lpathak@nvidia.com>
2012-01-03arm: configs: tegra2: Enable mtd and yaffsPreetham Chandru
Enabled mtd and yaffs support for harmony Bug: 921742 Change-Id: I9ccadf8bd568f8c1421351378e94f17a92a6d322 Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Reviewed-on: http://git-master/r/72870 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-03arm: tegra: disable auto repeat key events for android platformsNitin Kumbhar
Repeat key events reported to android causes keys (e.g power key) to be treated differently. Disable EV_REP on android platforms for now. BUG 918758 Change-Id: I62a7c495303a906ef72738465ce5101d244e725d Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: http://git-master/r/72953 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>