7 years agoRevert "crypto: testmgr: add support for aes ofb mode"
Mallikarjun Kasoju [Wed, 14 Mar 2012 13:49:25 +0000]
Revert "crypto: testmgr: add support for aes ofb mode"

This reverts commit 2afef0391f30a2831f8beed6a89351682c8a81f6.

Change-Id: Ieef8fd28ba78334a4a0a1b7c64ba6fd4d0f4cb05
Reviewed-on: http://git-master/r/90082
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

Rebase-Id: Rb153f3682914d7c9f372deafe9d49e67ecd5ef9a

7 years agocrypto: tegra-se: Check for valid reqeusted buffer size
Mallikarjun Kasoju [Mon, 12 Mar 2012 03:51:25 +0000]
crypto: tegra-se: Check for valid reqeusted buffer size

Added check for valid requested process buffer size.

Bug 928454

Change-Id: I2dc389af64cb3de2f0a0a3f0bbc5057dd9bd676c
Reviewed-on: http://git-master/r/89381
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

Rebase-Id: R9fd50e7dc33a4e85e6bf2080ffea1a55edd15172

7 years agocrypto: tegra-aes: fix "syntax error" in license
Marc Dietrich [Tue, 6 Mar 2012 20:50:55 +0000]
crypto: tegra-aes: fix "syntax error" in license

Should have been "GPL v2", not "GPLv2".

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Change-Id: I7b4669c023c48e1080de7f87ed7166dc9b47884a
Reviewed-on: http://git-master/r/88101
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R384ed15a1a529d7eafd94233ebd39870c7133fc4

7 years agocrypto: tegra-aes: get hardware ownership before copying key
Varun Wadekar [Thu, 19 Jan 2012 05:45:17 +0000]
crypto: tegra-aes: get hardware ownership before copying key

Bug 917607

Change-Id: I049ca03efe7953dc6a6c03eaa4acce85e15662d1
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/76154
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>

Rebase-Id: R82c141d0b1b4e38da092ede97386a2c71c06d582

7 years agocrypto: tegra-aes: remove aes_lock usage
Varun Wadekar [Wed, 18 Jan 2012 13:45:18 +0000]
crypto: tegra-aes: remove aes_lock usage

Bug 917607

Change-Id: I6036b12456d3b5fb22f479a9e0eefd500cb6c059
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/76153
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>

Rebase-Id: R5575542e5392a7c0dbdd9cd879073c34da2679db

7 years agocrypto: tegra-aes: rng: check if bsea is busy before using it
Varun Wadekar [Mon, 12 Dec 2011 07:02:36 +0000]
crypto: tegra-aes: rng: check if bsea is busy before using it

Bug 917607

Change-Id: I7497411932b6ba8c155026f1662063e87c21eb40
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/74012
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>

Rebase-Id: Rcecec9ae6298489313818c12688e1918c5499645

7 years agocrypto: tegra-se: Fix SG buffer length mismatch
Mallikarjun Kasoju [Tue, 17 Jan 2012 14:22:05 +0000]
crypto: tegra-se: Fix SG buffer length mismatch

Fixed the case where SG buffer length is more than actual number
of bytes to process.

Bug 922857

Change-Id: I8445d8ae74b8fc6c964c19523fcd731f7ba4bd37
Reviewed-on: http://git-master/r/75701
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/75891
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: Rf944b3b3af9c4a5f0460d349523f522db5e8b11d

7 years agocrypto: tegra-se: RNG support for less than 16 Bytes
vjagadish [Sat, 26 Nov 2011 07:19:45 +0000]
crypto: tegra-se: RNG support for less than 16 Bytes

RNG support for less than 16 Bytes and or not a multiple of
16 Bytes.

Bug 893463

Change-Id: I37fff0f90004dd3116b621c5aa956cebbd6a085a
Reviewed-on: http://git-master/r/74263
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Venkata Jagadish <vjagadish@nvidia.com>
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-on: http://git-master/r/74559
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Venkata Jagadish <vjagadish@nvidia.com>

Rebase-Id: R82b591737aa6cb52cf323b3804404988c9b12cd5

7 years agocrypto: tegra-se: Make workqueue CPU unbound
Sang-Hun Lee [Tue, 20 Dec 2011 22:23:54 +0000]
crypto: tegra-se: Make workqueue CPU unbound

 - Workqueue of tegra-se does not need to be CPU bound

Bug 911397

Change-Id: I8786e8574cf3ec2e33b3869de8c8be3f0939e13f
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/71527
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R63ee049351942b71ba7464f13943e6748371f932

7 years agocrypto: tegra-se: Added a check for valid key size
Kasoju Mallikarjun [Wed, 14 Dec 2011 17:27:25 +0000]
crypto: tegra-se: Added a check for valid key size

Check for valid key size before setting the key.

Bug 915210

Change-Id: I081e2af9505ea89719d447b4b0ca2b0177860d09
Reviewed-on: http://git-master/r/70046
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

Rebase-Id: R2df39982dd9155e00be3390c6fdd5e249244deff

7 years agocrypto: tegra-aes: store keys in individual requests
Varun Wadekar [Thu, 7 Jul 2011 11:20:04 +0000]
crypto: tegra-aes: store keys in individual requests

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

Reviewed-on: http://git-master/r/40008
(cherry picked from commit 5437e3230679fbc6e342f7e6787e3cc1692e5df6)

Change-Id: Iba23e20371661c8732995d13774cf3dbba6e24b4
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R71353bb0896d2a3b6159d939fee0573b3e3342ad

7 years agocrypto: tegra-se: fix suspend routine hookup
Chris Johnson [Fri, 2 Dec 2011 19:51:25 +0000]
crypto: tegra-se: fix suspend routine hookup

In platform_pm_suspend, if there's a dev->driver->pm struct,
it expects the suspend routine to be filled in there.

With a pm struct, it won't use the platform_legacy_suspend
path, which is how tegra_se_suspend had been hooked up. This
change just moves suspend/resume into the pm ops struct.

Bug 883391

Change-Id: Iee8245676ba104d2e4cc0f2f2ffe406674cb1d5b
Signed-off-by: Chris Johnson <cwj@nvidia.com>
Reviewed-on: http://git-master/r/67989
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: Rfdd236094cbc5decc3bef146e5a8f4b4bd0e1dab

7 years agocrypto: tegra-se: Make device suspend asynchronously
Sang-Hun Lee [Tue, 6 Dec 2011 01:15:01 +0000]
crypto: tegra-se: Make device suspend asynchronously

 - Suspension of the device does not need to happen immediately

Bug 904152

Change-Id: I900f79faf85c5aca95b67b1284be18d89f36d3a9
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/68318
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rea4a1878b11518b5c5a207e2dfcc027d22a8ac14

7 years agocrypto: tegra-se: Fix device hang
Sang-Hun Lee [Mon, 5 Dec 2011 22:51:34 +0000]
crypto: tegra-se: Fix device hang

Problem description:
 - runtime_idle is called even if the device is being used
   as it is called without a lock
 - This happens when power.usage_count is incremented during rpm_idle
 - In case runtime_idle is called when the device is being used, write
   to the bus can happen with clock disabled

Fix description:
 - Instead of disabling clock on runtime_idle, disable on runtime_suspend

Bug 904152

Change-Id: I1489c62a0c8cfd84eca788d53d2013487fb7f737
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/68293
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R02f87b214bc43b9054b899b4f4d03bb82ae965c2

7 years agocrypto: testmgr: add support for aes ofb mode
Puneet Saxena [Wed, 4 May 2011 08:28:01 +0000]
crypto: testmgr: add support for aes ofb mode

the fix add testcase for testing aes ofb mode.

Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Bug 787628

cherry picked the following commit

Reviewed-on: http://git-master/r/30339
Reviewed-on: http://git-master/r/54441
(cherry picked from commit b6a86d94028d57884b85179a641a6275d6708c70)

Change-Id: I5bbd3e8a04f0281ff5c22ffcf7522ac3d4a31e30
Reviewed-on: http://git-master/r/68150
Tested-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: Rda0a754326875bb84cded5ce9474dcaecdee6554

7 years agocrypto: fix invalid return
Colin Patrick McCabe [Wed, 19 Oct 2011 19:07:27 +0000]
crypto: fix invalid return

Change-Id: I9d03b3a6876b858983739c5e8d8a166a08fb2d78
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Reviewed-on: http://git-master/r/59170
Reviewed-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R73da0f98f4e0d9912ff37cd9faebf06ef11e7bef

7 years agocrypto: tegra-se: Adding runtime PM support
venu byravarasu [Thu, 13 Oct 2011 12:52:41 +0000]
crypto: tegra-se: Adding runtime PM support

bug 886813

Change-Id: Ia016c0f783b0396d8433b202ccef1659d10085f5
Reviewed-on: http://git-master/r/57850
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R5a13865e200c1345bc30ab86b8d3286d47af5796

7 years agocrypto: tegra-se: Disable read access to all key slots
Kasoju Mallikarjun [Thu, 25 Aug 2011 11:01:28 +0000]
crypto: tegra-se: Disable read access to all key slots

To prevent unauthorized access to keys loaded into key
slots in Security engine, disabled read access for all
key slots.

Bug 868040

Original-Change-Id: I01229ff9a523192a041b7fab94ed154a65ee15e5
Reviewed-on: http://git-master/r/48998
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: Rc625e9ea7b76ba35bfd1de30c1c2d800f93d9c93

7 years agocrypto: tegra-aes: kconfig: depends on ARCH_TEGRA_3x_SOC
Varun Wadekar [Thu, 18 Aug 2011 05:17:08 +0000]
crypto: tegra-aes: kconfig: depends on ARCH_TEGRA_3x_SOC

tegra-aes driver can also be used on tegra3.

Original-Change-Id: Ic0d5e705abfefea9b43d64a9a85d748df189abc9
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/47720
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R790a786e22b3c6a4d0339971419d2be03ed2e272

7 years agocrypto: tegra-se: RNG support for more than 16 bytes
Kasoju Mallikarjun [Tue, 9 Aug 2011 12:32:28 +0000]
crypto: tegra-se: RNG support for more than 16 bytes

Added support for generating RNG for more than 16 bytes.

Bug 861777

Original-Change-Id: I414063378c1b7c31c9ef2ade950adcaa4e7db388
Reviewed-on: http://git-master/r/46066
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: Ra4ff01903b00f98b317606be3ffdfef58668aa92

7 years agocrypto: tegra-se: add LP context save support
Kasoju Mallikarjun [Thu, 4 Aug 2011 11:50:32 +0000]
crypto: tegra-se: add LP context save support

Added LP context save support in Security Engine

Bug 855476

Original-Change-Id: I384f3adcacd9e94325d40cd98d1c96a98e01aee5
Reviewed-on: http://git-master/r/44810
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: R5d891e6908a2e5f6206c7c509d7d0585b1522aee

7 years agocrypto: tegra-se: add support to use ssk
Varun Wadekar [Thu, 14 Jul 2011 09:26:02 +0000]
crypto: tegra-se: add support to use ssk

support to use ssk for some special encrypt
decrypt operations. algo names changed to match
the ones accessed by /dev/tegra-crypto

Bug 850434

Original-Change-Id: I8f13ae1fd15ffeae4aceee5799552d173560479a
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/41012
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: R86620bd834ae7740377f43c285ba86aee74bb4cc

7 years agocrypto: tegra-aes: replace dev_err and add NULL checking
Jubeom Kim [Wed, 22 Jun 2011 12:46:42 +0000]
crypto: tegra-aes: replace dev_err and add NULL checking

Changed dev_err to pr_err because 'dd' can be NULL.
Added NULL checking before clock disable of engine->pclk

Reviewed-on: http://git-master/r/37857
(cherry picked from commit 851ffd0a30cbe67a5033a9792825b319f0bcd7ed)

Original-Change-Id: If5a2bbd550f3dc038b42d8a185647d02df9cb593
Reviewed-on: http://git-master/r/38446
Tested-by: Jubeom Kim <jubeomk@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R57fa4ce4a2e95d80813448ad5234fb9bdf74faf1

7 years agocrypto: tegra-aes: validate clk_get return values
Varun Wadekar [Tue, 7 Jun 2011 13:57:52 +0000]
crypto: tegra-aes: validate clk_get return values

instead of checking for NULL, IS_ERR() should
be used to check the validity of a clock handle

Reviewed-on: http://git-master/r/#change,35619
(cherry picked from commit cfb16f57d0a846dba4cd5d6a87c05dcb8efd188d)

Change-Id: If844a166deabc7e67c9af69e4d05f59757773895
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/36218
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R9a6137402ee132e6b4c1a38ab5d51a3acb035a28

7 years agocrypto: tegra-se: code refactor and fix clock disable
Varun Wadekar [Wed, 8 Jun 2011 07:06:12 +0000]
crypto: tegra-se: code refactor and fix clock disable

- get some basic struct definitions from the header to
  the .c file
- read SE config register before disabling the clock.
  there are scenarios seen where some write transactions
  are not posted before we disable clock. a dummy SE
  register read fixes that issue.

Bug 835859

Original-Change-Id: I5e09c13262dbc392cac233a1fb6d69240b3460f2
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/35636
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R8a7380e843db8dd8fda379b9d0a2c4270d1bd40b

7 years agocrypto: tegra-aes: code refactor
Varun Wadekar [Tue, 31 May 2011 12:22:57 +0000]
crypto: tegra-aes: code refactor

- reset intr_status if error occur while encrypt/decrypt
- rename iram variables to _phys and _virt
- use bsea for rng
- remove unwanted macros from the header file

Bug 833165

Reviewed-on: http://git-master/r/#change,34552
(cherry picked from commit 4f2f0431fe196829c8ec61ab10ed5cb2ea6b5038)

Original-Change-Id: I76f221bde1e5fdb331b9b75f826c822bd3246e14
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/35194
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Ra044f128c66a8591c9d6ed29725c167334efd05d

7 years agocrypto: testmgr - Adding ofb(aes) and cmac(aes) tests
Kasoju Mallikarjun [Wed, 1 Jun 2011 12:36:46 +0000]
crypto: testmgr - Adding ofb(aes) and cmac(aes) tests

Added ofb(aes) and cmac(aes) tests

Original-Change-Id: Ia79b0f979af88d337e91164f0b8b6d0eba18cd03
Reviewed-on: http://git-master/r/34701
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: R383d7f642cab41350f54367687861615f9484cf3

7 years agocrypto: tegra-aes: performance optimisations
Varun Wadekar [Tue, 3 May 2011 11:55:56 +0000]
crypto: tegra-aes: performance optimisations

* set bsea sclk to ulong_max
* use unbounded work queues with 1 max_active
  work item on each of them
* clear INTR_STATUS per operation
* free nvmap handle after using it

Bug 803932

Reviewed-on: http://git-master/r/#change,30196
(cherry picked from commit b0f6c074aab8a9f3bddec4a204b618180df630db)

Original-Change-Id: Ica9d702db9a247110d0639c64ab65672f02d7451
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/31936
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R5a51f9a8f7133a7e08f6544bbee581e30b46c6b5

7 years agocrypto: se: tegra: Support for Security Engine
Kasoju Mallikarjun [Tue, 3 May 2011 16:29:05 +0000]
crypto: se: tegra: Support for Security Engine

Added support for Security Engine.

Following HW features are supported:

Original-Change-Id: Ic45c29add689f55be68966d333d1cb7cdb378353
Reviewed-on: http://git-master/r/29950
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R57f92020a7a713f624afe3b1d42da489bf89daba

7 years agocrypto: tegra-aes: dual core support
Sanjay Singh Rawat [Thu, 28 Apr 2011 13:25:57 +0000]
crypto: tegra-aes: dual core support

* add bsea engine support for encryption and decryption
* add arbitration semaphore id for bsea

Bug 803932

Original change: http://git-master/r/#change,29672
(cherry picked from commit 0008cdb0f38d0cd0c074671fc067c4321f340b06)

Original-Change-Id: I59fcaab29c47a8b42e7470b30486851cfe90848f
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/30190
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R6f1bf287860a24d0a535e49f516581b31092d182

7 years agoARM: tegra: Use proper type for physical addresses
Scott Williams [Wed, 13 Apr 2011 00:47:52 +0000]
ARM: tegra: Use proper type for physical addresses

Original-Change-Id: I158d2be97c795313e7e74ce9fb4ec0bdc7d95496
Reviewed-on: http://git-master/r/27559
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I0ff198daa548ed2837f7fb1794013bf0adf7e5a1

Rebase-Id: R46eb4226a3d37331db92f05d1a6e1c8e45f682a2

7 years agoUpdate copyrights
Scott Williams [Mon, 28 Mar 2011 07:34:42 +0000]
Update copyrights

Original-Change-Id: I2ffeaf6f8dfeb279b40ca6f69f6c9157401a746a

Rebase-Id: Rb4bacf7db8c96e1865380466ef7eca71d72d08bc

7 years agocrypto: tegra-aes: add support for aes-ofb mode
puneet saxena [Tue, 19 Apr 2011 10:01:40 +0000]
crypto: tegra-aes: add support for aes-ofb mode

Bug 787628

Original-Change-Id: I73c3b8f0b3e69f1c4bc13bdaea84b19b14eb73d1
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/28003
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rdf987e66c66135392489bd73ca16429d4d05d636

7 years agocrypto: tegra-aes: reclaim key slot in cra_exit
Varun Wadekar [Tue, 29 Mar 2011 10:53:23 +0000]
crypto: tegra-aes: reclaim key slot in cra_exit

clients call the algorithm's close api, which
results in the algo's cra_exit getting called, when
they are done using the hardware. we need to free the
key slot which was being used by the client when its
cra_exit is called.

Original-Change-Id: Ib42d445f5068c4ea1ef6b3edbbc547fe9eeef583
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/24673
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R8676bc01e6930c3164f8cc22d96023e0aeb44a3e

7 years agocrypto: tegra-aes: enable/disable irq per request
Varun Wadekar [Tue, 15 Mar 2011 06:21:17 +0000]
crypto: tegra-aes: enable/disable irq per request

Original-Change-Id: I7d8fe24ab5aa914fc2753f256eec261fcbf746bc
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/22594
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Re4de8ecdfd6507cad5e0196882326d00f5ae79e0

7 years agoRevert "Revert "crypto: tegra-aes: performance improvements""
Varun Wadekar [Tue, 15 Mar 2011 05:57:10 +0000]
Revert "Revert "crypto: tegra-aes: performance improvements""

This reverts commit 8bc4f710e981d53a9bd161c6c054241231e09149.

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Original-Change-Id: I0497afd3ec54e7b835de37e9941b2418e3dad4e3
Reviewed-on: http://git-master/r/22963
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rf393b9a6102e4550c44bc538ccc541879890f924

7 years agoRevert "crypto: tegra-aes: performance improvements"
Varun Colbert [Fri, 11 Mar 2011 06:28:57 +0000]
Revert "crypto: tegra-aes: performance improvements"

This reverts commit a8dbfda58a6980976de60ba46f22a5f0b2ecab5f.

Original-Change-Id: I70407c45cc5605ad9924a5a1145e18371dc9d2ef
Reviewed-on: http://git-master/r/22554
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rdfc2a43ce9137e1a7ff81b78868c2e48f91f1b02

7 years agocrypto: tegra-aes: performance improvements
Varun Wadekar [Mon, 14 Feb 2011 09:47:12 +0000]
crypto: tegra-aes: performance improvements

- set the key only at the start of encrypt/decrypt operations
- avoid using mutex in handle_req, since it is already serialised
- sanity checks while setting the iv

Original-Change-Id: I026e138f59d661cd705db6820bed63e5e15f02c5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/22162
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R11bd949802ebf158b87b8705aab5271c27da844b

7 years agocrypto: tegra-aes: do not track ssk slot
Varun Wadekar [Mon, 31 Jan 2011 05:39:51 +0000]
crypto: tegra-aes: do not track ssk slot

ssk slot is write-locked so the driver should not
track in its free slot pool.

Original-Change-Id: Ibf04a949a2894ef2c41851e7e92c13901c873bf2
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/22161
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R7ae05f50294e8a7f0241296aee53cda57aa36a5f

7 years agocrypto: tegra-aes: set vde clock to max in _probe
Varun Wadekar [Mon, 24 Jan 2011 10:00:19 +0000]
crypto: tegra-aes: set vde clock to max in _probe

Original-Change-Id: I41ba8dfc193b346eda522eadfb0f9035f4d838f8
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/22160
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R8351adfba377ede436f101194551e8091aa5528b

7 years agoplaceholders for merging
Dan Willemsen [Thu, 5 May 2011 03:13:18 +0000]
placeholders for merging

Rebase-Id: R177e2f8e2b79f789558d19e4b17863c9b29fab9e

7 years agoMerge branch 'pre-hacks/from-google' into after-pre-hacks
Dan Willemsen [Thu, 22 Mar 2012 08:11:16 +0000]
Merge branch 'pre-hacks/from-google' into after-pre-hacks

7 years agoMerge branch 'pre-hacks/dma' into after-pre-hacks
Dan Willemsen [Thu, 22 Mar 2012 08:11:15 +0000]
Merge branch 'pre-hacks/dma' into after-pre-hacks

7 years agofs: ext4: Fix computation of inodes per block group
Colin Cross [Fri, 29 Apr 2011 22:38:33 +0000]
fs: ext4: Fix computation of inodes per block group

857ac889cce8a486d47874db4d2f9620e7e9e5de (ext4: add interface
to advertise ext4 features in sysfs) added an error check that
exposes a bug in the computation of sbi->s_itb_per_group.  If
the number of inodes per group is not a multiple of the number
of inodes per block,

Original-Change-Id: I8c60817dbb6feb43535b567ec7ea5ee0af709c37
Signed-off-by: Colin Cross <ccross@android.com>
(cherry picked from commit 8703a0ccb0135ae0de0d7011f29eeb6dc1caa486)

Rebase-Id: R7fc03850010d565447bb8702710040f112705738

7 years agousb: gadget: add phy_config to fsl_devices.h
Colin Cross [Sat, 9 Apr 2011 04:33:12 +0000]
usb: gadget: add phy_config to fsl_devices.h

Original-Change-Id: I7be84ad877d1865c639ee5856f546276c8fdac73
Signed-off-by: Colin Cross <ccross@android.com>
(cherry picked from commit e8945b26135c260f91c12a85cc911a165ab07504)

Rebase-Id: R3051e65e6a756bdad25ade5f865b383d9a2164e3

7 years agoRevert "ARM: tegra: dma: Do not call complete callback on canceled requests"
Dan Willemsen [Sun, 15 May 2011 00:58:29 +0000]
Revert "ARM: tegra: dma: Do not call complete callback on canceled requests"

This reverts commit 5dba29d1f761502e75320770fc4c6cf9c8e00998.

Rebase-Id: Rb6889e4755716f5baa5c7f272ae7d8c8b6d97ba5

7 years agoRevert "serial: tegra_hsuart: Call complete callbacks when cancelling reqs"
Dan Willemsen [Sun, 15 May 2011 00:58:24 +0000]
Revert "serial: tegra_hsuart: Call complete callbacks when cancelling reqs"

This reverts commit 5bf3a3e0d18712006090000256086c4a1672cca7.



Rebase-Id: R53d1706a5d5cdd2f06756158e6a4fb0e93f840e9

7 years agoARM: Cortex-A9: Enable dynamic clock gating
Todd Poynor [Tue, 15 Feb 2011 19:48:42 +0000]
ARM: Cortex-A9: Enable dynamic clock gating

Enable dynamic high level clock gating for Cortex-A9 CPUs, as
described in 2.3.3 "Dynamic high level clock gating" of the
Cortex-A9 TRM.  This may cut the clock of the integer core,
system control block, and Data Engine in certain conditions.

Add ARM errata 720791 to avoid corrupting the Jazelle
instruction stream on earlier Cortex-A9 revisions.

Original-Change-Id: I48e51d907e593f26982ea91b0a811553f68e3c86
Signed-off-by: Todd Poynor <toddpoynor@google.com>

Rebase-Id: R7ae4d4825e9171bca2471fe776ecf363e75b9ca6

7 years agoMake tegra_defconfig compile
Dan Willemsen [Thu, 22 Mar 2012 07:22:47 +0000]
Make tegra_defconfig compile

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agommc: tegra: fixup error path
Dan Willemsen [Tue, 20 Mar 2012 00:34:37 +0000]
mmc: tegra: fixup error path

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R0dc39c843e6a708cb1fdfb7193422bc55c363e38

7 years agoRevert "mmc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device"
Dan Willemsen [Fri, 17 Jun 2011 05:33:52 +0000]
Revert "mmc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device"

This reverts commit 09e0e4fb75de1a008f00025a186d756435f9f034.

Rebase-Id: R7f871bc41beda798acea8b9c7c32d50531ad88e0

7 years agoARM: Add 'card_present' state to mmc_platfrom_data
Dmitry Shmidt [Tue, 3 May 2011 18:05:04 +0000]
ARM: Add 'card_present' state to mmc_platfrom_data

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Rebase-Id: R326381df3f4188cc1f700eb210c12b483afe9e77

7 years agoRecreate asm/mach/mmc.h include file
Colin Cross [Sat, 9 Apr 2011 05:20:53 +0000]
Recreate asm/mach/mmc.h include file

Change-Id: I9f10244b0603f7842b8504a16124d40dc4a71ed2
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: Rdc49da8123b4e700f2987a4a5ea19ad2b29ff1d6

7 years agofixup: hotplug.c: cpu_pm
Dan Willemsen [Thu, 22 Mar 2012 05:04:03 +0000]
fixup: hotplug.c: cpu_pm

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agopinmux-tegra30-tables: replace mach/suspend.h with pm.h
Dan Willemsen [Thu, 22 Mar 2012 05:02:28 +0000]
pinmux-tegra30-tables: replace mach/suspend.h with pm.h

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoHACK usb_phy.c add pinmux-tegra20.h include
Dan Willemsen [Thu, 22 Mar 2012 04:57:59 +0000]
HACK usb_phy.c add pinmux-tegra20.h include

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoHACK: add idmap.h include
Dan Willemsen [Thu, 22 Mar 2012 04:56:57 +0000]
HACK: add idmap.h include

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoHACK: partial revert of static identity_mapping_add
Dan Willemsen [Thu, 22 Mar 2012 04:50:16 +0000]
HACK: partial revert of static identity_mapping_add

commit 4e8ee7de227e3ab9a72040b448ad728c5428a042

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoHACK: fixup tegra_init_cache
Dan Willemsen [Thu, 22 Mar 2012 01:31:15 +0000]
HACK: fixup tegra_init_cache

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agovideo: fbmon: fixed E-EDID SVD entry parsing
Eric Laurent [Thu, 15 Sep 2011 17:30:46 +0000]
video: fbmon: fixed E-EDID SVD entry parsing

Fixed index calculation when parsing E-EDID block SVD entry
in fb_edid_add_monspecs().

Change-Id: I0273e2f29e86687607923d07faf99a30696f5ead
Signed-off-by: Eric Laurent <elaurent@google.com>

Rebase-Id: Rc55887d66002d58dcc5b602efb038a35807e6799

7 years agovideo: fbmon: add HDMI dectetion to fbmod edid parsing
Erik Gilling [Mon, 7 Feb 2011 03:32:17 +0000]
video: fbmon: add HDMI dectetion to fbmod edid parsing

Looks for ieee registration number 0x000c03 as per HDMI spec.
CEA-861-E section D.6.8.

Change-Id: I6875b24c66e8754510edabcb4f9ba682a50d6ac1
Signed-off-by: Erik Gilling <konkers@android.com>
Signed-off-by: Lajos Molnar <molnar@ti.com>

Rebase-Id: Rf3a48bcf800a61542c2226d728e7cde1c3889da7

7 years agovideo: fbmon: Add support for CEA pixel ratios.
Lajos Molnar [Fri, 9 Sep 2011 21:44:13 +0000]
video: fbmon: Add support for CEA pixel ratios.

CEA defines multiple timings with dual timing ratios that cannot
be distinguished from timings parameters.  Added 2 new fb flags
to specify 4:3 or 16:9 display ratios.

Also added a flag that denotes CEA formats that require repeating

Change-Id: I75d413babdcb4048a0ccce6548ed386ad0e52318
Signed-off-by: Lajos Molnar <molnar@ti.com>

Rebase-Id: Re8a9c83e4707ae0ffabf4f2a539758faeacd6211

7 years agovideo: fbmon: add remaining modes to CEA mode database
Erik Gilling [Tue, 13 Sep 2011 20:44:44 +0000]
video: fbmon: add remaining modes to CEA mode database

These mode are directly from the CEA-861-E spec.

Change-Id: Ic29390fb8dfc4605da1f95aaee0e2e775dfc0a4a
Signed-off-by: Erik Gilling <konkers@android.com>

Rebase-Id: R846f89c07d11e7b985f5437c4ecf446354147561

7 years agoRevert "video: fbmon: add HDMI dectetion to fbmod edid parsing"
Erik Gilling [Wed, 9 Nov 2011 22:18:46 +0000]
Revert "video: fbmon: add HDMI dectetion to fbmod edid parsing"

This reverts commit c326f06779fb6bdd7f92c3ede8d1bebbe2fafbfa.

Rebase-Id: Re524e8d29145ef2fe418b122c9d0eeb4b773a7eb

7 years agowatchdog: tegra_wdt: give time for spinlock lockup detection to work
JP Abgrall [Sat, 27 Aug 2011 01:39:17 +0000]
watchdog: tegra_wdt: give time for spinlock lockup detection to work

To allow the spinlock lockup detection to actually trigger after
60 seconds, the tegra_wdt heartbeat needs to be longer than that.
Bumping it to 120sec, as at the 50% marker the watchdog takes an

Change-Id: I099fd7720d65c0e2050fa91161e30485fe84a1ed
Signed-off-by: JP Abgrall <jpa@google.com>

Rebase-Id: R89dfdbb2a0d1c756a79b5e77205d74a27ab6185b

7 years agoARM: tegra: pm: hold cpus unti all have booted when exiting lp2
Colin Cross [Wed, 24 Aug 2011 02:26:33 +0000]
ARM: tegra: pm: hold cpus unti all have booted when exiting lp2

When exiting lp2, each cpu boots through cpu_resume, which
modifies the last used page table to add a 1-1 mapping in
order to turn on the mmu.  The first cpu to boot triggers
booting the second cpu, and if allowed to continue immediately
may start executing a userspace task that is using the same
page tables as the second cpu is modifying during its boot
process.  Hold each cpu in a loop until all cpus have
finished booting to ensure page tables are back to their
original state.  Each cpu triggers a global tlb flush
after it restores the page table, so all cpus will see the
original values before they exit idle.

Change-Id: Iad91ae57e2abbbec3d6d491460c3e19411b519c0
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: R110a4b1f28846af97edd39bb382e1e09c3f92330

7 years agoARM: tegra: sleep: flush tlbs when exiting wfi
Colin Cross [Wed, 24 Aug 2011 00:43:54 +0000]
ARM: tegra: sleep: flush tlbs when exiting wfi

tegra_sleep_wfi disables coherency to prepare for possibly
resetting the cpu.  If an interrupt is received, it exits
wfi and re-enables coherency, but it was not flushing the
tlbs or the branch predictor array, which could have been
updated by broadcast tlb operations that were ignored.
Flush the tlbs and branch predictor array when exiting.

Change-Id: If2c6ca3f923baf2f883f461a2a90f08833c7e191
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: Re46c9045a33ad78789e7dee2788b470fd1071c83

7 years agommc: sdhci: Enable MMC_CAP_ERASE for the tegra sdhci controller
Ken Sumrall [Thu, 18 Aug 2011 04:12:55 +0000]
mmc: sdhci: Enable MMC_CAP_ERASE for the tegra sdhci controller

Even if the card/emmc chip claims to support the Erase command,
the command won't work unless the controller is also configured
to support it.

Change-Id: Ic45fcd88dd3b3381677d907d31fa3a56bb697107
Signed-off-by: Ken Sumrall <ksumrall@android.com>

Rebase-Id: Ra7472026260294afa7d63335e7db29cadc9f1f9e

7 years agoARM: tegra: pm: save/restore ahb bus registers
Benoit Goby [Fri, 15 Jul 2011 04:26:39 +0000]
ARM: tegra: pm: save/restore ahb bus registers

Submitted on behalf of Jay Cheng <jacheng@nvidia.com>
Modified to use syscore_ops

Change-Id: Ic8a3a9559634eb3f1f0e4b40a2d8502d20d606d6
Signed-off-by: Benoit Goby <benoit@android.com>

Rebase-Id: R772632ac36f18c046f055fa71c062eda75adaf78

7 years agoARM: tegra: Enable AHB prefetch for USB
Benoit Goby [Fri, 15 Jul 2011 02:50:34 +0000]
ARM: tegra: Enable AHB prefetch for USB

Enabling AHB prefetch on USB1, USB2, USB3 controllers,
to improve the USB transfer throughput.

originally work from Rakesh Bodla <rbodla@nvidia.com>

Change-Id: I3c45bb8e97ceffbf43229b9c3d9581a565b61187
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: R70e5a98a122758afb8aafc8c9bd5fd3e0640ba2d

7 years agoARM: tegra: usb: prefetch engine buffer coherency protection
James Wylder [Tue, 21 Jun 2011 20:30:40 +0000]
ARM: tegra: usb: prefetch engine buffer coherency protection

The prefetcher fetches a total of 128 bytes, and then responding to
sequential reads with this prefetched data. To avoid coherency issues,
it discards the prefetched data if a non sequential read occurs.

Allocate dtd with 128 bytes boundary to make 2 consecutive dtd 128 bytes

Submitted on behalf of Jay Cheng <jacheng@nvidia.com>

Change-Id: I2adc02c2ac7901d0617b487cb498a34ec7a63e18
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: R5f9b91ece4b041d15bed9c1239bff073af18dcb8

7 years agousb: host: tegra: Add a short delay before the controller suspends.
Mike Corrigan [Mon, 20 Jun 2011 20:36:18 +0000]
usb: host: tegra: Add a short delay before the controller suspends.

Submission from Jay Cheng <jacheng@nvidia.com>.

Change-Id: Ic92befe618adc7bdd12c35374fb3f855d7f6a515
Signed-off-by: Mike Corrigan <michael.corrigan@motorola.com>

Rebase-Id: Rd1b4ff67cb1a4ad0df30d578072d36571b68afec

7 years agousb: gadget: tegra: update memory frequency requests to MAX
James Wylder [Tue, 21 Jun 2011 17:48:15 +0000]
usb: gadget: tegra: update memory frequency requests to MAX

Need maximum memory bandwidth to support bi-directional
transfers on multiple endpoints.

Change-Id: Idfd74c62ea0438fca7b93e82a6032a28feeab830
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: R81d4136fe8d556ecf53873e7fe3022bc8d0e2ced

7 years agoARM: tegra: small optimizations for table lookups
James Wylder [Tue, 21 Jun 2011 17:51:37 +0000]
ARM: tegra: small optimizations for table lookups

Optimization that primarily addresses when cpu frequency
is low but a high memory bandwidth is needed.

Change-Id: I4f800c2368191c744aefd9f83eb96e4c108dbcc3
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: Rb56fcfbf9ee66305b9d9cf8b02a42e3f4aab020c

7 years agoARM: tegra: usb_phy: Revise some default settings for utmi phy
Benoit Goby [Sun, 17 Jul 2011 23:59:58 +0000]
ARM: tegra: usb_phy: Revise some default settings for utmi phy

Submitted on behalf of Jay Cheng <jacheng@nvidia.com>

Change-Id: I8552e995ee5c124023dd7f5385e8ecca7a50eee8
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: R003588d3b2d55a4117d118f95b71cdc388fa19f1

7 years agoARM: tegra: clock: Add frequencies table for pll_c
Sergey Kudakov [Fri, 1 Apr 2011 00:15:43 +0000]
ARM: tegra: clock: Add frequencies table for pll_c

Change-Id: Ib64190b01fc26bfb7fb8b9059afcc172d91e8da5
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>

Rebase-Id: R36eb1e1b485a1ea31af7092b3c3ef83c0e78aad3

7 years agovideo: tegra: nvmap: perform cache maintenance for rw_handle
Greg Roth [Wed, 16 Mar 2011 20:44:47 +0000]
video: tegra: nvmap: perform cache maintenance for rw_handle

Need cache maintenance on rw_handle to remove
display garbage issue which happens randomly.

Change-Id: I73606ae6551c0e75058e055f4a19e5f074a47004
Signed-off-by: Greg Roth <groth@nvidia.com>

Rebase-Id: R90e3ef151b634a47639a314e3d990eda4671ec73

7 years agoRevert "ARM: tegra: resolve ulpi disconnect issue"
Colin Cross [Fri, 17 Jun 2011 23:27:21 +0000]
Revert "ARM: tegra: resolve ulpi disconnect issue"

Commit 190f7b3ed5a597d2232e9047b50ac2d7613c3272 was an incorrect
merge, revert it.

Change-Id: I1c7e09fdbaad6637326facbc0ee06117bfb15e48

Rebase-Id: R224f9a9eb78f2758ca6c7ad423719ad20d61c826

7 years agovideo: tegra: add support for tiled surfaces
Michael I. Gold [Thu, 31 Mar 2011 02:07:07 +0000]
video: tegra: add support for tiled surfaces

Change-Id: I82497fc756552740836eaa2f608fecaea409cfeb
Signed-off-by: Michael I. Gold <gold@nvidia.com>

Rebase-Id: R546a39a04712c0dbb6fcc51f60fb9ccb20fc46d5

7 years agovideo: tegra: add display inversion support
Ari Hirvonen [Wed, 2 Mar 2011 00:06:27 +0000]
video: tegra: add display inversion support

Change-Id: Ied3851e0cb801f607499493f1e552f42daa97e6b
Signed-off-by: Ari Hirvonen <ahirvonen@nvidia.com>

Rebase-Id: Ref0a8a3fad3a8ddcea612106a2a7e08a7a33e325

7 years agousb: ehci: tegra: Correctly handle GetPortStatus during Resume
Nathan Connell [Mon, 2 May 2011 19:32:36 +0000]
usb: ehci: tegra: Correctly handle GetPortStatus during Resume

Multiple GetPortStatus requests can be made while the
USB bus is resuming.  All requests must be handled
properly to prevent incorrect disconnect detection
during Resume and improper indentification of
Resume signaling as a remote wakeup event.

Change-Id: Ib07f83a2bab5699b2d95533d26d0a6bf541c697d
Signed-off-by: Nathan Connell <w14185@motorola.com>

Rebase-Id: R6d2c8b1b85fb37d1e1d7dad3051098b0d42ed71a

7 years agousb: host: tegra: update memory frequency requests to 150 MHz
James Wylder [Fri, 11 Mar 2011 22:39:43 +0000]
usb: host: tegra: update memory frequency requests to 150 MHz

With the previous change in memory frequency (200 MHz
to 150 MHz) requests of 200 MHz will round up to full
speed.  This negatively impacts current drain.

Change-Id: Ib67d8eaff57836a2f1756d84cce6533539911178
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: R4c915ea04c3319ddd1962b24199d2e50e18fae06

7 years agousb: gadget: tegra: update memory frequency requests to 150 MHz
James Wylder [Fri, 11 Mar 2011 22:39:43 +0000]
usb: gadget: tegra: update memory frequency requests to 150 MHz

With the previous change in memory frequency (200 MHz
to 150 MHz) requests of 200 MHz will round up to full
speed.  This negatively impacts current drain.

Change-Id: Iefdb3a50aff338b44daa8311218400e4b4586152
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: R39ff6f546ba05e471bb1e95cca6a78e35492099a

7 years agovideo: tegra: dc: Fix introduced regression.
Andrei Warkentin [Tue, 3 May 2011 21:41:08 +0000]
video: tegra: dc: Fix introduced regression.

Removes changes to DC reset flow.

Change-Id: I491b6771c205bec7e19d4c661bb6d376ea8e25e4
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>

Rebase-Id: Rff4fa57c697204ac1b0521eaf54c36acc346953f

7 years agoARM: tegra: syncpt: Fix irq calls for 2.6.39
Colin Cross [Sat, 9 Apr 2011 02:16:20 +0000]
ARM: tegra: syncpt: Fix irq calls for 2.6.39

Change-Id: Ic69e022649bae71dd6d9a034c4da97e4197e5dc2
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: Re15a3882c7aa988daa0a3a0cfc643f89acc1eb61

7 years ago[ARM] tegra: syncpt: Move syncpt handling to syncpt.c
Colin Cross [Sat, 21 Aug 2010 20:21:45 +0000]
[ARM] tegra: syncpt: Move syncpt handling to syncpt.c

Change-Id: I8ee2cde45d424e74465f62d1c2185291c30ac982
Signed-off-by: Colin Cross <ccross@google.com>

Rebase-Id: R3f4a640e1e43f4d250d7265ab331c33c84ff3000

7 years agoARM: tegra: i2s: change driver name to match devices.c
Colin Cross [Sat, 9 Apr 2011 18:49:10 +0000]
ARM: tegra: i2s: change driver name to match devices.c

Change-Id: Id49b641dfded1300fa37fb57648f4706fca19270
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: R1180fd83081ffd26bb2395ac8ccbc2fe5e8a5aef

7 years agoARM: tegra: apbio: move init to arch_initcall
Colin Cross [Sat, 9 Apr 2011 18:48:48 +0000]
ARM: tegra: apbio: move init to arch_initcall

Change-Id: Iaf07fe2412a012c3b02850fecc6f1dba90bd8ff1
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: R5c5139c1bb411ba389b312f359105acc8bf92285

7 years agousb: gadget: tegra: Fix dropped variable
Colin Cross [Sat, 9 Apr 2011 03:57:05 +0000]
usb: gadget: tegra: Fix dropped variable

Change-Id: I20a86be55a20d8658e5d5dc92ae6c733dacce3bb
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: Refda099ecf0d13fb1b5c8193aafa9f4a59b096ed

7 years agommc: host: sdhci-tegra: Add set_clock op
Colin Cross [Fri, 6 May 2011 04:48:54 +0000]
mmc: host: sdhci-tegra: Add set_clock op

Add a set_clock op to sdhci-tegra to allow the clock to be
disabled.  Also add suspend and resume ops to disable
the clock before suspend, and enable it during resume.

Change-Id: I239cb769b54c83a1bd4a80b73e1c4845ce2d165d
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: Rbf12d34ca4f97a02931672f600a03cd92008d556

7 years agommc: host: sdhci-pltfm: Add suspend and resume hooks to sdhci platform
Colin Cross [Fri, 6 May 2011 04:47:55 +0000]
mmc: host: sdhci-pltfm: Add suspend and resume hooks to sdhci platform

Change-Id: I062fbe91d8af14366a92af1a27e9dab49869905c
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: R3eb206857e57a61e445a1dd6b7efdc63ab1e0dd5

7 years agoARM: tegra: resolve ulpi disconnect issue
James Wylder [Thu, 7 Apr 2011 21:02:19 +0000]
ARM: tegra: resolve ulpi disconnect issue

Correct phy start-up sequence.
Put the phy in low power mode.
Tristate ulpi interface when USB controller is resuming

Change-Id: I1b326c16b56b9fd2d424afb8cf0888da6c9e245e
Signed-off-by: James Wylder <james.wylder@motorola.com>

Rebase-Id: Rbad940bd33344922b68b4ffc58f802f3877da89b

7 years agousb: gadget: fsl_udc: Fix a race between ep_disable and ep_queue
Benoit Goby [Sat, 9 Apr 2011 03:53:59 +0000]
usb: gadget: fsl_udc: Fix a race between ep_disable and ep_queue

Fixed a possible null pointer exception when an endpoint gets
disabled while a request is being enqueued in parallel.

Unmap the request buffer if we fail to enqueue the request.

Change-Id: If94cc278c2e6ab58adcf170511e676348365f3f9
Signed-off-by: Benoit Goby <benoit@android.com>

Rebase-Id: Rdc20450f2b7621ef73baf89c84219bac34994651

7 years agousb: gadget: fsl_udc: Unlock the spinlock before calling clk_enable
Benoit Goby [Wed, 29 Sep 2010 23:04:25 +0000]
usb: gadget: fsl_udc: Unlock the spinlock before calling clk_enable

On suspend, dr_controller_stop disable interrupts and on resume, interrupts
are disabled until dr_controller_run is called, so it is safe to call
fsl_udc_clk_suspend/resume with interrupts and the spinlock unlocked.

Change-Id: I33618295ea096a4bfd796d1a07dfc9722e7786b0
Signed-off-by: Benoit Goby <benoit@android.com>

Rebase-Id: Rbff9f8b7b1797055d21d8c201d56c72631183344

7 years agousb: gadget: Enable/disable the gadget device on vbus_session calls
Benoit Goby [Wed, 1 Sep 2010 00:09:39 +0000]
usb: gadget: Enable/disable the gadget device on vbus_session calls

If we use an OTG driver, the driver will detect VBUS changes and notify
the gadget driver through vbus_session. Enable/disable the gadget driver
in vbus session so that there is no need to check the OTG state on every

Change-Id: I617ad5742be2632b2257b71314db8f330be463d5
Signed-off-by: Benoit Goby <benoit@android.com>

Rebase-Id: Rbf3f31d373f57989244f916b220c44e526eff826

7 years agousb: gadget: Reset the controller when cable is unplugged
Benoit Goby [Sat, 9 Apr 2011 03:50:59 +0000]
usb: gadget: Reset the controller when cable is unplugged

Reset the controller when the cable is unplugged to leave it in the idle
state. The OTG driver will reconfigure it on vbus/id pin detection.

Change-Id: I87903ec86f3c35af64a141f27a34cc0720a61b08
Signed-off-by: Benoit Goby <benoit@android.com>

Rebase-Id: R2232a70c504450bae460cc7031e7d9e40762173b

7 years agommc: tegra: Add explicit card-detect processing
Dmitry Shmidt [Tue, 3 May 2011 18:14:53 +0000]
mmc: tegra: Add explicit card-detect processing

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Rebase-Id: R34adf5d554f3293056594a9c6f53fe9d47f7b1b4

7 years agommc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device
Dmitry Shmidt [Thu, 5 May 2011 18:04:51 +0000]
mmc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Rebase-Id: Rad8d0a03033ce72961ffb8be8610f248139a057e

7 years agoARM: tegra: mmc: Add mmc_platform_data to tegra_sdhci_platform_data
Dmitry Shmidt [Tue, 3 May 2011 18:10:43 +0000]
ARM: tegra: mmc: Add mmc_platform_data to tegra_sdhci_platform_data

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Rebase-Id: R1bbe99a52288eb16d07fb876a601f8a049e4858e

7 years agoARM: tegra: Add WIFI_CONTROL_FUNC config
Dmitry Shmidt [Tue, 3 May 2011 18:09:38 +0000]
ARM: tegra: Add WIFI_CONTROL_FUNC config

Change-Id: Ia423e7f87f8994a4cbcf752562692c568fe2bf68
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Rebase-Id: R82c561f48621fe6e44880cc53d24426ddd4f7676