7 years agomisc: nct1008: idle read temperature
Bitan Biswas [Tue, 18 Oct 2011 08:27:49 +0000]
misc: nct1008: idle read temperature

Check for nct1008 status busy bit before reading temperature

Reviewed-on: http://git-master/r/#change,56945
(cherry picked from commit 5a258b6567797bb402fe65ae01770bd593420431)

Reviewed-on: http://git-master/r/61750
(cherry picked from commit 20706ea39f7793567230faab86cbc4dcb107d1aa)

Change-Id: If275f8f4449cc39c73b7d9fa4b9b610db8d0fa7b
Reviewed-on: http://git-master/r/62327
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: Rbdc6b7f88fcb59ec3928505a4446a32c13ed683b

7 years agoarm: tegra: power: Reduced throttling hysteresis
Joshua Primero [Thu, 8 Sep 2011 23:23:22 +0000]
arm: tegra: power: Reduced throttling hysteresis

Set different hysteresis values for the EDP and throttling cases.
bug 862301

(cherry picked from commit 357e8bcd3df61ff2803049e38e8a99dfbcaee99b)

Change-Id: I6cb3ea9bf7f9e288e2b1481862b8aee214ca853f
Reviewed-on: http://git-master/r/62569
Reviewed-by: Joshua Primero <jprimero@nvidia.com>
Tested-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: Rfd9c2c7990606c4ed0a10f534a15d2d589327d53

7 years agomisc: nct1008: debugfs change
Bitan Biswas [Thu, 27 Oct 2011 20:02:14 +0000]
misc: nct1008: debugfs change

debugfs API usage corrected to return dentry type.
 - nct1008 register dump message modified based on review comments

Reviewed-on: http://git-master/r/60711
(cherry picked from commit 7d06b1a5fd610dcc0f7d4389ab35f4f2991eeb09)

Change-Id: If012b03b055724bceec65efa9367248623a6c61f
Reviewed-on: http://git-master/r/62068
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: R490ece304bf77178de2d703f6ad30e29b131634f

7 years agomisc: nct1008: extended range enable sequence change
Bitan Biswas [Wed, 12 Oct 2011 12:41:06 +0000]
misc: nct1008: extended range enable sequence change

Extended range mode enable sequence for nct1008 updated as per
recommended steps

bug 869823

Reviewed-on: http://git-master/r/57552
(cherry picked from commit 75c6f5173cd4cfa3b0cf114cbbbf6ac1e355a09b)

Reviewed-on: http://git-master/r/58328
(cherry picked from commit 9f2c9004b4f30f9297ef3a7aa8def8a8000934b7)

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

Rebase-Id: Re46ba9dba83b3e12d6341f9afc913514a9a1031a

7 years agomisc: nct1008: debugfs support for reg dump
Bitan Biswas [Mon, 12 Sep 2011 19:56:09 +0000]
misc: nct1008: debugfs support for reg dump

Debugfs support added in nct1008 driver to enable register dump.

Reviewed-on: http://git-master/r/51856
(cherry picked from commit 4e7b8c8e1a7a43e4d745289fc9f20a11556eca96)

Reviewed-on: http://git-master/r/54992
(cherry picked from commit 5b512a6c63bd65375c9362057105f76a7ef97d4a)

Change-Id: Icf9607b12462146e3e046cfc10c3e89424142e5f
Reviewed-on: http://git-master/r/58598
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R95221409d54694937ef226f01572b58c009a8361

7 years agomisc: nct1008: driver clean up
Bitan Biswas [Fri, 7 Oct 2011 11:03:29 +0000]
misc: nct1008: driver clean up

nct1008 driver has been changed as follows:
 1. debugfs create file error check corrected.
 2. pr_err usage replaced with dev_err calls

Reviewed-on: http://git-master/r/56651
(cherry picked from commit 5b6c784d9caf4e0551361b3601711fc9641a4dba)

Reviewed-on: http://git-master/r/57358
(cherry picked from commit eadf4dae6c4e2cd1e4daa618f69605683faaa540)

Change-Id: Ib2f914822691ac7d03bb1b2235544aff5e7abee3
Reviewed-on: http://git-master/r/57876
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: Rbab698ab6544b8e275c19e51049d9f7ec586e471

7 years agomisc: nct1008: error handling change
Bitan Biswas [Mon, 12 Sep 2011 19:41:16 +0000]
misc: nct1008: error handling change

Error handling in the driver was not correctly done earlier. Changes
done are as follows:
- error returned stored in int data type instead of u8 or s8
- few places error was not checked, added the checks needed.

Reviewed-on: http://git-master/r/51855
(cherry picked from commit c8e014fa9d8a7cad2d78d91fad8fe056b4ea0714)

Reviewed-on: http://git-master/r/54990
(cherry picked from commit 8f9f4a8e72998fef8bea9aa00e9ac136920f8dc0)

Change-Id: Id6da54e8d6d39d47962fa8e74ac91934788267fa
Reviewed-on: http://git-master/r/57365
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R2fd8ef10485da58395e352974384e3f20e913d38

7 years agomisc: nct1008: fixing regulator handling
venu byravarasu [Mon, 26 Sep 2011 07:55:55 +0000]
misc: nct1008: fixing regulator handling

Corrected regulator handling of NCT1008

bug 869217

Reviewed-on: http://git-master/r/51296
(cherry picked from commit 6b39c9f51b3c09c6aa0b1cd7e7a3fdb122200d14)

Change-Id: Ibae0c651322e9191942a1be8f544916f7333d967
Reviewed-on: http://git-master/r/54224
Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: R942722fef526eda21b1296ecefb17b08f29ad44f

7 years agomisc: nct1008: allow to program fractional offsets
Diwakar Tundlam [Fri, 26 Aug 2011 00:48:42 +0000]
misc: nct1008: allow to program fractional offsets

to adjust for sku specific guardbanding of temperatures
bug 844025

Original-Change-Id: I1193eae50736ae3dbf3ce0a26653e01962c21c8d
Reviewed-on: http://git-master/r/49316
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Rc6f03d281542bff48b2d41ff29cd0c90d2ad65c3

7 years agomisc: nct1008: sub-zero temperature support
Bitan Biswas [Thu, 25 Aug 2011 15:42:00 +0000]
misc: nct1008: sub-zero temperature support

Added support for sub-zero temperatures

Original-Change-Id: Id35590ee4d058f35625088089623cc063f9a711a
Reviewed-on: http://git-master/r/48690
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: Rf705a1b4f3c246029abc55570f26e876ae3bfaa9

7 years agoArm: Tegra: Power: Set throttling ext-sensor temp correctly
Diwakar Tundlam [Fri, 22 Jul 2011 23:22:34 +0000]
Arm: Tegra: Power: Set throttling ext-sensor temp correctly

Bug ID: 844882

- Set throttling temperature in ext temp sensor nct1008 for cardhu to 75C
- Fix bug in nct1008 temp sensor driver in disable throttling logic

Original-Change-Id: I2ed8aab63186f16c554ca459e71f3437119bd4e6
Reviewed-on: http://git-master/r/42707
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R3ad3b5d35206cb66cf8221e547692027483383be

7 years agomisc: nct1008: extended mode first reading fix
Bitan Biswas [Mon, 18 Jul 2011 06:12:59 +0000]
misc: nct1008: extended mode first reading fix

nct1008 first temperature reading in extended mode is incorrect.
A valid temperature is available in next measurement cycle after
changing temperature range.
- using table with delay expected for supported conversion
  rate of nct1008.

bug 852754

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

Rebase-Id: R9fc8a721f1b25372324f7e38c3c477b9769d51bf

7 years agomisc: nct1008: ext-temperature sysfs fix
Bitan Biswas [Fri, 15 Jul 2011 19:08:23 +0000]
misc: nct1008: ext-temperature sysfs fix

In extended temperature range ext-temperature reported
was incorrect. Fixing this.

bug 850512

Original-Change-Id: I45b8e3630cad3ca5f78960c16402b77e9bc25cc9
Reviewed-on: http://git-master/r/41261
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R1ac2c365793129d20c76eace2ea2723d0c178a70

7 years agomisc: tegra-crypto: enable prints for some errors
Varun Wadekar [Thu, 14 Jul 2011 09:23:47 +0000]
misc: tegra-crypto: enable prints for some errors

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

Rebase-Id: R67b8963788605425c044e68b082ecb1d622d7b33

7 years agoArm: Tegra: Tsensor: Added guardbanding to temperatures
Diwakar Tundlam [Tue, 12 Jul 2011 07:51:11 +0000]
Arm: Tegra: Tsensor: Added guardbanding to temperatures

Bug 844025

- Guardband to account for hotspot offset and sensor accuracy.
- Throttling point specified independent of EDP, but constrained to be
  one of the specified EDP points.

Original-Change-Id: Ic9231ad6887ca282bb520ea23229526ac7a243be
Reviewed-on: http://git-master/r/40566
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R14f1e8536eb60e3373b6ad1d4a54330555c8beb9

7 years agomisc: nct1008: Power control for nct1008
Laxman Dewangan [Fri, 8 Jul 2011 08:33:14 +0000]
misc: nct1008: Power control for nct1008

Adding the power control support for device nct1008
to make sure that power is enable on device before
accessing the device.

bug 849307

Original-Change-Id: I84d7abc142814014bfc568b3a4b0ae0d5329f41e
Reviewed-on: http://git-master/r/40160
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R49d4709c030086c9596e3a81664b46967de8f029

7 years agomisc: nct1008: set edp zone on driver initialization
Alex Frid [Wed, 25 May 2011 02:07:22 +0000]
misc: nct1008: set edp zone on driver initialization

Original-Change-Id: I2f578aee6dea911ebbe63cdcb5c9a7ddfcdf2264
Reviewed-on: http://git-master/r/32862
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: Rd50d38c5de1e7bbca21184751a47700ed3a14e6c

7 years agomisc: nct1008: update edp zones for current temperature
Varun Wadekar [Thu, 12 May 2011 08:51:20 +0000]
misc: nct1008: update edp zones for current temperature

nct1008 will now use the ALERT# functionality to
decide which edp zone to switch to.

Original-Change-Id: I1616a1d88e9f2f308a8b31935dbecec05ef54bca
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/31340
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R28b85258dea981a44137a663c96cfa0914031105

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

Original-Change-Id: I2ffeaf6f8dfeb279b40ca6f69f6c9157401a746a

Rebase-Id: R3008061ee375b33bda3f738e9b1c8be78b3749f4

7 years agoarm: tegra: cardhu: correcting bt rst gpio
Rakesh Goyal [Tue, 15 Mar 2011 11:42:25 +0000]
arm: tegra: cardhu: correcting bt rst gpio

introduced delay after toggling the gpio.

BUG 802916 800599
Original-Change-Id: I5cbd5c3334634af5ab1d42103d0a890fee2ecfc3
Reviewed-on: http://git-master/r/23001
Tested-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: I91e00b1a7d4f2fd02b97ca59fdd870a7eeb9c191

Rebase-Id: R7c5c45935803581dbda9f0a47d2c554f7f0a4519

7 years agomisc: nct1008: sysfs interface for THERM setting
Dan Willemsen [Fri, 1 Apr 2011 04:46:58 +0000]
misc: nct1008: sysfs interface for THERM setting

Enabling external temperature sensor for honeycomb t30
- added sysfs interface in external temperature sensor
- Set THERM threshold for nct1008 external temperature sensor
as 75 degree celsius
- hysteresis of 5 deg celsius selected to prevent
system going in and out of reset for threshold
temperatures.

Bug 789904

Original-Change-Id: I305a05bc57ae485334ccf2dc1bde3d6afd4fceae
Reviewed-on: http://git-master/r/18894
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: I2b0c97ecef1a11282e92d4d8f3e64b3633bb362e

Rebase-Id: R53e6608ce50ae1a7e5f335429b782c5e82dfb071

7 years agoarm: tegra: Remove executable bit from source files
Robert Morell [Tue, 5 Apr 2011 22:42:10 +0000]
arm: tegra: Remove executable bit from source files

Generated with the script:
find \( -name "*.c" -or -name "*.h" -or -name "*akefile" -or \
    -name "*\.mk" \) -type f -perm /+x | xargs chmod -x

Original-Change-Id: Iabae1aa20fd49a1c8db439fc132182d0f629deab
Reviewed-on: http://git-master/r/26806
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Tested-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Janne Hellsten <jhellsten@nvidia.com>

Rebase-Id: R33081c8dbfafe0c7ee54f7501381ce9e3eae2a25

7 years agomisc: tegra-crypto: do not specify any key when using ssk
Varun Wadekar [Mon, 14 Feb 2011 10:04:01 +0000]
misc: tegra-crypto: do not specify any key when using ssk

if no key is specified then tegra-aes uses ssk by default

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

Rebase-Id: R74430209746f5f6cd2a600d5a392dc51723ff7d2

7 years agofix build: max1749.c was erroring during a local make
Dan Willemsen [Wed, 9 Mar 2011 23:07:28 +0000]
fix build: max1749.c was erroring during a local make

If built with android, which uses the O=... option, this file compiles
fine, but if you try to just use 'make', there was a build error.

Original-Change-Id: I09f0233c2bf933278c34a7ec5e7fcc17cabc1ede
Reviewed-on: http://git-master/r/22274
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Tested-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rbaf89722fa7c3d6574748223e6aefa0f6682727b

7 years agomisc: MAX1749 vibrator motor driver
Prashant Gaikwad [Thu, 3 Feb 2011 10:29:28 +0000]
misc: MAX1749 vibrator motor driver

Bug 782956

Original-Change-Id: I0949eb5b40e75c7e9697787aba3d645dbe695cee
Reviewed-on: http://git-master/r/18167
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R45140872ef8a3804476c584ed307961559d3d169

7 years agonct1008: add support for external sensor readings
Joseph Lehrer [Wed, 26 Jan 2011 06:03:21 +0000]
nct1008: add support for external sensor readings

bug 783966
Original-Change-Id: Ic454eba8675596cf77856e0ec3da8df7d56d82ee
Reviewed-on: http://git-master/r/17005
Tested-by: Joseph Lehrer <jlehrer@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Shail Dave <sdave@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R85e933e19aceb8a264c58a0f29414a8887129219

7 years agomisc: tegra-cryptodev: asynchronous callbacks for encrypt/decrypt
Varun Wadekar [Thu, 13 Jan 2011 12:01:53 +0000]
misc: tegra-cryptodev: asynchronous callbacks for encrypt/decrypt

the tegra-aes driver was changed to being an actual asynchronous
cipher driver. the client now has to pass a callback which will be
called by tegra-aes when the operation is complete.

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

Rebase-Id: R8e755c720837307ee3061e654f74a929d561c1da

7 years agomisc: tegra-cryptodev: device node to access tegra aes hw
Varun Wadekar [Fri, 11 Feb 2011 10:02:14 +0000]
misc: tegra-cryptodev: device node to access tegra aes hw

/dev/tegra-crypto node to access tegra aes hw from the
user space. currently ecb/cbc/ansi_x9.31 modes are supported

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

Rebase-Id: R1e3e1f059255adb13d39c4332f6cdfb3f3c8c3f0

7 years ago[bt/rfkill]: make either RST/SHUTDOWN GPIO usage optional.
Anantha Idapalapati [Wed, 29 Dec 2010 07:45:11 +0000]
[bt/rfkill]: make either RST/SHUTDOWN GPIO usage optional.

the current BCM4329 rfkill driver assumes usage of 2 GPIOs
known as RST and SHUTDOWN and the driver makes a particular
GPIO mandatory. Some of the platforms does not define both
GPIOs, instead a single either RST/SHUTDOWN GPIO is used to
setup the chip.

This change makes driver to consider any of the two GPIOs
as optional and use any of the RST/SHUTDOWN GPIOs.

Simultaneous usage of both GPIOs is also allowed.

Original-Change-Id: Ib66ea350e78642082f639514ef7a9def6e460e28
Reviewed-on: http://git-master/r/14534
Reviewed-by: Anantha Idapalapati <aidapalapati@nvidia.com>
Tested-by: Anantha Idapalapati <aidapalapati@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R0d885111030f3123aeeeb8331f4e2abf08c88c8b

7 years ago[arm/tegra/bt/rfkill]: bluetooth rfkill driver
Rakesh Kumar [Fri, 11 Feb 2011 08:31:25 +0000]
[arm/tegra/bt/rfkill]: bluetooth rfkill driver

A new "rfkill" driver added to control the BT radio.

Bug 724106

Original-Change-Id: I60ce0d188884d17f4f61d378b43368b7b5f9d7a9
(cherry picked from commit 78dbd0a022280964d3e9dcd3f00753ce8d66fa16)
Reviewed-on: http://git-master/r/9955
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rac61d26ff1845a0a835c8f93c2bc2f6cefd04ac3

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.

Conflicts:

drivers/tty/serial/tegra_hsuart.c

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
pixels.

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
interrupt.

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
apart.

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
interrupt.

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

7 years agoARM: tegra: iovmm: Convert suspend to syscore ops
Colin Cross [Fri, 29 Apr 2011 21:46:18 +0000]
ARM: tegra: iovmm: Convert suspend to syscore ops

Also convert lock used in suspend to spinlock.

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

Rebase-Id: R6be6eeefb34dcb7a69e403c27a72062b1bbd1932

7 years agoARM: tegra: Verify PHY clock valid before clearing USB_SUSP_CLR bit
Nathan Connell [Mon, 25 Apr 2011 19:17:13 +0000]
ARM: tegra: Verify PHY clock valid before clearing USB_SUSP_CLR bit

When enabling the external ULPI PHY, the clock from the PHY must be
valid before the USB_SUSP_CLR bit is cleared in the USB2 controller
interface register.  If the clock from the PHY is not valid when
this bit is cleared, the AHB clock to the host controller may be
stopped, preventing any access to the host controller.

Replace hard-coded delay with poll for USB_PHY_CLK_VALID bit.
Signed-off-by: Nathan Connell <w14185@motorola.com>

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

Rebase-Id: R819c1a8f769f72aad2868ab78f4d31bd3b97c750

7 years agoARM: tegra: usb_phy: Resolve ulpi disconnect issue
James Wylder [Thu, 7 Apr 2011 21:02:19 +0000]
ARM: tegra: usb_phy: 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: R8390c94ab187d9713e2cff4856f8c0a1be5e3620

7 years agovideo: tegra: dc: Fix several problems
Andrei Warkentin [Thu, 21 Apr 2011 16:57:57 +0000]
video: tegra: dc: Fix several problems

Resolve potential race between resume and reset
Fix wmb after return

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

Rebase-Id: R248821307a1d2ac9454e50f9fa5bc3ccadc4e092

7 years agovideo: tegra: prevent double disable in suspend
Andrei Warkentin [Tue, 19 Apr 2011 19:20:48 +0000]
video: tegra: prevent double disable in suspend

Prevents HDMI detect worker from re-disabling DC during
suspend (after tegra_dc_suspend has disabled DC itself)/

Change-Id: I90016fb709934ab8fb5135443980898069f8071f
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Erik Gilling <konkers@android.com>

Rebase-Id: R87e341c550a0bab2fda3b81f6b3e82c96ffcdc11

7 years agovideo: tegra: dc: hdcp: handle the case of DEVICE_COUNT = 0 properly
Peter Zu [Thu, 7 Apr 2011 04:42:33 +0000]
video: tegra: dc: hdcp: handle the case of DEVICE_COUNT = 0 properly

When HDCP repeater has no device attached, DEVICE_COUNT reports back as 0.
HDCP driver should handle this case as a good case and continue downstream
authentication, other than fail it.

Change-Id: Ied2e46428c0247f14fbd96016cd4fdbf358f6587

Rebase-Id: R0d45add14c7718d3133fffd8f04a3d75cb1db76f

7 years agovideo: tegra: fix more unplug/suspend timeout in nvhdcp
Erik Gilling [Fri, 15 Apr 2011 21:49:53 +0000]
video: tegra: fix more unplug/suspend timeout in nvhdcp

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

Rebase-Id: R6e70e60d8e02479ada9393d96370ef15dc294029

7 years agovideo: tegra: fix unplug/suspend timeout in nvhdcp
Erik Gilling [Wed, 13 Apr 2011 15:03:41 +0000]
video: tegra: fix unplug/suspend timeout in nvhdcp

If HDCP was turned off (either by unplug or suspend) the work funciton
would wait the full timeout 5 * l.75s before exiting.  This
causes suspend to timeout and crash.

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

Rebase-Id: R1f5d558bc5ddc0a34e3b6db80d783a8dd791b8b2

7 years agovideo: tegra: zero out var before calling fb_videomode_to_var
Erik Gilling [Wed, 13 Apr 2011 00:36:04 +0000]
video: tegra: zero out var before calling fb_videomode_to_var

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

Rebase-Id: R98a0814898c3426429ed1a58d5c897b88a56b63d

7 years agovideo: tegra: add debouncing to hdmi hotplug
Erik Gilling [Mon, 11 Apr 2011 22:15:15 +0000]
video: tegra: add debouncing to hdmi hotplug

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

Rebase-Id: R936f7babe91dacff5d0709057e4a16b6a1cd4e5e