4 years agomisc: add gps host wake driver
Manikanta [Tue, 18 Aug 2015 06:23:39 +0000]
misc: add gps host wake driver

- Parse gps_en gpio from DT and create a sysfs
node to set gpio value
- Register irq for geofencing feature
- Add binding doc for gps_wake driver

bug 200127146

Change-Id: I01a8b5ee39763068649e639f4883036f06a1be6a
Signed-off-by: Manikanta <mmaddireddy@nvidia.com>
Reviewed-on: http://git-master/r/789005
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/792854
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agonet: wireless: bcmdhd: Send DISASSOC to FW if status of wlan is connecting
Om Prakash Singh [Fri, 21 Aug 2015 06:24:19 +0000]
net: wireless: bcmdhd: Send DISASSOC to FW if status of wlan is connecting

Bug 200094442
Bug 200104476

Change-Id: I18a1f633f2019cd160cd342f39319a313637ffd6
Signed-off-by: lungtsai_lin <lungtsai_lin@htc.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/744280
(cherry picked from commit a1418f5f2b871f362050ca858c7c7aa6c6815a83)
Reviewed-on: http://git-master/r/744792
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoiio: meter: ina230: increase wait conversion time
Harry Hong [Tue, 1 Sep 2015 23:54:58 +0000]
iio: meter: ina230: increase wait conversion time

for one-shot measurement, if set the number of averages
to Max, 1024 for accuracy, there is timeout error.
So, increae wait converion time to Max 1 sec.

Bug 200113597

Change-Id: I209efb8ef2b2fffec79b3303f50be6d6e5aa6f9b
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/792759
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM64: dts: tegra21: set cpu/gpu regulator min voltage to 618.75mV
Harry Hong [Wed, 2 Sep 2015 04:46:57 +0000]
ARM64: dts: tegra21: set cpu/gpu regulator min voltage to 618.75mV

As per Maxim recommendation, setting CPU and GPU minimum voltage to
618.75mV as device is not able to output other two lower voltages
606.25mV(0x0) and 612.50mV(0x1).

Bug 200116080

Change-Id: I643847e7ee48ed597abcb744f202a2cd4e091d86
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/792861
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM: tegra: dt: provide maximum current on CPU/GPU rail
Harry Hong [Wed, 2 Sep 2015 04:43:22 +0000]
ARM: tegra: dt: provide maximum current on CPU/GPU rail

Provide maximum load current on CPU/GPU rail so that PMIC
Enhanced Transient Response (ETR) can be configured as per
MAXIM recommendation.

bug 200116080

Change-Id: I30bb15121d6cca3aaa3461c197ea4239e212ebd2
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/792860
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoRevert "arm64: configs: t210: Enable sound card"
Bharat Nihalani [Tue, 8 Sep 2015 08:24:04 +0000]
Revert "arm64: configs: t210: Enable sound card"

This reverts commit c0d591b99c8d05a16789a1d1ae43c335dc87841b
since this causes L4T sanity test failure.

Bug 1683727 : regression bug
Bug 200130213 : original bug

Change-Id: I42980fcd41cd77ef7cbb2417372f2f981b3677a5
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/795652
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>

4 years agoRevert "ASoC: tegra-alt: Add config for card registration"
Shridhar Rasal [Tue, 8 Sep 2015 07:35:36 +0000]
Revert "ASoC: tegra-alt: Add config for card registration"

This reverts commit 06c530498bd0c973cbd97faa973b11026ac3f8be
since this causes L4T sanity test failure.

Bug 1683727 : regression bug
Bug 200130213 : original bug

Change-Id: I943fe2a3879a800c023dc052d60f5a951dae5979
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/795634
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoARM: dts: ST8: Enable palmas-extcon wakeup property
Suresh Mangipudi [Wed, 26 Aug 2015 14:41:35 +0000]
ARM: dts: ST8: Enable palmas-extcon wakeup property

enable palmas-extcon wakeup property. This is enabling 9-μA current
source for ID line hence causing issues with RID_C detection.

Change-Id: I2afa34c6eb1612c007e292f48dd1b708a0064fc4
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/789656
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agovideo: tegra: host: Restore poweroff request
Arto Merilainen [Wed, 26 Aug 2015 23:58:02 +0000]
video: tegra: host: Restore poweroff request

Change 1a1db66cc323f6ac9e1f0d95449078b8de2f0073 refactored
keepalive flag to take a real pm runtime reference to a
device whenever the corresponding device node was open.
However, this regressed suspend stress testing; Since we
now take a real pm runtime reference to the device, having
the device node open prevents suspend. Depending on timing,
this may lead to failure to suspend.

This patch restores the no-poweroff request functionality to
nvhost acm and modifies poweroff requests to be flushed.

Bug 200132609
Bug 200132870
Bug 1679106

Change-Id: Ibdabec9ee004f2724595c64736b1a36d7f2cff25
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/791367
(cherry picked from commit 27019e0147b9a9b408b21fa530b3e50e6aa84881)
Reviewed-on: http://git-master/r/792513
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charles Kong <charlesk@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>

4 years agovideo: tegra: nvmap: Support vpr initialization from DT
Sri Krishna chowdary [Thu, 23 Jul 2015 04:36:35 +0000]
video: tegra: nvmap: Support vpr initialization from DT

Enable parsing of reserved memory nodes for vpr and avoid
legacy init in case carveouts are already initialized.

T124 and T132 L4T platforms do not support vpr_resize yet.
Current code can't handle the case when vpr_resize is disabled.
So, do not register vpr setup from DT for these platforms.

Bug 200027296

Change-Id: I86a69c0d3fde7e85ec90711902fee5da999ccc1e
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/740684
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoplatform: tegra: avoid legacy cma area init for carveout
Sri Krishna chowdary [Fri, 26 Jun 2015 16:22:26 +0000]
platform: tegra: avoid legacy cma area init for carveout

Avoid dma_declare_contiguous() call on vpr/generic cma device
if cma area is already intialized.

Bug 200092803

Change-Id: I7fc69bfcb83ef2485bb2d731fe674930786e11ac
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/763981
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>

4 years agovideo: tegra: nvmap: fix resizable cma memory init
Sri Krishna chowdary [Fri, 26 Jun 2015 13:38:21 +0000]
video: tegra: nvmap: fix resizable cma memory init

dma_declare_contiguous() fails since reserved-memory does
memblock_reserve() already. Replace it with cma_init_reserved_mem()
which is meant for initialization cma area after memblock_reserve()
is called.

Also, it is okay to use "reusable" for resizable cma as they are the
only kind of carveouts which are used by linux kernel.

Bug 200027296

Change-Id: I0c813c5e116df496f6d29cc10a7d438b1636cdf7
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/763980
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>

4 years agoRevert "platform: tegra: nvdumper: add device info"
Amit Sharma (SW-TEGRA) [Tue, 8 Sep 2015 03:47:02 +0000]
Revert "platform: tegra: nvdumper: add device info"

This reverts commit e8af814bee5cdecd0a4ee8532483d2a0cceb4296.

Change-Id: Id573ba4a828b08bce7fa0509cfa4c680a761809c
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/795541
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

4 years agoRevert "security: tlk_driver: pass device info to DMA API"
Amit Sharma (SW-TEGRA) [Tue, 8 Sep 2015 03:36:30 +0000]
Revert "security: tlk_driver: pass device info to DMA API"

This reverts commit 588d5915d732a454d245997cedadb5537c9b2220.

Need to revert as dma_set_coherent_mask() is causing issue, which
needs to be called for proper allocation of tlk circular buffer.
But, if we don't set the dma mask then buffer allocation will fails.
Hence, revert is needed.

Change-Id: I67c64483054381b816a15f0004d7146734636102
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/795537
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

4 years agoRevert "security: tlk_driver: set dma coherent mask for tlk"
Shridhar Rasal [Mon, 7 Sep 2015 16:40:02 +0000]
Revert "security: tlk_driver: set dma coherent mask for tlk"

This reverts commit ec5a4185d8ef9091fc4e19fbbaeacb2ab8ef4e92.
Original change http://git-master/r/#/c/793522/ breaks ap_sim_basic/t210 sanity test.

Original Bug 200134203
Bug 200137647

Change-Id: I9d752bc4d50612163e50393869634c32219f6a1f
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/795320
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoplatform: tegra: nvdumper: add device info
Amit Sharma (SW-TEGRA) [Tue, 25 Aug 2015 10:04:26 +0000]
platform: tegra: nvdumper: add device info

API: nvdumper_regdump_{init/exit}() allocate/free a bounce buffer in/from DMA
Memory. For this nvdumper driver calls dma_{alloc/free}_coherent() API's with
first arg: device as NULL.

However, in order to monitor the DMA'able memory in debugfs: "/d/dma/usage",
we need the device name info of each such client which uses the DMA API's
like: dma_{alloc/free}_coherent. Therefore, declare a device struct and
pouplate it with missing device name info.

Bug 200134203

Change-Id: I06de3efca42b62711cf5280eb9c330d708cc2a3a
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/788787
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agogpu: nvgpu: Separate kernel and user GPU VA regions
Sami Kiminki [Fri, 22 May 2015 17:48:22 +0000]
gpu: nvgpu: Separate kernel and user GPU VA regions

Separate the kernel and userspace regions in the GPU virtual address
space. Do this by reserving the last part of the GPU VA aperture for
the kernel, and extend GPU VA aperture accordingly for regular address
spaces. This prevents the kernel polluting the userspace-visible GPU
VA regions, and thus, makes the success of fixed-address mapping more
predictable.

Bug 200077571

Change-Id: I63f0e73d4c815a4a9fa4a9ce568709974690ef0f
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: http://git-master/r/746283
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agovideo: tegra: use vga mode if no edid upon hotplug
Naveen Kumar S [Fri, 4 Sep 2015 13:34:06 +0000]
video: tegra: use vga mode if no edid upon hotplug

When hdmi cable is connected but we do not get EDID from
sink for some reason, fallback to default vga mode so that
upper layers won't hang due to null mode.

bug 200102964

Change-Id: I0c898f26644472e39101ade4aa04be741487089d
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/794362
(cherry picked from commit 6d9d1dd5c0ae177001fbe73eb995e64fa50fb7be)
Reviewed-on: http://git-master/r/795113
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoarm64: tegra: jetson_cv: update power-monitor settings
Kerwin Wan [Mon, 24 Aug 2015 02:06:44 +0000]
arm64: tegra: jetson_cv: update power-monitor settings

Sense resistors and rails of power-monitor have been changed
on DVT. Update the power-monitor settings to match this.

Bug 1657022

Change-Id: Ibd45ba12be1e367d4418418ea40406cb3d569959
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/793495
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm64: configs: t210: Enable sound card
Sharad Gupta [Fri, 14 Aug 2015 05:51:27 +0000]
arm64: configs: t210: Enable sound card

Enabled sound card registration even if audio codec is
not connected (for T210 android platforms only).

Bug 200130213

Reviewed-on: http://git-master/r/783453
(cherry picked from commit 93c311ac24ced4a757a5829e4aa372d6d5f4b0a3)
Change-Id: Icf77b42bc5846b17c763172eb6bbf1a1cf579221
Signed-off-by: Sharad Gupta <sharadg@nvidia.com>
Signed-off-by: Asha T <atalambedu@nvidia.com>
Reviewed-on: http://git-master/r/789446
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoASoC: tegra-alt: Add config for card registration
Asha T [Thu, 13 Aug 2015 13:04:00 +0000]
ASoC: tegra-alt: Add config for card registration

Registration of audio card was causing L4T sanity test
failures when audio codec was absent. Added a new kernel
config to selectively enable this feature.

Bug 200130213

Reviewed-on: http://git-master/r/783159
(cherry picked from commit 8adb770420239e57a2061c54dafae08ddaee7928)
Change-Id: I0998c122742e4012eda02a3d389fae96ee85202b
Signed-off-by: Sharad Gupta <sharadg@nvidia.com>
Signed-off-by: Asha T <atalambedu@nvidia.com>
Reviewed-on: http://git-master/r/789447
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoARM: config: p1859: Make PCI_TEGRA as built-in
Sumit Singh [Thu, 27 Aug 2015 09:34:24 +0000]
ARM: config: p1859: Make PCI_TEGRA as built-in

Currently PCIe is loaded as a module. This change is making
PCIe as built-in driver. This is done to un-block other
changes that correct PCIE power gating sequence. Will investigate
why PCIE as a module does not work as a module as part of bug
200135266.

Bug 200132095

Change-Id: Idc6061046e49b8317aadc9a344fde18b0579381a
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/792848
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

4 years agopcie: host: tegra: removes cml0 clock
Vidya Sagar [Mon, 27 Jul 2015 15:24:58 +0000]
pcie: host: tegra: removes cml0 clock

removes cml0 clock as it is no longer being used for pcie
It also moves AFI and PCIE module's reset de-asserts out of
pg driver to pci host controller driver

Bug 200069084
Bug 200132095

Change-Id: Id3b18c6c41c9e3ad50ebd525ce263ff7a665890a
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/792847
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Sumit Singh <sumsingh@nvidia.com>

4 years agonet:wireless:bcmdhd: Enable PMF support
Dhruvaraja Kunjar [Fri, 6 Feb 2015 04:39:08 +0000]
net:wireless:bcmdhd: Enable PMF support

Enable the Protected Management Frames feature which
is mandatory for 802.11-ac certification.
Bug 200060786

Change-Id: I60cf958f9320fc3e92712d9aff192f8d21a3d190
Signed-off-by: Kasturi Raghavender <kraghavender@nvidia.com>
Reviewed-on: http://git-master/r/681820
(cherry picked from commit f3c9e1de630a0ae2a6fd9f055ea372644521f27b)
Reviewed-on: http://git-master/r/696336
Reviewed-on: http://git-master/r/791749
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agoplatform: tegra: powergate: skip reset de-assert
Prashant Gaikwad [Mon, 27 Jul 2015 06:44:38 +0000]
platform: tegra: powergate: skip reset de-assert

In some cases module driver wants follow a particular
order when de-asserting reset. Skip that step in PG
driver if there is requirement.

Bug 200132095

Change-Id: I7a68c7e7e59b590ff3ad9a0f6cfb60580af4b376
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/792846
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Sumit Singh <sumsingh@nvidia.com>

4 years agoplatform: tegra: power: remove extra clk operations
Prashant Gaikwad [Mon, 27 Jul 2015 04:19:44 +0000]
platform: tegra: power: remove extra clk operations

There are some extra clk_enable/disable operations in
power gate/ungate which disables/enables clocks
unnecessarily and some times breaking HW sequences.

Bug 200036839
Bug 200132095

Change-Id: I6114d2ca49aa8eaccc7f120d239363a4baea88f3
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/774936
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agovideo: tegra: nvmap: remove unused function
Amit Sharma (SW-TEGRA) [Fri, 4 Sep 2015 10:12:48 +0000]
video: tegra: nvmap: remove unused function

Remove the unused nvmap_dmabuf_release_stashed_maps API.
nvmap_dmabuf_release_stashed_maps() API was added to release
the dmabuf stashed mappings. This function was necessary to
release dmabuf stashed mappings before migrating handle memory
which was needed for hybrid memory model. Since, for now we
doesn't need hybrid memory model support thus removing the unused
function.

Bug 1616899
Bug 1519700

Change-Id: I0040db67ad19fa15ea50573c64b159dd9f392abe
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/794280
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agosecurity: tlk_driver: set dma coherent mask for tlk
Amit Sharma (SW-TEGRA) [Thu, 3 Sep 2015 04:58:21 +0000]
security: tlk_driver: set dma coherent mask for tlk

Driver performing DMA should be calling dma_set_coherent_mask()
to verify that DMA can be performed.

Bug 200134203

Change-Id: I1dc9ff1174075a96732dcecdc2d18837b7f41901
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/793522
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

4 years agoarm64: tegra: jetson_cv: add separate dts for boards w/ e2614
Kerwin Wan [Mon, 31 Aug 2015 09:17:41 +0000]
arm64: tegra: jetson_cv: add separate dts for boards w/ e2614

Bug 200129230

Change-Id: Ifa92d75e7845cdabd55f7bed89864057c6cacdae
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/791720
(cherry picked from commit 09de14a2e105540834abb112f2df325d0ec86652)
Reviewed-on: http://git-master/r/793475
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agoarch: arm: mach-tegra: 4k eDP regulator
Shu Zhong [Mon, 17 Aug 2015 18:35:13 +0000]
arch: arm: mach-tegra: 4k eDP regulator

avdd_io_edp supply needs to be enabled on T210 for eDP.
Updated eDP panel driver to correctly handle this regulator.

Bug 200119185

Change-Id: I3e5bd7a2d07c75054f096849a093447e588c4393
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/784930
(cherry picked from commit 1fec8891cff46493c33d9232fcf26c369dd569d7)
Reviewed-on: http://git-master/r/793280
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoarm64: jetson-cv: add eDP supply nodes
Shu Zhong [Fri, 14 Aug 2015 19:03:39 +0000]
arm64: jetson-cv: add eDP supply nodes

- avdd_io_edp rail is output from a load switch that's
  enabled by MAX77620_GPIO7.
- vdd_ds_1v8 supply is same as dvdd_lcd supply.
  Added to match expected regulator name in panel driver.

Bug 200119185

Change-Id: I9e520118f4fa6161b5fc647fdd97d2da14573b03
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/783825
(cherry picked from commit 23bce8d160c9dd6b8e4cb00627a4720be2514264)
Reviewed-on: http://git-master/r/793279
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoarm64: jetson-cv: 4k eDP panel + backlight nodes
Shu Zhong [Fri, 14 Aug 2015 19:00:23 +0000]
arm64: jetson-cv: 4k eDP panel + backlight nodes

Bug 200119185

Change-Id: Ibab67de80e92c8ffd2e075e0e76db65d6ea0bed3
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/783824
(cherry picked from commit 5fb04a56b8a0cc07b7c32b76f28883f4e2c13288)
Reviewed-on: http://git-master/r/793278
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

4 years agoarch: arm: dts: fix bpp for Sharp 4k eDP panel
Shu Zhong [Thu, 20 Aug 2015 23:35:41 +0000]
arch: arm: dts: fix bpp for Sharp 4k eDP panel

Change nvidia,out-depth to 24bpp since HW supports
18bpp and 24bpp.

Change-Id: I0e055eac25a1cca5d6fb4cd8f746fed3d1e49339
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/786916
(cherry picked from commit 9cfaa9e232a59216ca4e1b100590bfefb71025d8)
Reviewed-on: http://git-master/r/793277
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoarm: tegra: 4k eDP panel selection for Jetson-CV
Shu Zhong [Tue, 14 Jul 2015 21:17:32 +0000]
arm: tegra: 4k eDP panel selection for Jetson-CV

Modifies board-panel.c so that 4k eDP is chosen if
disp board id is 1824 and platform is Jetson-CV.

Bug 200119185

Change-Id: I183a8bf6bbb0419d7aeec92ca84b3565e1399451
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/770052
(cherry picked from commit 1d3f65f63469e6d2aa96fcf173618e5de74c49d0)
Reviewed-on: http://git-master/r/793275
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoarch: arm: mach-tegra: panel rst for 4k eDP
Shu Zhong [Mon, 17 Aug 2015 18:18:16 +0000]
arch: arm: mach-tegra: panel rst for 4k eDP

If the panel reset gpio is specified in DT, use it
instead of trying to get the avdd_3v3_dp regulator.

Bug 200119185

Change-Id: I97e27b3adc5b12891b1be4280d04f588526540be
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/784929
(cherry picked from commit f1f128033eaa66ea2e9248f7f1442b4737753721)
Reviewed-on: http://git-master/r/793276
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agotegra: dc: ext: fix Coverity dead code issue
Daniel Solomon [Tue, 1 Sep 2015 23:14:35 +0000]
tegra: dc: ext: fix Coverity dead code issue

Forcing has_timestamp to flase on Android causes
dead code.
Fix for Coverity CID 19586.

Bug 200116059

Change-Id: I3082f660d0a3d3c63d2d37e0cbbb80230e57a431
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/792742
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoarm64: jetson: move node for EEPROM to base dtb
Zheng Liu [Wed, 2 Sep 2015 18:26:22 +0000]
arm64: jetson: move node for EEPROM to base dtb

Move the board-has-eeprom node to the base dtb to support L4T.

Bug 200136453

Change-Id: I8f95ca8ca8c0676a8b0d321daf5393651bd49a7c
Signed-off-by: Zheng Liu <zhliu@nvidia.com>
Reviewed-on: http://git-master/r/793252
(cherry picked from commit a85727f11599ac39cf95adbba584c7ba0ae472b3)
Reviewed-on: http://git-master/r/794478
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

4 years agotegra-alt: Jetson-E/CV: Update DMIC DAI params
Viswanath L [Mon, 31 Aug 2015 12:46:21 +0000]
tegra-alt: Jetson-E/CV: Update DMIC DAI params

Update DAI params for "spdif-dit-2" (DMIC) so that DMIC driver
receives correct PCM configuration

Bug 200135303
Bug 200078772

Change-Id: Id65fea270483cff0953ad75f5d1e2142f508631f
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
(cherry picked from commit af71a7ce59de6b2fa59cb886e586d66a24720d4f)
Reviewed-on: http://git-master/r/794222
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoARM: tegra210: hawkeye: add top level DTS file for P2290-A04
Laxman Dewangan [Thu, 3 Sep 2015 17:11:05 +0000]
ARM: tegra210: hawkeye: add top level DTS file for P2290-A04

Add top level DTS file for P2290-A04 DVT and MP.

bug 1679130

Change-Id: I27b518b323265f52b04ccef8fafacaca30d1f72d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/793807
(cherry picked from commit 0f97b1f53881cc9db8e0b465839068133ae48e18)
Reviewed-on: http://git-master/r/794231

4 years agoARM64: t210: Hawkeye: remove GPU rail disable time configuration
Laxman Dewangan [Sat, 29 Aug 2015 08:20:20 +0000]
ARM64: t210: Hawkeye: remove GPU rail disable time configuration

There is no need to provide the disable time got GPU rail
and hence setting it as 2US instead of 60mS.

2uS is configured so that driver default based on datasheet
should be override with platform need.

Change-Id: Ie7d7a9f67edbfcd27ebf23521a4b8fc53b3ff04b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/791405
(cherry picked from commit 9677f1f754bcc03e7ed803cf2fe01bb5db948fbb)
Reviewed-on: http://git-master/r/794230

4 years agovideo: tegra: hdmi: make clock_refcount atomic
Santosh Reddy Galma [Wed, 19 Aug 2015 14:08:45 +0000]
video: tegra: hdmi: make clock_refcount atomic

remove clock_refcount_lock mutex variable in tegra_hdmi
structure as it is not significant and make clock_refcount
variable atomic. Handle clock_refcount properly in
tegra_hdmi_get() and tegra_hdmi_put().

Bug 200132061

Change-Id: I21eff40e0c2884ca1f7bcac692ac23b32319f6fb
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/785977
(cherry picked from commit cd7597982918e864ac230374d350038daa2eb85a)
Reviewed-on: http://git-master/r/791717
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agopower: tegra21: Add trace prints for powergate
Sumit Singh [Mon, 31 Aug 2015 09:07:53 +0000]
power: tegra21: Add trace prints for powergate

Create a trace event for powergate, and add trace prints
in different powergate functions.

To enable powergate event, use:
echo 1 > /d/tracing/events/power/powergate

bug 200135730

Change-Id: Idc4fc2c78e36d42a118d9ba0df662b64b7f85ac3
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/791707
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agovideo: tegra: dp: port dp_cust.py to android
Shu Zhong [Thu, 23 Jul 2015 23:12:15 +0000]
video: tegra: dp: port dp_cust.py to android

dp_cust.py is a syseng script that allows the user to configure
certain DP settings with TegraShell in test mode. This patch ports
this functionality to android as a debugfs node. This debugfs node
is not meant to be used with a real DP sink. See bug below for usage
info.

Bug 1651088

Change-Id: If749fc0cb36d6aff7bbfa5e5472d413231071f2b
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/774160
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

4 years agovideo: tegra: dp: fix dpaux read/write while cond
Shu Zhong [Mon, 24 Aug 2015 20:18:10 +0000]
video: tegra: dp: fix dpaux read/write while cond

timeout_retries and defer_retries are declared as
u32, and are always >= 0. This is a coverity issue.

Bug 1416640

Change-Id: I8bacfea4f170bb7fcfd9090820e274679cfa71d5
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/788384
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agodriver: thermal: pwm fan driver add tach feedback
Martin Gao [Fri, 28 Aug 2015 03:00:07 +0000]
driver: thermal: pwm fan driver add tach feedback

- use its irq counts to calculate realtime fan rpm
- expose debugfs nodes

Bug 1542391

Change-Id: Ib565ae97217a6bbd2622f4a6dd735f75d3cd9d19
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/790728
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

4 years agoarch: arm64: boot: dts: pwm fan driver dtsi change
Martin Gao [Fri, 28 Aug 2015 22:55:54 +0000]
arch: arm64: boot: dts: pwm fan driver dtsi change

- create a tegra210-pwm-fan.dtsi for common shared data
- added tach period in dtsi to support tach feedback counting

Bug 1542391

Change-Id: I9b4d04f11b72b015ededd4c578e18fb3cbfa7c80
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/763892
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

4 years agogpu: nvgpu: cyclestats snapshot permissions rework
Leonid Moiseichuk [Tue, 11 Aug 2015 10:38:51 +0000]
gpu: nvgpu: cyclestats snapshot permissions rework

Cyclestats snapshot feature is expected for new devices.
The detection code was isolated in separate function and run-time
check added to validate/allow ioctl calls on the current GPU.

Bug 1674079

Change-Id: Icc2f1e5cc50d39b395d31d5292c314f99d67f3eb
Signed-off-by: Leonid Moiseichuk <lmoiseichuk@nvidia.com>
Reviewed-on: http://git-master/r/781697
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agovideo: tegra: camera: ISOMGR support
Sudhir Vyas [Fri, 28 Aug 2015 16:10:46 +0000]
video: tegra: camera: ISOMGR support

Add tegra_camera_ctrl as an iso client
to ISOMGR driver.

Bug 200133567

Change-Id: Idadaccdc9f1da5129018321a600f1d2c46903a57
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/774482
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charles Kong <charlesk@nvidia.com>

4 years agoisomgr: Add tegra_camera_ctrl iso client
Sudhir Vyas [Fri, 28 Aug 2015 16:38:41 +0000]
isomgr: Add tegra_camera_ctrl iso client

tegra_camera_ctrl is common camera driver,
its iso bw requirements is camera's total
iso bw for given usecase. Add it as iso
client to ISOMGR.

Bug 200133567

Change-Id: I84ecd05daa1b074dbb556a3cec774df9be1b67ae
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/791102
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charles Kong <charlesk@nvidia.com>

4 years agoarm64: jetson-cv: enable backlight for e3320
Shu Zhong [Thu, 2 Jul 2015 23:11:26 +0000]
arm64: jetson-cv: enable backlight for e3320

Bug 1662119

Change-Id: I286d80867cb7dd724d2ab27bbd0951a849b0d50f
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/765499
(cherry picked from commit 97487b644e6a06145f6813ba20b50fa704bf3afa)
Reviewed-on: http://git-master/r/792902
Tested-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

4 years agovideo: tegra: dp: WAR for CTS 400.3.2.*
Animesh Kishore [Tue, 25 Aug 2015 11:40:40 +0000]
video: tegra: dp: WAR for CTS 400.3.2.*

CTS description: Link re-train after irq_event
due to loss of symbol lock, clock recovery or
inter-lane alignment.

DPR-120 v1.9[r6] issues irq_event during link training.
Not expected but analyzer limitation. .Post irq_event,
analyzer waits for status offset 0x200-0x205 read. Once host
reads the offsets, analyzer expects next activity from host
to be link BW initialization followed by training pattern write.
This creates conflicts since host is already in link training
process and continues to do so in expectation of recovering from
loss of synchronization. VESA suggests irq_event post link training
by host. DPR-120 not aligned to this. Irrespective of this limitation,
issue would have mitigated if host delays read of status offset
till post link training. However, on tegra status offset read is
automatic by HW. Unlike dGPU, no control for SW to disable this.

The WAR does not enable default link training post unblank only for
affected CTS. Once irq_event is issued by analyzer we initiate link
training. This keeps the motive of irq_event intact within analyzer
limitations. No side effect on general driver functionality.

Bug 200103501

Change-Id: I8e2c3de71e9943c4d053cb9bbc04dd22c38eb7af
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/788850
Reviewed-by: Shu Zhong <shuz@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

4 years agoarm64: dts: ABCA: update sound node.
Harry Hong [Tue, 1 Sep 2015 01:08:50 +0000]
arm64: dts: ABCA: update sound node.

Audio is broken on ABCA platform which is
the same audio codec/usecase of Jetson-e.
Applying jetson-e update.

1.Add ADSP audio node.
  Add dai-link for I2S3.
 it's from http://git-master/r/#/c/748103/

2.Add DAI for dmic2 on jetson platform.
 it's from http://git-master/r/#/c/749289/

Bug 200078772
Bug 200104719
Bug 200113589

Change-Id: I3282c277f12ba74d492adae69aaa2c3a59c8cc31
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/792112
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoinput: touch: sharp: update to version 12.
Jordan Nien [Wed, 5 Aug 2015 02:33:32 +0000]
input: touch: sharp: update to version 12.

- Fixed an issue that FW is not loaded
  if service is killed in LP0 state.
- Disable touch power if "wakeup_enable" is 2.

Bug 1671750
Bug 1657085

Change-Id: Icbb3570fe9d6496acc8a7dd3f992f6ae81711811
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/785676
(cherry picked from commit ad7e18682c78505b8051d6588ed31deca07dff2d)
Reviewed-on: http://git-master/r/788747
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agomisc: tegra_cec: fix cec_logical_addr_store print
Spencer Sutterlin [Fri, 30 Jan 2015 01:45:06 +0000]
misc: tegra_cec: fix cec_logical_addr_store print

Bug 1637415

Change-Id: Ib165165b67f5ea3723914270215de06df48f6591
Signed-off-by: Spencer Sutterlin <ssutterlin@nvidia.com>
Reviewed-on: http://git-master/r/679245
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xia Yang <xiay@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm64: dt: odin: enable spidev
David Yu [Wed, 26 Aug 2015 06:04:11 +0000]
arm64: dt: odin: enable spidev

Bug 200133740

Change-Id: If8ff5af240814d230a0f8575534e3308d9caa5c7
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/789402
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agovideo: tegra: dc: continue HDCP if Ainfo fails
Sharath Sarangpur [Fri, 21 Aug 2015 01:51:37 +0000]
video: tegra: dc: continue HDCP if Ainfo fails

Continue HDCP 1.x authentication if Ainfo write fails

Bug 200125552

Change-Id: I0856f84927392e2e3da741c1260ec21d86cbee60
Signed-off-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-on: http://git-master/r/786969
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoiio: sensors: bh1730fvc: fix debugfs stuck
David Yu [Thu, 27 Aug 2015 04:50:37 +0000]
iio: sensors: bh1730fvc: fix debugfs stuck

Bug 200108481
Bug 200113585

Change-Id: Ic3498a86c35cda33e127063851b9305152f2ad27
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/790120
(cherry picked from commit 67531c3b4b4b2f28d51de43e7b9317ebf49f63a8)
Reviewed-on: http://git-master/r/790125
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>

4 years agovideo: tegra: dc: set channel status register
Youngjin Kim [Fri, 28 Aug 2015 04:44:16 +0000]
video: tegra: dc: set channel status register

set channel status register value to disable
overriding channel data.

Bug 200132981

Change-Id: If7730dfa06a43c0236f954666619e36f0e28f507
Signed-off-by: Youngjin Kim <nkim@nvidia.com>
Reviewed-on: http://git-master/r/790778
(cherry picked from commit d161f42f5014f09767013b68631039dce1dcb33b)
Reviewed-on: http://git-master/r/791022
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoarm64: dts: add dmic controls
Sameer Pujar [Fri, 21 Aug 2015 14:21:45 +0000]
arm64: dts: add dmic controls

DMIC control paths are added to support capture
from dmic connected via codec.
SuperIO has rt5658 codec and the device address
is different from what we have on EVM. Added
entry in superIO dts to work for both

Note: The device needs to be flashed with proper
      DTB file to work for both EVM and SuperIO

Bug 200131501

Change-Id: Ifdc2867b7999648b76cb803a5df46f3b44e38b5c
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Signed-off-by: Diwakar Paliwal <dpaliwal@nvidia.com>
Reviewed-on: http://git-master/r/787365
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agopower: max17042: don't override 0x3B register
Harry Hong [Tue, 1 Sep 2015 02:33:52 +0000]
power: max17042: don't override 0x3B register

the register, 0x3B is specific to Max17042.
Override reg 0x3B only if chip type is Max17042.

Bug 200111955

Change-Id: I7a2f1a117442a65d289213041c74877be2723d9b
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/792148
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoASoC: Codec: Fix dmic capture in rt5659 driver
Sameer Pujar [Fri, 21 Aug 2015 14:14:44 +0000]
ASoC: Codec: Fix dmic capture in rt5659 driver

The change is needed for allowing the capture to
happen from connected dmic via codec.

Bug 200131501

Change-Id: I91bdcbcd96110d756e10b8ebdd4096e5eb485e91
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: http://git-master/r/787362
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Tested-by: Diwakar Paliwal <dpaliwal@nvidia.com>
Reviewed-by: Diwakar Paliwal <dpaliwal@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM64: DT: move sdmmc pinmux setting to right dt
Shawn Joo [Tue, 21 Jul 2015 03:14:10 +0000]
ARM64: DT: move sdmmc pinmux setting to right dt

move sdmmc pinmux and drv node from board pinmux
dt file to new sdmmc dt file

Bug 200124072

Change-Id: Ia63f11bba3897c28aab208640f359beaa2d7b8c5
Reviewed-on: http://git-master/r/772632
Signed-off-by: Shawn Joo <sjoo@nvidia.com>
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/776196
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>

4 years agoext4: make sure ex.fe_logical is initialized
Theodore Ts'o [Thu, 20 Feb 2014 05:36:41 +0000]
ext4: make sure ex.fe_logical is initialized

The lowest levels of mballoc set all of the fields of struct
ext4_free_extent except for fe_logical, since they are just trying to
find the requested free set of blocks, and the logical block hasn't
been set yet.  This makes some static code checkers sad.  Set it to
various different debug values, which would be useful when
debugging mballoc if these values were to ever show up due to the
parts of mballoc triyng to use ac->ac_b_ex.fe_logical before it is
properly upper layers of mballoc failing to properly set, usually by
ext4_mb_use_best_found().

Manual cherry-pick from 4.0, commit ab0c00fcc

Coverity ID: 15724
Coverity ID: 15725

Bug 200083369

Change-Id: I3c99d17a241b3de8e900ca3d36021a7c63df3d2c
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Sajan Karumanchi <skarumanchi@nvidia.com>
Reviewed-on: http://git-master/r/736695
(cherry picked from commit bc524208f78798c945b22cbe4201a16fa51e3d65)
Reviewed-on: http://git-master/r/788059
Reviewed-by: Kirankumar Bobbu <kbobbu@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>

4 years agoARM:Fix deadlock scenario with smp_send_stop()
Stephen Boyd [Tue, 30 Jul 2013 22:09:46 +0000]
ARM:Fix deadlock scenario with smp_send_stop()

If one process calls sys_reboot and that process then stops other
CPUs while those CPUs are within a spin_lock() region we can
potentially encounter a deadlock scenario like below.

CPU 0                   CPU 1
-----                   -----
                        spin_lock(my_lock)
smp_send_stop()
 <send IPI>             handle_IPI()
                         disable_preemption/irqs
                          while(1);
 <PREEMPT>
spin_lock(my_lock) <--- Waits forever

We shouldn't attempt to run any other tasks after we send a stop
IPI to a CPU so disable preemption so that this task runs to
completion.

bug 200135541

Change-Id: Ib21cedb53bc08a0b9d434b37fa4d1eb7f3df74a2
Reported-by: Sundarajan Srinivasan <sundaraj@codeaurora.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/792119
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoAsoc:tegra:rt5639: Fix repeated HS notifications
Diwakar Paliwal [Tue, 18 Aug 2015 04:50:02 +0000]
Asoc:tegra:rt5639: Fix repeated HS notifications

In suspend state, enabling interrupt before cache syncing were giving
false interrupts. Upon activating screen, these were seen as multiple
HS connected and disconnected notifications. Changed the order to
enable interrupt after rt5639 resume to fix the issue.

Bug 200066074

Change-Id: Ifca0b42a7fdf7d99dc33e124214ad161b76cafe2
Signed-off-by: Diwakar Paliwal <dpaliwal@nvidia.com>
Reviewed-on: http://git-master/r/785320
(cherry picked from commit 889617fbc83b3bb29fd3d82cffc53ab73f6b7169)
Reviewed-on: http://git-master/r/791581
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoplatform: nvadsp: Add spinlock in empty Handler
Ajay Nandakumar [Thu, 6 Aug 2015 14:56:42 +0000]
platform: nvadsp: Add spinlock in empty Handler

Adding Spinlock in hwmbox_send_empty_int_handler to prevent dequeuing
when an enqueue is happening from a thread on a different CPU.

Replace check for spurious mbox in empty handler with just a print.

Also remove API nvadsp_hwmbox_send_data from global include.

Bug 200123443
Bug 200126739

Change-Id: Iec79ecd9c83f0a2e8fe2945e8b1078028deaf90f
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/779903
(cherry picked from commit b3eb2b1378aae988658b296c22a00dd5ac2052b7)
Reviewed-on: http://git-master/r/783979
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoplatform: nvadsp: Fix exit error path on start
Ajay Nandakumar [Wed, 29 Jul 2015 06:43:36 +0000]
platform: nvadsp: Fix exit error path on start

Fixing the error path of ADSP when nvadsp_os_start fails.
Otherwise, this is leading to a kernel panic and crashing the
kernel on accessing ADSP without starting the ADSPOS.

Increasing DFS mailbox timeout to allow more time on ADSP to
process ADSP frequency update request.

Setting ALLOWED_CRASHES to 1 as interrupt state (GIC) and
memory state cannot be cleaned up properly in normal
scenario i.e. with audio playback ongoing.

Also, fixing the print from wfe to wfi as ADSP enters WFI
when suspended or stopped and updating DFS mailbox error
messages.

Bug 200123443
Bug 200126739

Change-Id: I0ae39f32f9ff6e51b4875ce63f2e4c64f258f847
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/776195
(cherry picked from commit 70fbe992a1b208513198cd725925c73cc62db1e2)
Reviewed-on: http://git-master/r/785152
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agogboot/dts: Cfg Hawkeye INA forced continuous scan
Amith [Tue, 24 Mar 2015 18:41:45 +0000]
gboot/dts: Cfg Hawkeye INA forced continuous scan

Add key for forced continuous measurement mode for INA3221 device and
io-channel-cells key.

Bug 1628176

Change-Id: Ib4c151632b067e6c10def15a4c0904864382e5a8
Signed-off-by: Amith <aramachan@nvidia.com>
Reviewed-on: http://git-master/r/721926
(cherry picked from commit 011d15e806ef12d672e62f186c4c2a665e768f73)
Reviewed-on: http://git-master/r/788523
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: John Moser <jmoser@nvidia.com>
Tested-by: John Moser <jmoser@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm: tegra: t124: Enable CONFIG_DM_VERITY
Ian Chang [Fri, 21 Aug 2015 06:11:06 +0000]
arm: tegra: t124: Enable CONFIG_DM_VERITY

Enable dm-verity daemon for verified boot.
This is requirement of Android M.

bug 200130698

Change-Id: I21087d9561af948e69a9163f4208376cb4f16d0e
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/788797
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

4 years agoiio: proximity: IQS2x3 v14 IRQ edge
Erik Lilliebjerg [Fri, 21 Aug 2015 15:26:21 +0000]
iio: proximity: IQS2x3 v14 IRQ edge

- Add a DT option to select interrupt trigger type.
- Change gpio_get_value calls to gpio_get_value_cansleep in case a GPIO
  expander is used.
- Update documentation for the DT option.

Bug 200129230

Change-Id: Iebdb89dabddf05a09c2c9d36cc3cf3592806b58e
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/787380
(cherry picked from commit efe0df79fc1f4313fa49673b5c6dedc3d5fb4fef)
Reviewed-on: http://git-master/r/792010
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agodts: e2614: Add sensor support
Robert Collins [Wed, 12 Aug 2015 21:05:02 +0000]
dts: e2614: Add sensor support

Bug 200129230

Change-Id: I5abee35fc51751440e7fa75901030a740b27a5a4
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/783890
(cherry picked from commit ca814d0eef4b989ba6d80321316f7445d7bc5bce)
Reviewed-on: http://git-master/r/782644
Reviewed-by: Automatic_Commit_Validation_User

4 years agoconfig: l4t: tegra21: disable wake_locks
Zheng Liu [Thu, 23 Jul 2015 18:57:02 +0000]
config: l4t: tegra21: disable wake_locks

Disable CONFIG_HAS_WAKELOCK and CONFIG_WAKELOCK for L4T since wake_locks are
not fully supported on Linux.

Bug 200114050

Change-Id: I3ea2d67ef0ad859dbaa7391f2c33e4520aedd362
Signed-off-by: Zheng Liu <zhliu@nvidia.com>
Reviewed-on: http://git-master/r/774039
(cherry picked from commit ddab9e975e7337f560ac04d06c2e4741357a16b8)
Reviewed-on: http://git-master/r/786052
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

4 years agoarm64: t210: update p2143-1170 emc tables to v07
Ishwarya Balaji Gururajan [Mon, 24 Aug 2015 21:52:57 +0000]
arm64: t210: update p2143-1170 emc tables to v07

update emc dvfs table and dvfs derating table to v07
* DVFS_gen_script update to V1.6 from V1.5 to support moving average method for
periodic calibration.
* It improves power supply noise margin (http://nvbugs/1659417)
* Update DVFS table format to rev0x7
* This requires DVFS sequence change V21021

Bug 1608816

Change-Id: Ib0d89c519a101eada4c23059a80c2f326742a825
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
Reviewed-on: http://git-master/r/788420
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agogpu: nvgpu: dump PGRAPH_PRI on error
Sam Payne [Thu, 20 Aug 2015 22:47:21 +0000]
gpu: nvgpu: dump PGRAPH_PRI on error

dumps NV_PGRAPH_PRI_GPC0_GPCCS_FS_GPC
whenever pbus sends the 0xbadf13 error

bug 1662268

Change-Id: I302ffe5c86098e7235ecc8c071a5e2c852455565
Signed-off-by: Sam Payne <spayne@nvidia.com>
Reviewed-on: http://git-master/r/786883
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agovideo: tegra: nvmap: fix incorrect tag warning generation
Krishna Reddy [Fri, 28 Aug 2015 22:59:40 +0000]
video: tegra: nvmap: fix incorrect tag warning generation

Bug 1592678

Change-Id: If7f6ce717a8e99b30a24da5fb6c9bad08c802515
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/791310

4 years agovideo: tegra: host: remove nvhost_module_set_devfreq_rate()
Shridhar Rasal [Mon, 24 Aug 2015 11:36:57 +0000]
video: tegra: host: remove nvhost_module_set_devfreq_rate()

- API nvhost_module_set_devfreq_rate() is no more used
  remove it's definition

Bug 1645757

Change-Id: Ifce552981f155fc1f4ff01c9408c5fef901a15c1
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/788150

4 years agovideo: tegra: host: add emc scaling as ACM client
Shridhar Rasal [Mon, 24 Aug 2015 11:33:57 +0000]
video: tegra: host: add emc scaling as ACM client

Bug 1645757

Change-Id: Icc681ce41944e4dc296862a59488c207b81d5716
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/788149

4 years agovideo: tegra: host: add devfreq as acm client
Shridhar Rasal [Mon, 24 Aug 2015 11:10:25 +0000]
video: tegra: host: add devfreq as acm client

- This registers devfreq as acm client to update
  clk to replace nvhost_module_set_devfreq_rate().

Bug 1645757

Change-Id: Iac195bd8176a201f1d9fddeef407dfd3a969b621
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/788124

4 years agoarch: arm64: dts: enable fast maxim charger
Rakesh Babu Bodla [Fri, 21 Aug 2015 15:44:47 +0000]
arch: arm64: dts: enable fast maxim charger

Add DT support for maxim fast charger for hawkeye.

Bug 200131998

Change-Id: I5cf16bf5c0c57d5f04c349c0059eb7b9046424d4
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/787391
(cherry picked from commit 272e4f20e14f180401c909ffe37a03fcb4f72099)
Reviewed-on: http://git-master/r/789498
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm64: tegra: jetson_cv: enable seamless display
Kerwin Wan [Thu, 6 Aug 2015 10:17:54 +0000]
arm64: tegra: jetson_cv: enable seamless display

Enable avdd and dvdd of panel during boot on
to enable seamless display.

Change-Id: Id298fb964a51d5cff42192692f8a30634ccce322
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/779737
(cherry picked from commit 7062af00c63b93be59d05bae553c7b5f198a3259)
Reviewed-on: http://git-master/r/791560
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agovideo: tegra: use simple ref_to_sync for yuv420
Ivan Raul Guadarrama [Mon, 17 Aug 2015 10:20:24 +0000]
video: tegra: use simple ref_to_sync for yuv420

When yuv420 modes are selected, use simple standard values for the ref_to_sync
parameter. In any other case, use the calculated values.

Bug 1668513
Bug 200129063

Change-Id: I1612cb59859b17f0ac60b4bcdcbafccf3392d74b
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/785392
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Tested-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoRevert "video: tegra: avoid zero for h_ref_to_sync calc"
Ivan Raul Guadarrama [Mon, 17 Aug 2015 10:09:31 +0000]
Revert "video: tegra: avoid zero for h_ref_to_sync calc"

This reverts commit 2b7d0c20b909021c071df2ca3aee4e3a151af3ec.

Bug 200129063

Change-Id: I6d3a4011004c0a9c53b321b5a391ccca8787a03c
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/785389
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Tested-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoqos: Priority based request disable knob
Sai Gurrappadi [Mon, 17 Aug 2015 22:07:13 +0000]
qos: Priority based request disable knob

/sys/module/qos/parameters/disable_priorities now allows users to
disable all requests made with priority values less than
disable_priorities. This is useful for testing and debugging.

Bug 1240893
Bug 200116272

Change-Id: I3d9d734739310fd773dfa5bd67d7c549ca547aa2
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/786185
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agodrivers: media: platform: ov10823 60fps modes
Gary Fitzer [Tue, 30 Jun 2015 22:03:50 +0000]
drivers: media: platform: ov10823 60fps modes

Add 4336x1220 and 2168x1220 at 60fps sensor modes
to ov10823 table.

Bug 1661020.

Change-Id: I4bc169645e559a389401dc2db328b2891bbfae3d
Signed-off-by: Gary Fitzer <gfitzer@nvidia.com>
Reviewed-on: http://git-master/r/764428
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hu He <hhe@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoof: reserved_mem: fix cell count for memory-region property
Sri Krishna chowdary [Fri, 28 Aug 2015 05:37:15 +0000]
of: reserved_mem: fix cell count for memory-region property

cell count represents the number of cells following a phandle
that are relevant to the phandle. There are 0 such cells for
memory-region property, it contains phandles entirely

Bug 200133729

Change-Id: Iba39de7cd31ed48314689dae7219b5cbb55f6c58
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/790825
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agoARM: configs: tegra13: remove CONFIG_ANDROID
Sri Krishna chowdary [Mon, 24 Aug 2015 17:11:41 +0000]
ARM: configs: tegra13: remove CONFIG_ANDROID

remove android specific configs from l4t defconfig.

Bug 200027296

Change-Id: I2645442d9858e905ecd7e2c10a946691c4129487
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/788278
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agotegra: adma: fix reg offset in channel_set_field
Viraj Karandikar [Mon, 24 Aug 2015 06:21:01 +0000]
tegra: adma: fix reg offset in channel_set_field

Add missing channel base offset in channel_set_field().
Without the base offset, value from first channel was
read, modified and invalid value was being written to
the channel of interest.

When updating bits in CTRL register, the invalid value
can result in change of direction in middle of transfer.
Specific timing of this change of direction in middle
of transfer can hang ADMA state machine.

ADMA hang can result in incomplete transaction at ABRIDGE,
blocking all further transactions to/from APE modules.
In one particular case, ADSP transactions were getting
blocked causing ADSP hang.

Bug 200123443
Bug 1631557

Change-Id: I5d3392a052f400234ad2fb09e15123094a538132
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/787974
(cherry picked from commit 7a34cae8d03cce61d763ee52f07125f3de46a7a3)
Reviewed-on: http://git-master/r/791041
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

4 years agosecurity: tlk_driver: pass device info to DMA API
Amit Sharma (SW-TEGRA) [Tue, 25 Aug 2015 08:11:09 +0000]
security: tlk_driver: pass device info to DMA API

API: circ_buf_init() allocates a shared buffer in DMA memory for TLK logging.
For this it calls dma_alloc_coherent() API with first arg: device as NULL.
However, in order to monitor the DMA'able memory in debugfs "/d/dma/usage",
we need the device name info of each client which uses the DMA memory API's
like: dma_{alloc/free}_coherent.

Inorder to get the device info do following:
1) change  startup sequence from arch_initcall to module_init
2) extern declaration of tlk_misc_device in 'ote_protocol.h' and pass
   'tlk_misc_device.this_device' info to DMA API's.

Bug 200134203

Change-Id: Idfb805f84cfd9df1d4c1762740628852c0acca9c
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/788697
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agomm: disable kswapd for ZONE_HIGHMEM in android only
Amit Sharma (SW-TEGRA) [Fri, 14 Aug 2015 09:05:59 +0000]
mm: disable kswapd for ZONE_HIGHMEM in android only

Disable the kswapd for ZONE_HIGHMEM only for android when ZRAM is disabled.

Bug 200118847

Change-Id: If9c507ebd9cf9be375935321895830c3838916ec
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/783552
(cherry picked from commit 8a488335b059af9445296c217137cf6e2d1bd37f)
Reviewed-on: http://git-master/r/791513
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

4 years agomm: avoid kswapd for normal zone when dma32 zone exist in android only
Amit Sharma (SW-TEGRA) [Wed, 19 Aug 2015 05:30:57 +0000]
mm: avoid kswapd for normal zone when dma32 zone exist in android only

Disable the kswapd for normal zone only for android when dma32 zone exists and
ZRAM is disabled.

Bug 200118847

Change-Id: I0de08b194f9271a40f091278c8da8bc59ad14494
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/785745
(cherry picked from commit fa98a595b0b5029e02338a98e29617dd20e3ddee)
Reviewed-on: http://git-master/r/791514
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoasoc: tegra-alt: fix admaif channel status check
Dara Ramesh [Thu, 20 Aug 2015 07:59:22 +0000]
asoc: tegra-alt: fix admaif channel status check

-fix incorrect channel status check for playback
and record path

Change-Id: I51ad4541e3e2b6eb68265ab1d712fb0c2082600a
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/786430
(cherry picked from commit c85528601c3f60ec94fab8b081088e4bd5365a15)
Reviewed-on: http://git-master/r/790885
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com>

4 years agoplatform: nvadsp: Support for static app instances
Ajay Nandakumar [Thu, 25 Jun 2015 17:42:55 +0000]
platform: nvadsp: Support for static app instances

Adding support multi-instance static apps for adsp as adsp build and
load format is changing from elf to bin format.

Bug 200118616

Change-Id: I589343cc6f0ccabae6b8145154e119d2c528c0e5
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/762418
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agopower: max77620: power off the device with SFT_RST
Laxman Dewangan [Thu, 27 Aug 2015 10:41:36 +0000]
power: max77620: power off the device with SFT_RST

Power off device using SFT_RST = 1 and SFT_RST_WK=0 instead of
SFT_RST=1 and PWR_OFF =1.

This will avoid PMIC malfunctioning sometime and cause system to
not power on by power key.

bug 1676570

Change-Id: I58aaed9834e2a7f6458a1107b7950f2c5fcc162a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 715a7655eb535f2bbd140eb4fc222694d62df503)
Reviewed-on: http://git-master/r/791512

4 years agomfd: max77620: disable WK_EN0 on suspend only
Laxman Dewangan [Thu, 27 Aug 2015 11:05:00 +0000]
mfd: max77620: disable WK_EN0 on suspend only

Keep enabling WK_EN0 always and disable only when system
enters into suspend. The WK_EN0 need to disable to avoid
power on sequence violation.

This will avoid the system state where it is not getting power
on even after pressing power key.

Change-Id: I13e545985cdfa7b35f78646e2f5c83bb664ee06a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit f93943056e7d3a2ea2da444bd922160a422580c2)
Reviewed-on: http://git-master/r/791511

4 years agoARM64: t210: always include non-shim DTB on shim DTB
Laxman Dewangan [Tue, 25 Aug 2015 14:56:01 +0000]
ARM64: t210: always include non-shim DTB on shim DTB

Make the SHIM-DTB such that it includes the non-shim DTB and
SHIM override.

This way it will avoid the duplications of nodes and entries.

Change-Id: I98cf233559233c6fffd3849baa9a5bc0c9b527d8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit ab43f164784a67d990314bcf54eb5791c5efac8e)
Reviewed-on: http://git-master/r/790382

4 years agoARM64: t210: consider cable state VBUS+RID-B as RID-B cable
Laxman Dewangan [Tue, 25 Aug 2015 09:44:59 +0000]
ARM64: t210: consider cable state VBUS+RID-B as RID-B cable

Consider the cable state VBUS+RID-B as the RID-B cable.

bug 200134143

Change-Id: Iec8d7f27781a13ad57d7604b26c0e4ce1a293c1a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/788772
(cherry picked from commit 657c09de572e11232030205401967dc21165c89b)
Reviewed-on: http://git-master/r/790381

4 years agoarm: dt: p1761: Add rid-b support for xlate
Mallikarjun Kasoju [Fri, 21 Aug 2015 13:48:01 +0000]
arm: dt: p1761: Add rid-b support for xlate

Add rid-b support for xlate and update the handle number
in udc dt.

Change-Id: Iaa7fad04da76640bbeeed67194e1067db28b2bb8
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
(cherry picked from commit 5bfc91e1c1cb885b348018435d2af80c27617e5c)
Reviewed-on: http://git-master/r/788554
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoextcon: cable-xlate: Increase cable detection delay
Mallikarjun Kasoju [Fri, 21 Aug 2015 13:44:35 +0000]
extcon: cable-xlate: Increase cable detection delay

Change-Id: I63595d9c00bc09bd826cc78db4dbb9770ad551b8
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
(cherry picked from commit 704b8e357a4485480fcb3bed49e71f1ac212c451)
Reviewed-on: http://git-master/r/788553
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agonet: wireless: bcmdhd: update disconnect event to upper layer
Om Prakash Singh [Wed, 19 Aug 2015 06:43:43 +0000]
net: wireless: bcmdhd: update disconnect event to upper layer

When driver receives back to back connect/disconnect events,
sometimes driver state gets stuck in DISCONNECTING state.
On next connect/disconnect cycle, disconnect is not propagated
to upper layers since driver is in DISCONNECTING state.
Originally DISCONNECTING state check was added to send DISASSOC
only if driver state is not DISCONNECTING but notification to
upper layers is also added in the condition. Moving the notification
out of the condition to resolve this issue.

Bug 200120612

Change-Id: Ibd3cc207e1f7558b9d2da7a524b4e2729e85ae8b
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/787926
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoata: ahci: Place SATA in reset before uphy init
Preetham Chandru R [Fri, 21 Aug 2015 10:23:49 +0000]
ata: ahci: Place SATA in reset before uphy init

Place SATA, SATA cold and SATA OOB in reset state
before uphy is initialized.

Bug 200107569

Change-Id: Ia9c9175012406079182e5533856886c45e358bd0
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Venkata Jagadish <vjagadish@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/759448
(cherry picked from commit 267b7c1506782b8ad524728deadfe98115a9fae2)
Reviewed-on: http://git-master/r/775506
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>