5 years agomisc: tegra-profiler: reduce size of sample
Igor Nabirushkin [Mon, 27 Jan 2014 10:08:51 +0000]
misc: tegra-profiler: reduce size of sample

Tegra Profiler: reduce size of sample
magic number was removed

Bug 1447839

Change-Id: I14a23f668eab575add872daa35f27653eff643ff
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365904
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agomisc: tegra-profiler: add user_mode flag
Igor Nabirushkin [Mon, 27 Jan 2014 09:38:05 +0000]
misc: tegra-profiler: add user_mode flag

Tegra Profiler: add user_mode flag into mmap sample

Bug 1447904

Change-Id: Ieba1025abac78b2682c0445e608fd0137dbe2379
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365901
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agotegra-profiler: non-disruptive counter tracking
Igor Nabirushkin [Mon, 27 Jan 2014 08:42:30 +0000]
tegra-profiler: non-disruptive counter tracking

Tegra Profiler: do not affect the already used counters

Bug 1447839

Change-Id: I4da319e6c2bc853a63c9e1ae4210be9b5a60cc3b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365898
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agomisc: tegra-profiler: use mmap calls
Igor Nabirushkin [Sun, 26 Jan 2014 23:13:33 +0000]
misc: tegra-profiler: use mmap calls

Tegra Profiler: add mmap calls

Bug 1447662

Change-Id: I96614ab3c320fd028cf861ea970b5199bdcae1c7
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365889
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agomisc: tegra-profiler: add thread state field
Igor Nabirushkin [Sun, 26 Jan 2014 21:28:57 +0000]
misc: tegra-profiler: add thread state field

Tegra Profiler: state, in_interrupt fields
were added into samples

Bug 1447655

Change-Id: I082b63ff854da34df45160a6f07dbe5ee73ca7f7
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365867
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agomisc: tegra-profiler: add sched_out sampling
Igor Nabirushkin [Sun, 26 Jan 2014 19:46:41 +0000]
misc: tegra-profiler: add sched_out sampling

Tegra Profiler: add sampling at the ending of the time slices

Bug 1447648

Change-Id: I03bea8b9d28aef7aaa1d2b676baa19ddd1247c1d
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365857
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agomisc: tegra-profiler: add start/stop locks
Igor Nabirushkin [Sun, 26 Jan 2014 16:37:31 +0000]
misc: tegra-profiler: add start/stop locks

Locks for ability to use loadable module
to override the built-in driver on rooted devices

Bug 1447640

Change-Id: If20605597d77a0cf76206fbe2f474c8853696a9b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365854
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agomisc: tegra-profiler: add group samples
Igor Nabirushkin [Sun, 26 Jan 2014 13:59:25 +0000]
misc: tegra-profiler: add group samples

Group CPU cycles and cache misses samples.
To reduce the amount of data passed from the target to the host,
we can group samples that have a lot of common information.

Bug 1447582

Change-Id: I9b16bf4f18455ff6219fd58373eceba4cb71e352
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365849
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agohwmon: ina230: fix i2c error
David Yu [Fri, 7 Feb 2014 07:53:04 +0000]
hwmon: ina230: fix i2c error

When ina230 is suspended, executing ina230_get_current() makes i2c error.
Return INA230_ERROR when it is suspended.

Change-Id: I738fd02e95dcd636ebc417bbc9d526cd0fb0ded7
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/364811
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Harry Hong <hhong@nvidia.com>

5 years agoRevert "usb: acm: No hangup for Bruce during reset resume."
Martin Chi [Wed, 12 Feb 2014 03:26:10 +0000]
Revert "usb: acm: No hangup for Bruce during reset resume."

This reverts commit 3e11a6c957340ae770252923bd8a9878b3877b3e.

Change-Id: I0c99a10223db4561373297f5f54b038b15a2c4cf
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/366248

5 years agoRevert "ARM: tegra: tegratab: reduce fb0 mem size"
Harry Hong [Mon, 10 Feb 2014 00:59:32 +0000]
Revert "ARM: tegra: tegratab: reduce fb0 mem size"
This reverts commit ec1426b9f728ba64b5da3d8a587e3dc44c352d79.
Change-Id: I0ddadf2556f3f62f4f49553471ad1403d5062c4c
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/365273

5 years agoARM: Tegra: TN7C: enable wake-up attr for VOL keys
Martin Chi [Thu, 6 Feb 2014 06:30:12 +0000]
ARM: Tegra: TN7C: enable wake-up attr for VOL keys

With wake-up attr enabled for VOL keys,when device
is in LP1 during voice call, we can press Vol keys
to wake up device and change the Volume.

Change-Id: I9cd8a9ac5369b491a0c0a6bcc106c9f506eeaf57
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/364204
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lei Fan <leif@nvidia.com>
Reviewed-by: David Pu <dpu@nvidia.com>
Reviewed-by: Rui Zhuo <rzhuo@nvidia.com>
Tested-by: Rui Zhuo <rzhuo@nvidia.com>

5 years agoARM: tegra: tegratab: reduce fb0 mem size
Harry Hong [Wed, 5 Feb 2014 05:14:08 +0000]
ARM: tegra: tegratab: reduce fb0 mem size

reduce reserved mem size for fb0 according to lcd resolution.

Change-Id: Ie522f05405f9254bb568f96a235d1532b2c92a81
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/363631

5 years agoiio: staging: adc: palmas: Robustify in GPADC lock issue
Jinyoung Park [Wed, 4 Dec 2013 17:56:07 +0000]
iio: staging: adc: palmas: Robustify in GPADC lock issue

Robustify in GPADC lock issue.
- Check GPADC status to unlock GPADC, if GPADC is in the lock status.
- The palmas_update_bits() updates a register value only if cached value and
  new value are different. So use palmas_write() instead palmas_update_bits()
  in palmas_disable_auto_conversion() to update AUTO_CTRL register always.
- Remove ADC S/W conversion disable. It is unnecessary and can be cause
  of GPADC lock issue.
- Clear AUTO_SELECT register after disable auto conversion.
- Add shutdown callback to disable auto conversion before shutdown.
- Print INT3_LINE_STATE register in palmas_gpadc_irq_auto.

Bug 1398960
Bug 1415280

Change-Id: Ia63e56d6119680fb6c761647718e7467c28bab6d
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/360670
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoiio: staging: adc: palmas: Support for auto conversion shutdown
Jinyoung Park [Fri, 29 Nov 2013 07:13:15 +0000]
iio: staging: adc: palmas: Support for auto conversion shutdown

Support for auto conversion shutdown when auto conversion result is
crossed threshold.
Corrected auto conversion period calculation.
Restore CH3 current source if CH3 is dual current mode.
Added debugfs for auto conversion.

Bug 1398960
Bug 1415280

Change-Id: I148c51ab70dcca756f74a5cb8ab10112de3a9f03
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/360669
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoiio: staging: adc: palmas: Rename wakeup to auto conversion
Jinyoung Park [Wed, 11 Dec 2013 12:15:25 +0000]
iio: staging: adc: palmas: Rename wakeup to auto conversion

Rename wakeup to auto conversion.

Bug 1398960
Bug 1415280

Change-Id: I37bee5239caaeec73c7fa6d769b7e9b7476eab9c
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/360668
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoAsoc: ALC5639: ALC5640: Fix HS det. issue in BIAS OFF state
Manoj Gangwal [Wed, 29 Jan 2014 06:44:33 +0000]
Asoc: ALC5639: ALC5640: Fix HS det. issue in BIAS OFF state

- This is the fix for the IRQ based headset detection
  in BIAS OFF state.
- Change the min codec state to BIAS OFF when it is
  in idle.

Bug 1449567

Change-Id: Ib3e701af106d6be5b005f93ba997021e8c6bfda8
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/361351
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agostaging:iio:ltr659ps: fix suspend/resume routine
Chen Jian [Sun, 2 Feb 2014 08:22:06 +0000]
staging:iio:ltr659ps: fix suspend/resume routine

  - Add suspend state flag, resume routine will act according
    to suspend stage flag.

Bug 1450332

Change-Id: I668f5e954c4d138903cd5fc283acdee64493a541
Signed-off-by: Chen Jian <jackchen@nvidia.com>
Reviewed-on: http://git-master/r/362663
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>

5 years agommc: tegra: Use SDR104 UHS mode for SDR50 mode
Pavan Kunapuli [Mon, 13 Jan 2014 10:35:26 +0000]
mmc: tegra: Use SDR104 UHS mode for SDR50 mode

Program SDR104 mode in the UHS_MODE_SEL register for SDR50 mode as well.
This is required for better timing and reliable transfers in SDR50 mode.

Bug 1423423

Change-Id: I4d5556b8863d3823325e129ed05ac5e976bfd8bb
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/355049
Reviewed-on: http://git-master/r/360771
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agommc: Update ext_csd revision to 7 to support eMMC5
Naveen Kumar Arepalli [Mon, 12 Aug 2013 08:35:58 +0000]
mmc: Update ext_csd revision to 7 to support eMMC5

Update ext_csd revision to 7 to support eMMC5.0 cards

Bug 1345334

Change-Id: I07439c5dafbfa351fdbb262c37e4e6ce4bb4514e
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/260428
Reviewed-on: http://git-master/r/360747
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agommc: sdhci: Dump registers for cmd,data errors
Pavan Kunapuli [Thu, 10 Oct 2013 09:02:53 +0000]
mmc: sdhci: Dump registers for cmd,data errors

Enabling the dump of host controller registers when a cmd or data error
occurs. Skipping register dump in case of cmd timeout error as a few
cmd timeout errors are expected during boot due to the discovery method
used to identify device type. Dumping registers could lead to confusion.

Bug 1368929

Change-Id: Ic340732f8a1ef595d58af4cc51c164f6700fcbde
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/288910
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/356497
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agousb: gadget: tegra: check ep->desc before access
Rohith Seelaboyina [Tue, 28 Jan 2014 06:29:35 +0000]
usb: gadget: tegra: check ep->desc before access

This changes adds condition to check ep->desc
before accessing its contents. ep->desc seems to
get Null on releasing the spin_lock.

Bug 1401730

Change-Id: I48b4c880ced0cd131bd45840839e6635fc1a219c
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/360780
(cherry picked from commit d7a49b67639a663015a0378df119b7e4f9c4fe19)
Reviewed-on: http://git-master/r/362353
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agommc: tegra: Stop rescan task on detect stop notify
Mohan T [Wed, 22 Jan 2014 10:08:07 +0000]
mmc: tegra: Stop rescan task on detect stop notify

It seems we are starting mmc_rescan task for card removal case
status notify call. So check the card_present input value
and start the mmc_rescan task for card present case and
stop mmc_rescan task for card not present case.

Bug 1405624
Bug 1419961
Bug 1409062

Change-Id: I888d6317bfba2716b3776e584f4ecfee8d4a91d0
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/346873
(cherry picked from commit 9c33ba5b60432cbb88deeb3a4ee81edf01d32f67)
Reviewed-on: http://git-master/r/358662
Reviewed-on: http://git-master/r/360685
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agommc: sdhci: Poll DFS stats only when clock is ON
Pavan Kunapuli [Tue, 13 Aug 2013 16:08:36 +0000]
mmc: sdhci: Poll DFS stats only when clock is ON

Poll for DFS stats only when the host clock is ON. If the clock is
turned off as part of dynamic clock gating, suspend DFS polling and
re-enable polling only when the clock is turned ON again.

Bug 1309791

Change-Id: Iba83a34ab1721ff1813ee2a85f93e04a4c1a1736
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/261087
Reviewed-on: http://git-master/r/360690
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoASoC:Tegra: Add BT control interface for HAL
Lei Fan [Tue, 28 Jan 2014 08:17:40 +0000]
ASoC:Tegra: Add BT control interface for HAL

Sometime the BT voice call cannot be broken because the method has bug
which is used to judge current call is BT call or not.
In fact we can make HAL use other control to set BT voice call.

Bug 1443353

Change-Id: I45f7cf876b4e7e53e94aab0a4984bb95d4885701
Signed-off-by: Lei Fan <leif@nvidia.com>
Reviewed-on: http://git-master/r/360827
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijay Mali <vmali@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>

5 years agoARM: tegra: tn7c: update tskin coefficients
Nine Feng [Thu, 23 Jan 2014 09:36:35 +0000]
ARM: tegra: tn7c: update tskin coefficients

Bug 1432052

Change-Id: I1a90dc0098b6deec89c2062c60661ad19b62fc39
Signed-off-by: Nine Feng <nfeng@nvidia.com>
Reviewed-on: http://git-master/r/359258
Reviewed-by: Danny Song <dsong@nvidia.com>
Tested-by: Danny Song <dsong@nvidia.com>

5 years agousb: ehci: Tegra:don't boost cpu from ehci layer
David Pu [Mon, 27 Jan 2014 07:10:43 +0000]
usb: ehci: Tegra:don't boost cpu from ehci layer

don't boost cpu freq to 816MHz blindly from ehci layer for usb host
instance 1(Bruce Modem).

Bug 1441442

Change-Id: I73d925186976095b62267a806bce30e906202833
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/360253
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>

5 years agots :tn7c: support load switch for touch power rail
Nine Feng [Tue, 28 Jan 2014 04:37:32 +0000]
ts :tn7c: support load switch for touch power rail

lcd power rail of EN_LCD_1V8 is shared with touch
module. We should make sure it is enabled before
touch suspend. Therefore, we add a new consumer
for lcd fix regulator, then it would be more
reasonable to turn off/on in terms of use counts.

Bug 1445143

Change-Id: Ieef0fc9ae46918c724d6129f9878be12641f66d0
Signed-off-by: Nine Feng <nfeng@nvidia.com>
Reviewed-on: http://git-master/r/360705
Reviewed-by: Danny Song <dsong@nvidia.com>
Tested-by: Danny Song <dsong@nvidia.com>

5 years agoicera: acm: remove pm qos request in disconection
Martin Chi [Tue, 28 Jan 2014 02:58:38 +0000]
icera: acm: remove pm qos request in disconection

remove pm qos request when acm disconects,
otherwise, pm_qos_add_request() will be called
again as it's already added, and then cause some
kernel warning

bug 1448534

Change-Id: I16d0cd823132ac79cc03bd1fc53d12114d6ceb0e
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/360679
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoarm:tegra:TN7C: set gyro irq pin PULL_DOWN in LP0
Martin Chi [Wed, 29 Jan 2014 09:00:04 +0000]
arm:tegra:TN7C: set gyro irq pin PULL_DOWN in LP0

For TN7C, set PULL_DOWN for gyro irq pin (KB_ROW3)
in LP0 to avoid current leakage

bug 1437281

Change-Id: Icfce785d06bed5769155342154aedfb5a8725d9a
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/355908
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoinput: misc: sensor: Add mutex for the bias reading
Xiaohui Tao [Thu, 26 Dec 2013 23:49:38 +0000]
input: misc: sensor: Add mutex for the bias reading

Bug 1431360
Bug 1443158

Change-Id: Id3654deb1012d0b0826dbf2a11287a000234fd27
Reviewed-on: http://git-master/r/349890
Signed-off-by: Jajambo Liao <jajambol@nvidia.com>
Reviewed-on: http://git-master/r/358110
(cherry picked from commit ed6a521e79b8faadd945e686f6cd415e64221387)
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/361184
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: dts: tn7c: correct the dvfs table
Martin Chi [Tue, 28 Jan 2014 07:16:23 +0000]
ARM: dts: tn7c: correct the dvfs table

Originally, the dvfs table in ram_code 0 is Hynix
dvfs, and the dvfs table in ram_code 1 is Micron
dvfs, this is not correct.
This change swap the two dvfs table and correct
above mistake

bug 1438727

Change-Id: If2b50061166c5f96cf3d2a2b2b70f23dbf8327b0
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/360798
Reviewed-by: Automatic_Commit_Validation_User

5 years agoRM:tegra:tn7c:Adjust proximity sensor threshold
Chen Jian [Tue, 28 Jan 2014 07:40:46 +0000]
RM:tegra:tn7c:Adjust proximity sensor threshold

  - according to calibration result, adjust high/low threshold
    to trigger interrupt.

Change-Id: Id14f76cf999b6e6bb7714e5f4ef0e731f3979b72
Signed-off-by: Chen Jian <jackchen@nvidia.com>
Reviewed-on: http://git-master/r/360803
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Martin Chi <mchi@nvidia.com>

5 years agoARM: tegra: sdhci: Pass speedo id in platform data
Pavan Kunapuli [Thu, 9 Jan 2014 11:47:27 +0000]
ARM: tegra: sdhci: Pass speedo id in platform data

Passing speedo id from sdhci platform data. Speedo id is required
for some calculation in auto tuning.
Set trim delay of SDMMC4 to 3 as per the characterization team
recommendations.

Bug 1423423

Reviewed-on: http://git-master/r/352307
(cherry picked from commit a628fadf080a26d5cedb528d083b1007217072a8)

Change-Id: Icfce5614d410e2770344897ace5c1a9adabca8d8
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/356524
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agommc: tegra: Implementation of new tuning algorithm
Pavan Kunapuli [Thu, 9 Jan 2014 11:46:13 +0000]
mmc: tegra: Implementation of new tuning algorithm

Implemented the new tuning algorithm that
- Removes the tap holes from auto tuning windows
- Adjust window ends with margins for Vmin for the corresponding freq
- Dynamically updates dvfs table entry if a new Vmin is found from
auto tuning calculations
- Calculates the best tap value from the windows after removing tap
holes and margin additions.

Disabling external loopback clock for SDMMC3 as per characterization
results.

Bug 1423423

Reviewed-on: http://git-master/r/352306
(cherry picked from commit 26615d96514fc9ccbdcdc9ab89d92def5c1bf977)

Change-Id: I56fd58473ab5b7642d703fc17f0afd5820fe64ea
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/356523
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM: tegra: dvfs: Predict required voltage for a given freq
Pavan Kunapuli [Mon, 6 Jan 2014 10:24:59 +0000]
ARM: tegra: dvfs: Predict required voltage for a given freq

Exposing the tegra_dvfs_predict_millivolts interface to drivers to be
used during tuning and getting the minimum core voltage for a given
frequency.

Bug 1423423

Reviewed-on: http://git-master/r/350418
(cherry picked from commit b604de0416eab8e8c32ad9e482fd64d831fb9449)

Change-Id: Icc6492c6d91315020eaec3668e259c523acb218c
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/356522
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM: tegra: dvfs: Add interface to set fmax at vmin
Alex Frid [Sat, 21 Dec 2013 06:01:00 +0000]
ARM: tegra: dvfs: Add interface to set fmax at vmin

Added interface to specify clock fmax/vmin limits at run-time. Calling
this interface updates frequencies in the respective DVFS table to be
consistent with the new limits (voltage ladder is preserved):

- for voltages below new vmin, the respective frequencies are shifted
below new fmax to the levels already present in the table; if the 1st
table entry has frequency above new fmax, all entries below vmin
are filled in with 1kHz (min rate used in DVFS tables).

- for voltages above new vmin, the respective frequencies are set at
or above new fmax (not necessarily present in DVFS table before)

- if new vmin is already in the table the respective frequency is set
to new fmax (not necessarily present in DVFS table before)

Since, such update may result in changing voltage requirement up at
the same clock frequency, the interface can be called only for clocks
that are allowed to override core voltage (SDMMC on tegra platforms),
and only if core voltage is already overridden to the level higher
than new vmin.

Bug 1423423

Reviewed-on: http://git-master/r/348351
(cherry picked from commit 1dc582f4488beeaea7e859496034a25300b1cb0b)

Signed-off-by: Alex Frid <afrid@nvidia.com>

Change-Id: I4f61ea6e3f8b6792ed058509339e16bff1947104
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/356521
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM: tegra11: dvfs: Update DVFS tables for SDMMC4
Alex Frid [Sat, 21 Dec 2013 08:23:24 +0000]
ARM: tegra11: dvfs: Update DVFS tables for SDMMC4

Bug 1423423

Reviewed-on: http://git-master/r/348350
(cherry picked from commit 44a97884ff4552ae245e58c7848839b49df8944f)

Signed-off-by: Alex Frid <afrid@nvidia.com>

Change-Id: I19c476cb79bbc3bde528212a80054ddbd9488aea
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/356520
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM: tegra: tegratab: set smps7 to 1.38V for E1569
Yong Goo Yi [Mon, 27 Jan 2014 11:15:06 +0000]
ARM: tegra: tegratab: set smps7 to 1.38V for E1569

Set smps7 to 1.38V for E1569-ERS has Micron 1GB

Change-Id: I1f55e0b2bf96d6efed04e301b800a52e4d23fbb7
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/360389
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM: tegra: dvfs: Add dvfs table nodes to debugfs
Alex Frid [Wed, 2 Oct 2013 03:55:56 +0000]
ARM: tegra: dvfs: Add dvfs table nodes to debugfs

Reviewed-on: http://git-master/r/281633
(cherry picked from commit ded9998ea6e78a3fc2b5be4c12bdb716a0612089)
Reviewed-on: http://git-master/r/348349
(cherry picked from commit 0e1f1108a562be22d41e5c1b19ace29d7696461c)

Signed-off-by: Alex Frid <afrid@nvidia.com>

Change-Id: I94eef4ca0f1610975ae5742ce6d64e05ff76cb1d
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/356519
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agostaging:iio:ltr659ps: Change regulator routine
Chen Jian [Mon, 27 Jan 2014 12:13:49 +0000]
staging:iio:ltr659ps: Change regulator routine

  - Only enable/disable regulator when sensor
    is enabled/disabled.

Bug 1446066

Change-Id: I5bff3066f47cbd08e7f88309ec65b41b69763367
Signed-off-by: Chen Jian <jackchen@nvidia.com>
Reviewed-on: http://git-master/r/360408
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Pu <dpu@nvidia.com>
Tested-by: David Pu <dpu@nvidia.com>
Reviewed-by: Danny Song <dsong@nvidia.com>

5 years agommc: sdhci: tegra: fix power rail policy
David Yu [Mon, 27 Jan 2014 10:54:33 +0000]
mmc: sdhci: tegra: fix power rail policy

Keep power rail on unless otherwise specified on shutdown.

Bug 1445876

Change-Id: I5a0309226177c10ab52f25703c7133be63faa6b4
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/360385
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoRevert "Revert "mmc: Set suspend/resume bus operations if CONFIG_PM_RUNTIME is used""
ximingc [Mon, 27 Jan 2014 09:17:13 +0000]
Revert "Revert "mmc: Set suspend/resume bus operations if CONFIG_PM_RUNTIME is used""

This reverts commit 866353859bcd3328dd0be84e0f0ed6d1ba834772. Moving back
suspend and resume to dev_pm_ops to ensure that bus suspend is done before
device suspend and bus resume is done after device resume. Without bus
suspend and resume, there is a chance of some requests being scheduled
after device suspend or before device resume is done.

Bug 1381236
Bug 1446176

Reviewed-on: http://git-master/r/309656
(cherry picked from commit de13dd1f8b0d802914ec4143c42730d4f90f880b)
Change-Id: I842b1e042982f8ac0547936800bbc996643c7d34
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>

Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Change-Id: I7b72b956a617762741854d49b4560d3848cf2b12
Reviewed-on: http://git-master/r/326379
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

Change-Id: I0cc4d85c879dcedf671f14a83978524cd0c7f287
Signed-off-by: Ximing Chen <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/360331
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>

5 years agoARM: tegra: clock: Use ram code for TegraNote7C
Martin Chi [Mon, 27 Jan 2014 05:48:50 +0000]
ARM: tegra: clock: Use ram code for TegraNote7C

TegraNote7C supports two different DDRs:

RAM_CODE[1:0] = 0x00 -> Micron DDR3L 1GB
RAM_CODE[1:0] = 0x01 -> Hynix DDR3L 1GB

Bug 1438727

Change-Id: Ib4b6f2d38b2667dea1167417ba84388f9739414e
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/360204
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Danny Song <dsong@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: dts: tn7c: includes Hynix DVFS table
Martin Chi [Mon, 27 Jan 2014 05:44:33 +0000]
ARM: dts: tn7c: includes Hynix DVFS table

http://nvbugs/1438727/10

bug 1438727

Change-Id: I8280c79ec88c62a329de7f3d4b46f2623f57887e
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/360203
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Pu <dpu@nvidia.com>
Reviewed-by: Danny Song <dsong@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoarm:tegra:TN7C: set VDDIO_DDR to 1.38 per ram-code
Martin Chi [Mon, 27 Jan 2014 06:06:04 +0000]
arm:tegra:TN7C: set VDDIO_DDR to 1.38 per ram-code

RAM_CODE[1:0]=0x00, Micron DDR3L, requires 1.38V
RAM_CODE[1:0]=0x01, Hynix DDR3L, requires 1.35V

bug 1438727

Change-Id: I8cfe9e7220f197bcf6e00b91c5d354c3eda8b3f0
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/360198
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoRevert "ARM:tegra:tn7c:switch to LP cluster before LP1"
Martin Chi [Fri, 24 Jan 2014 09:20:19 +0000]
Revert "ARM:tegra:tn7c:switch to LP cluster before LP1"

This reverts commit d9b262e497e4d760f6c2eea595da6845f8fc4b23.

Change-Id: Iaba5e51ce2b340891c2f4746ae401ecb8dbbcc16
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/359766
GVS: Gerrit_Virtual_Submit

5 years agousb: acm: No hangup for Bruce during reset resume.
glei [Fri, 24 Jan 2014 09:33:26 +0000]
usb: acm: No hangup for Bruce during reset resume.

Set NO_HANGUP_IN_RESET_RESUME flag to Bruce model to
prevent tty hangup during reset resume procedure.

Bug 1446181

Change-Id: I3866e49e8c36ec8627791cd63a237b3bca63e0b9
Signed-off-by: glei <glei@nvidia.com>
Reviewed-on: http://git-master/r/359777
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>

5 years agoARM:tegra:tn7c:Cut modem power if not attached
ximingc [Fri, 24 Jan 2014 02:47:36 +0000]
ARM:tegra:tn7c:Cut modem power if not attached

Cut modem buck-boost circuit power if modem part is not inserted.
 MDM_APACK2 (gpio input) 0 : modem inserted
                         1 : not inserted
 MODEM_EN (gpio output)  0 : power off
                         1 : power on

Bug 1443384

Change-Id: Ib79d7c673d98d75dd8294f1568537080b1a65a83
Signed-off-by: ximingc <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/359626
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>

5 years agoARM:tegra:tn7c: Export GPIO122 (GPIO_PP2)
ximingc [Thu, 23 Jan 2014 07:52:13 +0000]
ARM:tegra:tn7c: Export GPIO122 (GPIO_PP2)

User space can control the output value.
Output 0 to cut power of modem buck-boost circuit.
echo 0 > /sys/class/gpio/gpio122/value

Bug 1443384

Change-Id: I673a1e86099774ecf3ce1c235333abc91217eb6f
Signed-off-by: ximingc <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/359212
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>

5 years agoARM:tegra:tn7c:Configure GPIO_PQ1 as sleep gpio
ximingc [Thu, 23 Jan 2014 03:29:45 +0000]
ARM:tegra:tn7c:Configure GPIO_PQ1 as sleep gpio

GPIO_PQ1(KB_COL1) needs to re-configure in LP0 state.

Bug 1439735

Change-Id: I5a18136c537e7a6938e19f4e834bde61846c1161
Signed-off-by: ximingc <ximingc@nvidia.com>

5 years agogpio:tegra:Add sleep gpio function
ximingc [Thu, 23 Jan 2014 03:25:50 +0000]
gpio:tegra:Add sleep gpio function

Some GPIO pins need re-configure when system enters LP0

Bug 1439735

Change-Id: I3d9c864b5c099ab834543e2f3c905cab8a957372
Signed-off-by: ximingc <ximingc@nvidia.com>

5 years agoARM:Tegra:Add sleep GPIO function
ximingc [Thu, 23 Jan 2014 06:12:37 +0000]
ARM:Tegra:Add sleep GPIO function

Some GPIO pins need re-configure while system enters LP0.

Bug 1439735

Change-Id: I2d21e4119c7a9d762db17b0b753ba12781547a27
Signed-off-by: ximingc <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/359078
Reviewed-by: Martin Chi <mchi@nvidia.com>

5 years agommc: core: Handle card shutdown from mmc_bus
David Yu [Fri, 24 Jan 2014 06:28:59 +0000]
mmc: core: Handle card shutdown from mmc_bus

Considering shutdown of the card, the responsibility to initate this
sequence shall be driven from the mmc_bus.

This patch enables the mmc_bus to handle this sequence properly. A new
.shutdown callback is added in the mmc_driver struct which is used to
shutdown the blk device.

Bug 1445876

Change-Id: I947315a7102606a1873eeebf136d741c98b46c76
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/359692
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agommc: sdhci: tegra: fix shutdown order
David Yu [Fri, 24 Jan 2014 06:34:50 +0000]
mmc: sdhci: tegra: fix shutdown order

Fix mmc command error caused by early regulator shutdown.

Bug 1445876

Change-Id: I446dba2b216ca6fdebf38aa7d1afaf88370b5bee
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/359698
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agomisc: tegra-baseband: Don't abort suspend notify
David Yu [Fri, 24 Jan 2014 01:53:34 +0000]
misc: tegra-baseband: Don't abort suspend notify

Bug 1445863

Change-Id: I6d58eed1ffbfc4012f2e4543a87d5f06e59542a7
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/359590
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoarm:tegra: Correct sample rate for voice call
Lei Fan [Tue, 21 Jan 2014 06:39:50 +0000]
arm:tegra: Correct sample rate for voice call

Because the channel1 of DAM is used for DL, there is no SRC in DL.
the  codec need to be set the same rate with baseband.
Otherwise the I2S Timing REG cannot get the suited value and
left channel may be swapped with right channel.

Bug 1441449

Change-Id: Ib71bb41a7e03d2a85d718be0c94a5a5f525c0ce3
Signed-off-by: Lei Fan <leif@nvidia.com>
Reviewed-on: http://git-master/r/358078
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijay Mali <vmali@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>

5 years agoARM: tegra: usb: disable WAKE_ON_CNNT_EN for HSIC
Suresh Mangipudi [Thu, 23 Jan 2014 05:51:21 +0000]
ARM: tegra: usb: disable WAKE_ON_CNNT_EN for HSIC

Disable USB_WAKE_ON_CNNT_EN_DEV bit during phy_power_off for HSIC

Bug 1430974

Change-Id: I545c7cc0f1b87f4540554b3d7e5e9cca89ea2411
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/359109
Tested-by: Martin Chi <mchi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Martin Chi <mchi@nvidia.com>

5 years agousb: ehci: Tegra: add echi wake lock
Martin Chi [Thu, 23 Jan 2014 04:31:46 +0000]
usb: ehci: Tegra: add echi wake lock

For now, only apply it in tegra_ehci_irq when it's
triggered by remote wake-up irq, since, without
wake lock hold here, device may continue the
suspend if remote wake-up comes in suspending.

bug 1431546

Change-Id: I44ea268ca168a1a3a9098ad9f5f6f7b1270a0fa5
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/359090

5 years agousb: ehci: Tegra: change to noirq suspend/resume
Martin Chi [Thu, 23 Jan 2014 02:54:56 +0000]
usb: ehci: Tegra: change to noirq suspend/resume

Chnage ehci suspend/resume to noirq suspend/resume
to enable it get more chances to handle the remote
wake-up which may come after normal suspend/resume

bug 1430974

Change-Id: I0e27435c729b515c968990507a1d6ab53c4ce37a
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/359052

5 years agoxhci: tegra: support override fused hs_curr_level
JC Kuo [Fri, 4 Oct 2013 11:26:27 +0000]
xhci: tegra: support override fused hs_curr_level

This change add the capability to override hs_curr_level value read
from usb_calib0 fuse register. Some board designs need different
hs_curr_level value to optimize USB 2.0 signals.

bug 1340062

Change-Id: Ic2435dc1b8c85bea507144558267b8bd29c2dad0
Reviewed-on: http://git-master/r/281745
(cherry picked from commit 938d7343c0f835772aa0f50c9df6cb32ba6b0345)

Conflicts:
arch/arm/mach-tegra/include/mach/xusb.h

Change-Id: I611dc365c27caad14d17cb95e4e0d469ec03cc62
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/358216
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Joy Wang <joyw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoarm: tegra: tegratab: ULPI_DATA5 pin selection
Min-wuk Lee [Wed, 22 Jan 2014 05:04:32 +0000]
arm: tegra: tegratab: ULPI_DATA5 pin selection

ULPI_DATA5 pin is not used in ERS and P1640,
but used to avoid avdd_hdmi_pll regulator leakage.
This pin needs to be selected according to
board selection.

Bug 1439626

Change-Id: I11f9305e718af28f221efae5cfcdd722e0098a29
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/358528
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM: dts: update dts based on board config.
Harry Hong [Wed, 22 Jan 2014 01:56:14 +0000]
ARM: dts: update dts based on board config.

Bug 1439626

Change-Id: I621af6dfcc2977f2f30ce3bd7242d016f3eb89f1
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/358474

5 years agoinput: touch: maxim: revert device splitting
Youngjin Kim [Wed, 15 Jan 2014 12:25:18 +0000]
input: touch: maxim: revert device splitting

Set number of input devices back to 1 and disable
the mutual exclusion of finger and stylus.

Bug 1439868

Change-Id: I104cd8f4fa71c542399e61ae0015465638f27d3c
Signed-off-by: Youngjin Kim <nkim@nvidia.com>
Reviewed-on: http://git-master/r/356008
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoUSB: ehci: tegra: destroy mutex when driver remove
Suresh Mangipudi [Thu, 7 Nov 2013 05:28:40 +0000]
USB: ehci: tegra: destroy mutex when driver remove

mutex_destroy to be called when the driver is removed.

BUG 1401358

Change-Id: Idb6703c01c41d241d8bdb67ca19c80a78c52b513
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/328852
(cherry picked from commit 739f06547bff816641eb998e6f109e64b614ebfe)
Reviewed-on: http://git-master/r/358170
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM: tegra: tegratab: avdd_hdmi_pll selection
Min-wuk Lee [Tue, 21 Jan 2014 09:51:40 +0000]
ARM: tegra: tegratab: avdd_hdmi_pll selection

For P1988, discharge unit for avdd_hdmi_pll
regulator is prepared and that is handled by
GPIO_PO6 pin. For other platforms like E1569,
P1640 do not have this unit.
This change selects proper avdd_hdmi_pll
regulator platform data according to board
selection.

Bug 1439626

Change-Id: I7515e8a4e4d57a491720fc0adbf7790c7c73a39c
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/358158
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>

5 years agoxhci: tegra: fix DFE/CTLE control sequence
joyw [Fri, 6 Sep 2013 04:55:48 +0000]
xhci: tegra: fix DFE/CTLE control sequence

According to PG to adjust DEF and CTLE context save/restore
programming sequence on T114 rel17 branch.

Bug 1345950

Change-Id: Ie7ef0385ea70616ab69dd251d0b383cd9c62afa8
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/271323
(cherry picked from commit 107b3dc2c5feb25e14cf29328323a0dfdec717ce)
Reviewed-on: http://git-master/r/358118
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoxhci: tegra: Fix bias pad power control
joyw [Tue, 24 Sep 2013 11:06:40 +0000]
xhci: tegra: Fix bias pad power control

Per UTMIP software guideline document, if xusb own OTG port0,
use xusb padctl register space to power on/off bias pad.

Bug 1334491
Bug 1242148

Change-Id: I28c7b9346b8332352fa53996769d6a76221b5ac4
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit abb84051c9cf6e0709a752081ae2102e349e0955)
Reviewed-on: http://git-master/r/358100
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agousb: xhci: tegra: enable clock after unpowergate
joyw [Tue, 6 Aug 2013 08:28:42 +0000]
usb: xhci: tegra: enable clock after unpowergate

Follow PG, enable host partition clock after unpowergate
host partition.

Bug 1333946

Change-Id: I47d7bfaedded3d8ca07edd9c1315ade2cccdc579
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/258633
(cherry picked from commit 02c7352077ef00448f12132478f46b106d4b3033)
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/280137
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
(cherry picked from commit d844bb935c1aaec4d873175cc8c2270c5247ed45)
Reviewed-on: http://git-master/r/358084
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agostaging: iio: ltr659ps: changing permission.
Harry Hong [Tue, 21 Jan 2014 06:07:09 +0000]
staging: iio: ltr659ps: changing permission.

Chaning sys node of "enable" attr from 0x666 to 0x644
due to cts failure.

Bug 1443978

Change-Id: I41d03b8a39a553d8c210791086bbe440416e7415
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/358046

5 years agoinput:misc: Add unified sysfs location for management
Xiaohui Tao [Fri, 16 Aug 2013 22:10:17 +0000]
input:misc: Add unified sysfs location for management

Provide a unified sysfs location so that init.xxx.rc
can change the permission without frequent update.

Change-Id: Ic35a122d96de60896f386a042d336ef5dd0a9765
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/263540
(cherry picked from commit 5a56bb9fce86683037a1689d137aa4416938d5c0)
Reviewed-on: http://git-master/r/358088
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM: tegra: tegratab: add vlogic_gyro for P1988
David Yu [Tue, 21 Jan 2014 06:16:56 +0000]
ARM: tegra: tegratab: add vlogic_gyro for P1988

Bug 1439626

Change-Id: I30edf057a89350b6ffd6ab1bdf3418122c1a0494
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/358051
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM: tegra: tegratab: adding tn7_2014 support
Harry Hong [Mon, 20 Jan 2014 07:56:39 +0000]
ARM: tegra: tegratab: adding tn7_2014 support

It's only for initial bring-up.

Bug 1439626

Change-Id: Iebae4e4a5168d29804e7f2c2143973371b9ac197
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/357606

5 years agoARM:tegra:tn7c:Suppress kernel warning message
Chen Jian [Mon, 20 Jan 2014 06:24:55 +0000]
ARM:tegra:tn7c:Suppress kernel warning message

  - Pair enable_irq/disable_irq to remove kernel
    warning message.

Change-Id: I7c935e3ad6bdfbf5cc4775ab6977dcb811c168a3
Signed-off-by: Chen Jian <jackchen@nvidia.com>
Reviewed-on: http://git-master/r/357580
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>

5 years agostaging: iio: cm3217: fix i2c no ack
David Yu [Mon, 20 Jan 2014 08:55:23 +0000]
staging: iio: cm3217: fix i2c no ack

When power button is repeatedly pressed fast,
i2c no ack error occurs due to unbalanced regulator on/off.

 tegra-i2c tegra11-i2c.0: no acknowledge from address 0x10
 tegra-i2c tegra11-i2c.0: no acknowledge from address 0x10
 tegra-i2c tegra11-i2c.0: no acknowledge from address 0x10
 tegra-i2c tegra11-i2c.0: no acknowledge from address 0x10
 tegra-i2c tegra11-i2c.0: no acknowledge from address 0x10
 tegra-i2c tegra11-i2c.0: no acknowledge from address 0x10
 tegra-i2c tegra11-i2c.0: no acknowledge from address 0x10
 tegra-i2c tegra11-i2c.0: no acknowledge from address 0x10
 tegra-i2c tegra11-i2c.0: no acknowledge from address 0x10
 tegra-i2c tegra11-i2c.0: no acknowledge from address 0x10
 [ERR][CM3217 error] I2C_TxData retry over 10
 [ERR][CM3217 error]_cm3217_I2C_Write_Byte: I2C_TxData fail

Change-Id: I55495221340ffa3aa796f4d932daca9e4cadc640
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/357632
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoprintk: apply timezone in the kernel log time
David Yu [Mon, 20 Jan 2014 06:27:18 +0000]
printk: apply timezone in the kernel log time

- fix  recursion bug
- show timezone applied log since logcat shows it

Change-Id: If25195ddd729d9897494aaa846525f25df1c872d
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/357582
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoinput: gpio_keys: Fix disordered wakeup key reports
David Yu [Mon, 20 Jan 2014 04:10:26 +0000]
input: gpio_keys: Fix disordered wakeup key reports

- If power key is released before gpio_keys_gpio_report_wake() called,
power key press-release events pair will be reported twice and supress
display from coming back up.
- If power key is released before enabling device driver to receive
interrupts, power key release interrupt will be lost due to the previous
pending key press intterupt, and we can only get the released key state.
Change to call gpio_keys_gpio_report_wake() and gpio_keys_report_state()
in gpio_keys_resume_noirq() callback to avoid the disordered reports.

Bug 1372600
Bug 1346985
Bug 1437458

Change-Id: I8e35f6012f2fc600f4dd830e1c191f9f2782e621
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/280231
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/357540
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM:Tegra:tn7c: config KB_COL1 in LP0
ximingc [Fri, 17 Jan 2014 03:34:07 +0000]
ARM:Tegra:tn7c: config KB_COL1 in LP0

In LP0, configure GPIO KB_COL1 pull-down
In other states, configure KB_COL1 pull-up

Bug 1439735

Change-Id: Ifd35b3d77f631f32a66d36b0e92afe65cb2813df
Signed-off-by: ximingc <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/356864
Reviewed-by: Martin Chi <mchi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM: 7809/1: perf: fix event validation for software group leaders
Will Deacon [Wed, 7 Aug 2013 22:39:41 +0000]
ARM: 7809/1: perf: fix event validation for software group leaders

Change-Id: I97a5d59a97054742cedc7cd5cea71a74f377678b

commit c95eb3184ea1a3a2551df57190c81da695e2144b upstream.

It is possible to construct an event group with a software event as a
group leader and then subsequently add a hardware event to the group.
This results in the event group being validated by adding all members
of the group to a fake PMU and attempting to allocate each event on
their respective PMU.

Unfortunately, for software events wthout a corresponding arm_pmu, this
results in a kernel crash attempting to dereference the ->get_event_idx
function pointer.

This patch fixes the problem by checking explicitly for software events
and ignoring those in event validation (since they can always be
scheduled). We will probably want to revisit this for 3.12, since the
validation checks don't appear to work correctly when dealing with
multiple hardware PMUs anyway.

Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I0308662012bd145a7e3d817077198392dab91054
Reviewed-on: http://git-master/r/356836
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoperf/arm: Fix armpmu_map_hw_event()
Stephen Boyd [Wed, 7 Aug 2013 23:18:08 +0000]
perf/arm: Fix armpmu_map_hw_event()

Change-Id: Ib0409a5f7a4aeec93e535757dcd9d2c04330f495

commit b88a2595b6d8aedbd275c07dfa784657b4f757eb upstream.

Fix constraint check in armpmu_map_hw_event().

Reported-and-tested-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Change-Id: I97050b1481003481b81cbdfeb898ae7478561d2a
Reviewed-on: http://git-master/r/356830
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM: dts: Adding tn7_2014 dts
Harry Hong [Thu, 16 Jan 2014 07:14:31 +0000]
ARM: dts: Adding tn7_2014 dts

Bug 1439626

Change-Id: I86359ba213ae8f94f541c185a2d7559ca4de443e
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/356831

5 years agousb: gadget: Tegra: don't boost cpu freq on boot
David Yu [Thu, 16 Jan 2014 12:18:58 +0000]
usb: gadget: Tegra: don't boost cpu freq on boot

Change-Id: I375e92e55b6f37e29e384f979f09158eadf7269f
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/356537
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agovideo: tegra: host: Fix memory leakage in msenc
Ahung Cheng [Thu, 7 Nov 2013 07:44:57 +0000]
video: tegra: host: Fix memory leakage in msenc

Add kfree for msenc in deinit

bug 1402255

(Cherry-picked from commit bd1fc938268f40581c2ff7f6f698bdd7c8c8bc2a)
Reviewed-on: http://git-master/r/327535
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

Change-Id: I8b921d2b221126097ebf48e14c679b0e08245bed
Signed-off-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-on: http://git-master/r/353527
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM: Tegra: remove duplicate code for LP1 resume
Martin Chi [Thu, 16 Jan 2014 08:12:43 +0000]
ARM: Tegra: remove duplicate code for LP1 resume

Remove the duplicate code because of the merge
commit http://git-master/r/353758 twice.
With these duplicate code, device fail to resume
from LP1 when hang up the call.

bug 1441341

Change-Id: I3e560a5162df51183710a9ff6161158ca59e6303
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/356375
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoprintk: change the timestamp behind kerne log to rtc time
Martin Chi [Thu, 16 Jan 2014 05:43:37 +0000]
printk: change the timestamp behind kerne log to rtc time

the original timestamp is CPU time, which causes
the time is missing in kernel log after LPx.
Change to rtc time to fix this and also good
for cross-checking with logcat

Change-Id: I87df3df6c699dacea40d550043afda0dc00d5c82
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/356301
Reviewed-by: Gabby Lee <galee@nvidia.com>
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Reviewed-by: Jake Park <jakep@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: Tegra: TN7C:clean up board info
David Pu [Mon, 13 Jan 2014 05:36:19 +0000]
ARM: Tegra: TN7C:clean up board info

there is just one board id(P1988), clean up useless board info
detection. there is just one Fab version A00 so far, also remove useless
fab version checking.

Bug 1430589

Signed-off-by: David Pu <dpu@nvidia.com>
Change-Id: I314173117d5620ce53770fcc2c18e29d39fa782d
Reviewed-on: http://git-master/r/354893
Reviewed-by: Danny Song <dsong@nvidia.com>
Tested-by: Danny Song <dsong@nvidia.com>

5 years agoARM:tegra:tn7c:Enable proximity sensor LTR659PS
Chen Jian [Wed, 15 Jan 2014 05:39:01 +0000]
ARM:tegra:tn7c:Enable proximity sensor LTR659PS

  - Enable p-sensor LTR659PS with TN7C device

Bug 1431744

Change-Id: Icfde46c18730483d4f6a60c32f9a5972c3cc36af
Signed-off-by: Chen Jian <jackchen@nvidia.com>
Reviewed-on: http://git-master/r/355852
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>

5 years agotn7, tn7c: config: add SECURITY_SELINUX_BOOTPARAM
Hyong Bin Kim [Tue, 14 Jan 2014 10:10:55 +0000]
tn7, tn7c: config: add SECURITY_SELINUX_BOOTPARAM

For disable selinux, add SECURITY_SELINUX_BOOTPARAM config.
Default is enable. We can disable selinux via kernel command line "selinux=0".

Bug 1367030

Change-Id: I3f7902f003d516e1569adf4872bcbbc86445ee08
Signed-off-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/355510
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoARM:tegra:TN7C: fix typo in INA current setting
David Pu [Fri, 10 Jan 2014 05:02:16 +0000]
ARM:tegra:TN7C: fix typo in INA current setting

there is a typo in INA230 current setting.

Change-Id: Ie4d32cee3dc2dcb5dc565bc2a42484de80414a4e
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/354057
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>

5 years agoUSB: cdc-acm: fix data reordering issue
Yu-An Shih [Wed, 8 Jan 2014 03:35:25 +0000]
USB: cdc-acm: fix data reordering issue

There is a race condition between acm_tty_unthrottle and
acm_process_read_urb; new data can be added to the tty buffer
before the data queued when throttled.

Bug 1436086

Change-Id: I76364cc69fb718e34ae646497591ddc8a717e6e1
Signed-off-by: Yu-An Shih <yshih@nvidia.com>
Reviewed-on: http://git-master/r/353617
(cherry picked from commit 381e5c6d0bc2f3a5eb266b5a54d83d491cbac20d)
(cherry picked from commit ee96ff10770213e6376027556efe8a5959f61320)
Reviewed-on: http://git-master/r/355823
Reviewed-by: Gray Lei <glei@nvidia.com>
Tested-by: Gray Lei <glei@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Martin Chi <mchi@nvidia.com>

5 years agoarm: tegra: TN7C: reduce fb0 framebuffer size
Martin Chi [Tue, 14 Jan 2014 16:51:26 +0000]
arm: tegra: TN7C: reduce fb0 framebuffer size

Since TN7C works with 800x1280 resolution,
reduce the fb0 framebuffer size to save memory.

bug 1431165

Change-Id: I0eaddc50dbe95d8fdc9205020e3aa8d4e0005826
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/355563
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Danny Song <dsong@nvidia.com>

5 years agoarm: tegra: tn7c: set MDM_RST default to HIGH
Martin Chi [Tue, 14 Jan 2014 09:04:43 +0000]
arm: tegra: tn7c: set MDM_RST default to HIGH

set MDM_RST default to HIGH, so that Bruce module
can be enumerated eariler.

bug 1439737

Change-Id: Ie3b8fae666a3665bb7b5aa57272269f4a475b6e6
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/355495
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agosoc: codecs: rt5639: Implement i2c shutdown
Nine Feng [Wed, 8 Jan 2014 09:47:09 +0000]
soc: codecs: rt5639: Implement i2c shutdown

i2c shutdown implementation for rt5639
No i2c transaction should happen after
shutdown

Bug 1431674

(cherry-pick from d17a5403140a45e43cb21cffe6cf391a2e3abe62)
Reviewed-on: http://git-master/r/188216/

Change-Id: Iadc18d8e84a10b2735503c99c4b7003e275e4242
Signed-off-by: Nine Feng <nfeng@nvidia.com>
Reviewed-on: http://git-master/r/353242
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>

5 years agousb: gadget: Tegra: fix audio stutter
David Yu [Mon, 13 Jan 2014 01:24:50 +0000]
usb: gadget: Tegra: fix audio stutter

Boost CPU freq when cable is plugged in/out.
Use high priority single thread workqueue to run work function earlier.

Bug 1435328

Change-Id: Ib2192fa5c30546d0b4e47dec6479c715d58bf795
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/354831
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agotegra: hdmi: support HDMI VSDB VIC parsing
Emma Yan [Mon, 30 Sep 2013 13:39:14 +0000]
tegra: hdmi: support HDMI VSDB VIC parsing

Bug 1167856
Bug 1357380
Bug 1366416
Bug 1369156
Bug 1375947

(cherry picked from commit f649c7aded9902bbeb6e79423e1af87553441949)
Reviewed-on: http://git-master/r/280300
Change-Id: Ifd2fce407405bed92d8c399c742635f6e9c59918
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/353721
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>

5 years agoARM: Tegra: Utilize burst policy for LP1 wakeup
Antti P Miettinen [Sun, 13 Oct 2013 19:52:35 +0000]
ARM: Tegra: Utilize burst policy for LP1 wakeup

Running SCLK from CLKS makes LP1 wakeup latencies horrible.
However, we can utilize IRQ bursting to switch automatically
to CLKM upon LP1 wakeup IRQ. This maintains low power for LP1
but improves wakeup latencies significantly.

Bug 1381343

Change-Id: I9a3fcd81999d1b593bf242bfa7ef8505f9848d43
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/298749
(cherry picked from commit 39d6266e1ed04512809badb263a6d9b4346a49e4)
Reviewed-on: http://git-master/r/298744
(cherry picked from commit 12a25b041874515a7076b30f1462a12756d75d16)
(cherry picked from commit b90f85660ac259da9190cce156763fb05caa5f82)
Reviewed-on: http://git-master/r/353758
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agovideo: tegra: host: Fix race in gr3d scaling
Arto Merilainen [Tue, 1 Oct 2013 12:33:24 +0000]
video: tegra: host: Fix race in gr3d scaling

The scaling code used cancel_work_sync() while holding a mutex. As the work
itself uses the same mutex, we risk causing a deadlock.

This patch refactors the code so that the mutex is not hold while calling
cancel_work_sync().

Bug 1371500

Change-Id: I3aa0de168cebcc1d8d1843813caee5e82fe3df06
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/280730
(cherry picked from commit 763125fba1c9a8a67a9968c8502c17465665eb35)
Reviewed-on: http://git-master/r/354208
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gabby Lee <galee@nvidia.com>
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agousb: gadget: tegra: remove spin_unlock/lock pair
Rohith Seelaboyina [Wed, 20 Nov 2013 05:36:52 +0000]
usb: gadget: tegra: remove spin_unlock/lock pair

Remove the extra spin unlock/lock pain while building
dtd, as data corruption seems to happen by swapping
of dtd when multiple gadget functions are loaded.
This changes will make build dtd as part of Critical
section, there by swapping of dtd's doesnt occur.

Bug 1380570

Change-Id: I69ffc92a294cba13e79e2a02382b0c8f6b8cb28d
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/334929
(cherry picked from commit 1716e1b6e87ce0765eaab4c0fb62007735b33ee8)
Reviewed-on: http://git-master/r/354900
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoxhci: tegra: Reset EMC bandwidth before elpg
Henry Lin [Tue, 29 Oct 2013 07:53:54 +0000]
xhci: tegra: Reset EMC bandwidth before elpg

xhci fw informs driver the changes to maximum bandwidth requirement
by MBOX_CMD_SET_BW mailbox command. Driver should reset the required
bandwidth to 0 before going to elpg.

Bug 1371282

Change-Id: Ic7cdd4d95335a02bce6b017d9d5af101bd4b1365
Signed-off-by: Henry Lin <henryl@nvidia.com>
Reviewed-on: http://git-master/r/304734
(cherry picked from commit f21d0ee5e1cadd578ad962df02f90a38adf16369)
Signed-off-by: Henry Lin <henryl@nvidia.com>
Reviewed-on: http://git-master/r/354846
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

5 years agoicera: cdc-acm: fix message lost in modem logging
Martin Chi [Fri, 10 Jan 2014 01:47:19 +0000]
icera: cdc-acm: fix message lost in modem logging

When CPU freq is too low (e.g. 51MHz), AP may fail
to receive all the modem log under some cases (e.g.
3G call) when modem generates a lot of log.

Boosting CPU freq to 696MHz can fix issue.

Bug 1432121

Change-Id: I92f7be137ee205b9936129242ab723d343e31046
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/351425
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit