4 years agovideo: tegra: blank dc windows during dc release rel-roth-r4 daily-2014.05.06.0_rel-roth-r4-partner
Michael Frydrych [Wed, 23 Apr 2014 06:15:07 +0000]
video: tegra: blank dc windows during dc release

Window owned by a process should be blanked when the process
releases dc or any individual window it has owned. The buffers
lastly displayed on those windows will be unpinned.

bug 1490686
bug 1467689

Change-Id: I3b3614a99b9598b7d432f08c4a95d8050a4ef99e
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/400894
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Tested-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

4 years agoarch: arm: roth: Set backlight phase in rate to 32
Ankita Garg [Mon, 31 Mar 2014 23:09:48 +0000]
arch: arm: roth: Set backlight phase in rate to 32

Some panels still show a change in brightness when booting
even with smooth_k_incr value of 64. This change lowers the
value to 32 and tested on 3 shield devices.

Bug 1486835

Change-Id: Ica504769d0d4725270795aa329c94023590df34a
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/390350
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>

4 years agonet: ipv6: fix wrong ping_v6_sendmsg return value daily-2014.04.07.1_rel-roth-r4-partner
Lorenzo Colitti [Wed, 3 Jul 2013 15:12:40 +0000]
net: ipv6: fix wrong ping_v6_sendmsg return value

ping_v6_sendmsg currently returns 0 on success. It should return
the number of bytes written instead.

Bug: 9469865
Bug 1412141

Change-Id: I14aad6018f0c3fd92dad315bc3ade04c0b3982e0
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 5f0fd6105f491b8b435863e98f7e96d617e3da84)
Reviewed-on: http://git-master/r/336272
(cherry picked from commit 6d931659abae7575ee64b16e3c2f3ee8bd350dd1)
Reviewed-on: http://git-master/r/351010
(cherry picked from commit 48c98b69c93e9b16cbdf5fdab18eaab07503ff8a)
Reviewed-on: http://git-master/r/390637
Reviewed-by: Jun Su <juns@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

4 years agonet: ipv6: add missing lock in ping_v6_sendmsg
Lorenzo Colitti [Wed, 3 Jul 2013 15:52:49 +0000]
net: ipv6: add missing lock in ping_v6_sendmsg

Bug: 9469865
Bug 1412141
Change-Id: I5e9db559d22e35d27fa1df948b70c70ed8b42115
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 3a018d2e8fc2910e5fb2077cde81cad659e2c7f9)
Reviewed-on: http://git-master/r/336271
(cherry picked from commit 71e8c301dce8ee85ee26eedb808b939084f14b45)
Reviewed-on: http://git-master/r/351008
(cherry picked from commit cab02ce05d5e1abaff049a02ee1e3630d481adeb)
Reviewed-on: http://git-master/r/390636
Reviewed-by: Jun Su <juns@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

4 years agoping: always initialize ->sin6_scope_id and ->sin6_flowinfo
Cong Wang [Sun, 2 Jun 2013 22:43:52 +0000]
ping: always initialize ->sin6_scope_id and ->sin6_flowinfo

[net-next commit c26d6b46da3ee86fa8a864347331e5513ca84c2b]

If we don't need scope id, we should initialize it to zero.
Same for ->sin6_flowinfo.

Bug 1412141
Change-Id: I74764edf3d0567f5ae094b2e83484cdfe05f6098
Cc: Lorenzo Colitti <lorenzo@google.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Acked-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 14e41a18688ec8d52ea3163f7898455b52365854)
Reviewed-on: http://git-master/r/336270
(cherry picked from commit 68f4261657194f51c9d954f259825c76a72a00e2)
Reviewed-on: http://git-master/r/351006
(cherry picked from commit 70ed1a2d8a3ce85a4d6b9a5b32d6daf7781cc3c0)
Reviewed-on: http://git-master/r/390635
Reviewed-by: Jun Su <juns@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

4 years agonet: ipv6: Add IPv6 support to the ping socket.
Lorenzo Colitti [Wed, 16 Jan 2013 22:09:49 +0000]
net: ipv6: Add IPv6 support to the ping socket.

[backport of net-next 6d0bfe22611602f36617bc7aa2ffa1bbb2f54c67]

This adds the ability to send ICMPv6 echo requests without a
raw socket. The equivalent ability for ICMPv4 was added in
2011.

Instead of having separate code paths for IPv4 and IPv6, make
most of the code in net/ipv4/ping.c dual-stack and only add a
few IPv6-specific bits (like the protocol definition) to a new
net/ipv6/ping.c. Hopefully this will reduce divergence and/or
duplication of bugs in the future.

Caveats:

- Setting options via ancillary data (e.g., using IPV6_PKTINFO
  to specify the outgoing interface) is not yet supported.
- There are no separate security settings for IPv4 and IPv6;
  everything is controlled by /proc/net/ipv4/ping_group_range.
- The proc interface does not yet display IPv6 ping sockets
  properly.

Tested with a patched copy of ping6 and using raw socket calls.
Compiles and works with all of CONFIG_IPV6={n,m,y}.

Bug 1412141

Change-Id: I0081b4654dd54b12c8f233e00e18943582aa2142
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[lorenzo@google.com: backported to 3.4]
(cherry picked from commit 1f0675844e3b63a765e5bd32bc5af051ccd951c0)
Reviewed-on: http://git-master/r/336269
(cherry picked from commit 36c1b848f9c0cbcefa6fc731f84ae6ddc3536be6)
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Reviewed-on: http://git-master/r/350988
(cherry picked from commit b6c001896edb42c15d7fa86fda14181c096aa1d0)
Reviewed-on: http://git-master/r/390634
Reviewed-by: Jun Su <juns@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

4 years agoipv6: introdcue __ipv6_addr_needs_scope_id and ipv6_iface_scope_id helper functions
Hannes Frederic Sowa [Fri, 8 Mar 2013 02:07:16 +0000]
ipv6: introdcue __ipv6_addr_needs_scope_id and ipv6_iface_scope_id helper functions

[net-next commit b7ef213ef65256168df83ddfbb8131ed9adc10f9]

__ipv6_addr_needs_scope_id checks if an ipv6 address needs to supply
a 'sin6_scope_id != 0'. 'sin6_scope_id != 0' was enforced in case
of link-local addresses. To support interface-local multicast these
checks had to be enhanced and are now consolidated into these new helper
functions.

v2:
a) migrated to struct ipv6_addr_props

v3:
a) reverted changes for ipv6_addr_props
b) test for address type instead of comparing scope

v4:
a) unchanged

Bug 1412141

Change-Id: I1788f1f2d3a6bd2b9e6a6afe74992d6d4a1385eb
Suggested-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 2c75b248e5243d0af7cc97522148db7415a70f8a)
Reviewed-on: http://git-master/r/336266
(cherry picked from commit dfd23e75d7f69863ec3903ea1300185a1474b56a)
Reviewed-on: http://git-master/r/350982
(cherry picked from commit edc5676cb9a9136f88db4685feb11bb87ed359cf)
Reviewed-on: http://git-master/r/390633
Reviewed-by: Jun Su <juns@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

4 years agoarch: arm: roth: Reduce backlight phase in rate
Ankita Garg [Fri, 28 Mar 2014 01:55:50 +0000]
arch: arm: roth: Reduce backlight phase in rate

Bug 1486835

Change-Id: I2a42f272ff40d317083d8c9a1f6749ca91b9cbe4
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/388017
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Michael I Gold <gold@nvidia.com>

4 years agotegra: dc: move hdmi_detect_config out of dc lock
Anshuman Nath Kar [Thu, 20 Mar 2014 20:15:27 +0000]
tegra: dc: move hdmi_detect_config out of dc lock

Bug 1482982

Change-Id: I6d1e2881f10366c5fdbe08c5b8d0da38d68a41f4
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/385318
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Manish Tuteja <mtuteja@nvidia.com>

4 years agommc: tegra: Use SDR104 UHS mode for SDR50 mode
Pavan Kunapuli [Mon, 24 Mar 2014 06:36:57 +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 1486268

Change-Id: Iedeabbfa8d39bfcb1e111e65f09f5ca6b36bdb9b
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/385853
Tested-by: Ankita Garg <ankitag@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agommc: tegra: Abort tuning if device is removed
Pavan Kunapuli [Mon, 24 Mar 2014 07:25:31 +0000]
mmc: tegra: Abort tuning if device is removed

For removable devices, always check if the device is present before
executing tuning. If the device is removed, abort tuning and return
no medium as error status.

Bug 1486268

Change-Id: Idae1590eaa956bfb1244a5b10cc0ef770f3047ef
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/385852
Tested-by: Ankita Garg <ankitag@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoARM: tegra: boot with performance freq governor
Sang-Hun Lee [Sat, 15 Mar 2014 01:07:35 +0000]
ARM: tegra: boot with performance freq governor

 - Set the CPU frequency governor to performance, once
   DVFS and clock initialization is done
 - Leave the initial CPU frequency governor to userspace,
   as initially CL-DVFS is not ready, thus the system is
   already at the highest frequency

Bug 1458081

Change-Id: I29f3a023513e87d3c7411bda6daaf4000517fc72
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/382295
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

4 years agovideo: tegra: avoid null deref on nvdps read
Jon Mayo [Thu, 17 Jan 2013 17:21:41 +0000]
video: tegra: avoid null deref on nvdps read

When reading nvdps sysfs file, check mode to avoid a null dereference.

Bug 1454609

Change-Id: I27c125c887e7653d953cf15b4d96d889ef36652f
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/192099
(cherry picked from commit fc2ebcb8459543814b5a0180e5fc2f222b3dc93b)
Reviewed-on: http://git-master/r/381409
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agonet: wireless: bcmdhd: Modify 'disable_proptx' flag when proptx is set
Raghu [Thu, 13 Feb 2014 09:37:56 +0000]
net: wireless: bcmdhd: Modify 'disable_proptx' flag when proptx is set

When Proptx(IOV_PROPTXSTATUS_ENABLE) is set then 'disable_proptx'
flag should be set accordingly. This change is part of latest
driver 1.88.64 but missing in earlier versions.This change majorly
effects P2P certification test case 6.1.12 test case.

Bug 1430612

Change-Id: I9336bc0f368af2d9509c5c8d567e76253cf1bcac
Reviewed-on: http://git-master/r/367011
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/377126
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agobcmdhd: DELBA support for game streaming (GRID, PC2Shield roaming)
Kyeong Kim [Fri, 21 Feb 2014 21:01:52 +0000]
bcmdhd: DELBA support for game streaming (GRID, PC2Shield roaming)

Reassoc sometimes causes connection problem.
Use DELBA instead of reassoc to disable aggregation

Bug 1459545

Change-Id: I4edef1e2a6953416c8226f14a0c699f2a48de9f5
Signed-off-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-on: http://git-master/r/373060
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 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
Bug 1454609

Change-Id: Id3654deb1012d0b0826dbf2a11287a000234fd27
Reviewed-on: http://git-master/r/349890
Signed-off-by: Jordan Nien <jnien@nvidia.com>
(cherry picked from commit ea0a18696d24213fe4f8db1546b8d6ea1134f482)
Reviewed-on: http://git-master/r/377513
GVS: Gerrit_Virtual_Submit
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoRevert "net: wireless: bcmdhd: update driver to version 1.88.58"
Narayan Reddy [Thu, 27 Feb 2014 09:54:49 +0000]
Revert "net: wireless: bcmdhd: update driver to version 1.88.58"

This reverts commit 1282e9ee337d735b3c66425230d48ebb8c6573a5.
Wi-Fi batching and TDLS driver drop fails P2P-Wi-Fi concurrent
connection. Reverting the driver until we get a proper fix from
BRCM team.

Bug 1456379
Bug 1462395

Change-Id: I96c9b17ac7558ded2baa8b1342f4962cef1471a6
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/375425
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agousb: gadget: tegra: Add callback to boost_enable
Antti P Miettinen [Mon, 30 Sep 2013 10:14:58 +0000]
usb: gadget: tegra: Add callback to boost_enable

Cancel PM QoS request upon enabled to disabled
transition.

Bug 1455140

Change-Id: Iaf28d2d0daca312996e2cb1a1280769d814fd066
Reviewed-on: http://git-master/r/280232
(cherry picked from commit 9a25a04c42ed0feeb1aff1dcf696b54e122a8c65)
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/377857
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yunfan Zhang <yunfanz@nvidia.com>
Tested-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

4 years agousb: gadget: Tegra: Disable parameters for PM QoS
Antti P Miettinen [Tue, 21 Aug 2012 07:56:38 +0000]
usb: gadget: Tegra: Disable parameters for PM QoS

For testing purposes it is useful to be able to disable
CPU frequency boost.

Bug 1359445
Bug 1455140

Change-Id: Iab4363b23372055819adaf66265762fb9d1a0a3a
Reviewed-on: http://git-master/r/273043
(cherry picked from commit b929aee920208da005e4aefe51dd4fe9b5b3978a)
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/377671
Reviewed-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

4 years agomisc: tegra-profiler: unwinding: add auto mode
Igor Nabirushkin [Mon, 3 Mar 2014 07:52:22 +0000]
misc: tegra-profiler: unwinding: add auto mode

Tegra Profiler: automatic selection of unwinding
method (frame pointers or exception-handling tables)

Bug 1465331

Change-Id: I8ae85e78b32198c685aab44102f919f33a2bad55
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/377155
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agomisc: tegra_profiler: add unwinding
Igor Nabirushkin [Thu, 20 Feb 2014 16:48:48 +0000]
misc: tegra_profiler: add unwinding

Tegra Profiler: unwinding based on exception-handling tables

Bug 1465331

Change-Id: I9e8bb2eb342c5dadf82af05bb87040c0925cca1b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/377109
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Andrey Trachenko <atrachenko@nvidia.com>
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 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

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>
(cherry picked from commit 40c366017f537354c64ea8b77d57ca81ecbd6b1d)

Bug 1454622

Change-Id: I2b490a6955480c48586679de66bfba6c213b0247
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/367602

4 years agoARM: 7527/1: uaccess: explicitly check __user pointer when !CPU_USE_DOMAINS
Russell King [Fri, 7 Sep 2012 17:22:28 +0000]
ARM: 7527/1: uaccess: explicitly check __user pointer when !CPU_USE_DOMAINS

commit 8404663f81d212918ff85f493649a7991209fa04 upstream.

The {get,put}_user macros don't perform range checking on the provided
__user address when !CPU_HAS_DOMAINS.

This patch reworks the out-of-line assembly accessors to check the user
address against a specified limit, returning -EFAULT if is is out of
range.

[will: changed get_user register allocation to match put_user]
[rmk: fixed building on older ARM architectures]

Reported-by: Catalin Marinas <catalin.marinas@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>
(cherry picked from commit 8cc876def310b034ab0e0775a14d1a49472d7f5f)

Bug 1454622

Change-Id: I5802bb9426c06920e9849af560d7ea3862b6c852
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/367577

4 years agousb: gadget: otg:Modify Y-cable charging cur limit
Rohith Seelaboyina [Fri, 28 Feb 2014 04:27:43 +0000]
usb: gadget: otg:Modify Y-cable charging cur limit

Modify the OTG Y-cable charging current limit
from 500mA to 1200mA.

Bug 1375608

Change-Id: I7e6dc93e3f73dd7cc5e8ed9d9c6c8055cf7df78d
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/376435
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

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
(cherry picked from commit dbd2e0e3392861eeffff087b577cda0fa501a36b)
Reviewed-on: http://git-master/r/368218
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@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
(cherry picked from commit bbbdb78281524c75706d6b4162182a514355a1a0)
Reviewed-on: http://git-master/r/368217
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@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
(cherry picked from commit 5cefbee263b6616ef748cbd848bb14752da36c52)
Reviewed-on: http://git-master/r/368216
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@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
(cherry picked from commit 6c4eaeece04690ea442d3c4b6cd74d6fa9ae121e)
Reviewed-on: http://git-master/r/368214
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@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
(cherry picked from commit 868545a99d8385a850fc87a4ad97dc8fb44a6e76)
Reviewed-on: http://git-master/r/368212
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@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
(cherry picked from commit f926e880ddaf6197e988b024ad9ef962748efc5e)
Reviewed-on: http://git-master/r/368211
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@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
(cherry picked from commit d0510cca51cc2dc764c5838736bf1841bedfb558)
Reviewed-on: http://git-master/r/368206
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@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
(cherry picked from commit 48c34477a883e3b7a7872ab9f3de725f9542060a)
Reviewed-on: http://git-master/r/368205
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agonet: wireless: bcmdhd: Fix Division by zero
Mohan T [Fri, 6 Dec 2013 09:24:27 +0000]
net: wireless: bcmdhd: Fix Division by zero

Check divisor values is grater than zero
in qmon_getpersent to avoid division
by zero kernel assertion.

Bug 1417901

Change-Id: I8f3255c1b0f8c975da984389966c9f888187c5c9
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/339075
(cherry picked from commit be5df31200936cb852bdbc19606b79226f911614)
Reviewed-on: http://git-master/r/366110
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agonet: wireless: bcmdhd: reduce wakelock timeout to 500ms
Om Prakash Singh [Wed, 15 Jan 2014 09:15:13 +0000]
net: wireless: bcmdhd: reduce wakelock timeout to 500ms

when a network ping through wifi happens in LP0, it takes
2.4s to handle the ping and go back to lp0. By reducing the
timeout we could bring the wakeup from LP0 duration to less
than one second which decreases the power consumption.

Bug 1392718

Change-Id: Ia369a73fb4e834f46003e318fe2c413e57200b61
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/343714
(cherry picked from commit d8f59347389086a64e0b1dec0932e6cc36d702e2)
Reviewed-on: http://git-master/r/365612
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agonet: wireless: bcmdhd: update driver to version 1.88.58
Syed Asifful Dayyan Rafiuddeen [Wed, 4 Dec 2013 04:28:11 +0000]
net: wireless: bcmdhd: update driver to version 1.88.58

Change list:
-Enable TDLS for Nvidia.
-RB:21080 JIRA:SWWLAN-41226 CSP:671392 Mobile Hotspot throughput performance is low
-RB:20909 JIRA:SWWLAN-41211 Preventing a memory leakage
-RB:20818 [Android-Kitkat] Change the logic which controls TDLS connection in Kitkat MR1 framework
-RB:20877 [Android-kitkat] enable ipv6 router advertisement packet filter mode in suspend
-RB:20654 CSP:730963 Adding AP isoloation code
-RB:20808 [Android-Kitkat] change DTIM skip policy in suspend mode of device to solve link lost issue due to beacon lost
-RB:17773 [Android-kitkat] Fixed a bug for negative padding
-RB:20628 fix about handling BSS peer information
-Fix wlu build error by r432432.
-RB:19436 CSP:724180 JIRA:SWDHD-39 Roaming trigger value is always initialized to the default when associated to new AP.
-RB:19729 [Android-Kitkat] Fixed the corner case of PNO issue
-RB:13157 JIRA:SWDHD-39 Fix windows dongle driver hang from r432053
-JIRA:SWDHD-47 RB:19389  Ignore Power Save mode for AIBSS
-RB:19106 JIRA:SWWLAN-39738 Fix compile err for r432982
-RB:19246 Fixing bugs about handling TX fail event Fixing bugs about handling TX fail event
-RB:19106 JIRA:SWWLAN-39738 Refactoring sdiofifo overrun/underrun tuning code
-RB:19163 [Android-Kitkat] Fixed country code setting issue on Nexus-5
-RB:19162 [Android-Kitkat] Fixed corner case of P2P issue in Google Nexus-5

Bug 1397433

Change-Id: I4675f91b512bcd8bd49a384b28a864c106fe372f
Signed-off-by: Syed Asifful Dayyan Rafiuddeen <syedd@broadcom.com>
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/364087
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agommc: tegra: Stop rescan task initiation on detect stop notify
Mohan T [Wed, 18 Dec 2013 06:28:45 +0000]
mmc: tegra: Stop rescan task initiation 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

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/364068
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agonet: wireless: bcmdhd: Fix card detection race conditions
Mohan T [Wed, 18 Dec 2013 06:31:22 +0000]
net: wireless: bcmdhd: Fix card detection race conditions

On non built-in platform device cases mmc_rescan will
initiated by mmc stack and android wifi device. So stop
the card detection on mmc device probe, Since card
detection is completed. So that we can avoid mmc_rescan
initiation after power save done in sdio client driver probe.

Bug 1405624
Bug 1419961

Change-Id: Iad0059ba5a5a9dbc2b146f87c4a261b8a97a6323
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/346874
(cherry picked from commit 092bf21ed1e61f00588d41f66ce5f657fc3e3be5)
Reviewed-on: http://git-master/r/364067
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agodrivers: net: wireless: bcmdhd: disable block ack for UP7
Narayan Reddy [Wed, 5 Feb 2014 23:54:13 +0000]
drivers: net: wireless: bcmdhd: disable block ack for UP7

Disble BA for TID7 and set BA window size to 32 for
better PC gaming experience.

bug 1423506

Change-Id: Ibebd1aa5203b28a3cdfe199567a3d9525b4da19e
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/364062
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agonet: wireless: bcmdhd: add flag to enable MCC
Om Prakash Singh [Wed, 20 Nov 2013 15:58:50 +0000]
net: wireless: bcmdhd: add flag to enable MCC

With Android-KK upgrade MCC(Multi Channel Concurrency) is
by default enabled from supplicant, which impact on Miracast
performance so we are disabling it from driver

Bug 1410893

Change-Id: I8746cacdcd2e7e12205f90b0ec47cfb87aaf79aa
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/333471
(cherry picked from commit 56b14ebe7ec24b972b32ea038417b8643d0dc6f4)
Reviewed-on: http://git-master/r/364045
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agousb: otg: tegra: add delay for y-cable detection
Rakesh Bodla [Thu, 23 Jan 2014 11:05:08 +0000]
usb: otg: tegra: add delay for y-cable detection

Sometimes id status is not reflected immediately after
connect y-cable connection. Adding dealy for proper
detection.

Bug 1375608
Bug 1439649

Change-Id: Ice38bcbc19ba6242820ff38a676b9b7e6fdeef72
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/359338
(cherry picked from commit b3eba21a230eef069b7fb7c789ac1fa5cfd417d4)
Reviewed-on: http://git-master/r/360202
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: configs: tegra11: enable hidraw
Toby Butzon [Thu, 23 Jan 2014 06:15:41 +0000]
arm: configs: tegra11: enable hidraw

Bug 1425532.

Reviewed-on: http://git-master/r/352340
Signed-off-by: Toby Butzon <tbutzon@nvidia.com>
Change-Id: Ib656051a221a9879c4df8a766b458065d81f9b07
Reviewed-on: http://git-master/r/359122
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/359505
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agobcmdhd: key installation timing fix
Kyeong Kim [Wed, 11 Dec 2013 19:03:52 +0000]
bcmdhd: key installation timing fix

In case 43241 is a GO and it RECEIVES 4/4
key msg, so dhd_wait_pend8021x() is not
required for GO mode, hence we have skipped
this for AP/GO mode.

Bug 1392645

Change-Id: Icb1f86c5bfcb2afbd7e26fca9f75d73598d4ca07
Signed-off-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-on: http://git-master/r/344360
Reviewed-on: http://git-master/r/358430
(cherry picked from commit 0acf883349f609ca82f49a1b537d4e9f476f6e64)
Reviewed-on: http://git-master/r/358908
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agostaging: ozwpan: Add udev event to userspace.
Todd Poynter [Tue, 14 Jan 2014 19:14:09 +0000]
staging: ozwpan: Add udev event to userspace.

Update from ATMEL to send an event to userspace to
indicate that a device has entered or resumed from
sleep.

Bug 1394137.
Bug 1421799.

Change-Id: I25b02bd8ae8a01a52d28b8254fbc43401c0f9463
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/357851
(cherry picked from commit 94dac510078f3cfe817fc5132114b8a64dd7f965)
Reviewed-on: http://git-master/r/358907
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Tested-by: Jean Huang <jeanh@nvidia.com>

5 years agoenable CONFIG_WIFI_CONTROL_FUNC to power up wifi chip
Narayan Reddy [Tue, 24 Dec 2013 10:28:03 +0000]
enable CONFIG_WIFI_CONTROL_FUNC to power up wifi chip

Bug 1422733

Change-Id: I0cc229259c3cc8652a47fd794c11019829290c50
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/349386
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Tested-by: Jean Huang <jeanh@nvidia.com>

5 years agopulled missing patches from 1.28.28.4
Narayan Reddy [Fri, 20 Dec 2013 11:08:03 +0000]
pulled missing patches from 1.28.28.4

Bug 1422733

Change-Id: Ia23f3de0d8022a5e4f02af7145d35aa57aa69e36
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/347998
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Tested-by: Jean Huang <jeanh@nvidia.com>

5 years agonet: wireless: bcmdhd: update driver to version 1.88.55
Neeraj Garg [Mon, 25 Nov 2013 09:31:03 +0000]
net: wireless: bcmdhd: update driver to version 1.88.55

Bug 1404820
Bug 1402287

Change-Id: I3e54be5870cf4ad1b1d75742e47dfb25485faca9
Signed-off-by: Neeraj Garg <neerajkg@broadcom.com>
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/329514
(cherry picked from commit 36b4a62ebd491b0305c0c3a651217983c07f2df2)
Reviewed-on: http://git-master/r/335395
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Reviewed-on: http://git-master/r/347356
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Tested-by: Jean Huang <jeanh@nvidia.com>

5 years agousb: otg: tegra: add support for OTG Y-cable
Rakesh Bodla [Tue, 10 Dec 2013 06:55:07 +0000]
usb: otg: tegra: add support for OTG Y-cable

Below changes are made to support Y-cable
(i) Bring vbus control into OTG driver if port is OTG.
(ii) Detect Y-cable.
(iii) Add vbus_bat_chg charging regulator.

Bug 1375608

Change-Id: I41bab08ebce15d3f356c624de0b62ff8e4cc4a28
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/336278
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: add otg driver entry for usb_vbus and vbus_bat_chg
Rakesh Bodla [Thu, 21 Nov 2013 12:42:14 +0000]
ARM: tegra: add otg driver entry for usb_vbus and vbus_bat_chg

Add the otg driver under device list for usb_vbus and
vbus_bat_chg regulators. If USB port has OTG support,
allow the OTG driver to control the vbus.

Bug 1375608

Change-Id: I86253d145a6ff966e7a4e50deee695efe8545b88
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/334358
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agotegra: dc: enable CMU for secondary display.
Markus Hiienkari [Fri, 19 Oct 2012 14:00:20 +0000]
tegra: dc: enable CMU for secondary display.

Enable CMU for secondary display as default. If
DC type is HDMI, use sRGB-to-sRGB (limited range)
conversion configuration.

Bug 1162082
Bug 1162069
Bug 1407045

Change-Id: Ibb75ae0522fcf3aca6cffd3cfd747dfe5c6038bd
Signed-off-by: Markus Hiienkari <mhiienkari@nvidia.com>
Reviewed-on: http://git-master/r/337981
Reviewed-by: Thomas J. Meier <tmeier@nvidia.com>
Reviewed-by: Xuezhou Ma <xuezhoum@nvidia.com>
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Tested-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>

5 years agotegra: dc: fix HDMI CMU enable.
Markus Hiienkari [Mon, 8 Apr 2013 14:47:40 +0000]
tegra: dc: fix HDMI CMU enable.

Initialize HDMI CMU with same parameters as in
DC init when enabling it subsequently.

Bug 1162082
Bug 1407045

Change-Id: I25a7cfb75a43c49487a2a3ec7569aa89727dd4ab
Signed-off-by: Markus Hiienkari <mhiienkari@nvidia.com>
Reviewed-on: http://git-master/r/337980
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas J. Meier <tmeier@nvidia.com>
Reviewed-by: Xuezhou Ma <xuezhoum@nvidia.com>
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Tested-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>

5 years agostaging: ozwpan: Fix an issue with hub_status.
Todd Poynter [Tue, 10 Dec 2013 17:26:36 +0000]
staging: ozwpan: Fix an issue with hub_status.

Update ozwpan to the latest drop from ATMEL to
resolve an issue with hub_status() returning the
wrong status.  This resulted in the USB stack
trying to read the port status continously.

Bug 1415705.

Change-Id: I433cce1add10b82fbb08b0e3804f02607b809bea
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/343739
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agousb: otg: otg-wakelock: Increase wake-lock time
Rohith Seelaboyina [Tue, 10 Dec 2013 10:04:34 +0000]
usb: otg: otg-wakelock: Increase wake-lock time

Increase the temporary wake-lock hold time
as this is needed in a case when Device needs to
be enumerated properly.

Bug 1415958

Change-Id: Ic6f842273c0b492c86087aa5895ebf7781b44ddb
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/343633
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: host: tegra: Hold temporary lock on resume
Rohith Seelaboyina [Tue, 10 Dec 2013 09:58:53 +0000]
usb: host: tegra: Hold temporary lock on resume

On Shield we are disabling the vbus on suspend
and enabling it back on resume. After resume device
gets disconnected and re-enumerated.
Acquire a temporary wakelock on resume to enumerate
the device properly before it goes to LP0.

Bug 1415958

Change-Id: If67e9d8ca96b94161f4757b2f5a031ca82d8cdc7
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/343632
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra11x: wakeup: Fix sdmmc3 wakeup source
Pradeep Goudagunta [Tue, 10 Dec 2013 12:08:16 +0000]
ARM: tegra11x: wakeup: Fix sdmmc3 wakeup source

-Use gpio_pv2 as wakeup source for sdmmc3 card detect
and disable sdmmc3 controller CD wakeup source.
-Enabling both will conflict and results in failure
of detection of SD card in device suspend state.

Bug 1407948

Change-Id: Icdb98854ab1dc293924a33ed33e170a230979de6
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/343668
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agovideo: tegra: host: disable gr2d power gate. daily-2013.12.03.0_rel-roth-r3-partner daily-2013.12.26.0_rel-roth-r3-partner
Ankita Garg [Tue, 5 Nov 2013 22:14:25 +0000]
video: tegra: host: disable gr2d power gate.

Bug 1300659

Change-Id: I7e18c696ad2616b1696312c1244f52d44b250d85
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/326830
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoi2c: tegra: Add debug prints for i2c timed out case
Chaitanya Bandi [Mon, 26 Aug 2013 11:22:28 +0000]
i2c: tegra: Add debug prints for i2c timed out case

Added debug prints for i2c timed out case to
help debug.

Change-Id: Ib0696b8237b90cd511ac224a476dede8fae60ceb
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/266050
(cherry picked from commit 3758f5013e3b9049bb0c6c8e58a60f017a825b28)
Reviewed-on: http://git-master/r/330873
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>

5 years agoALSA: usbaudio: Expose supported channel counts
Rahul Mittal [Tue, 3 Sep 2013 09:20:35 +0000]
ALSA: usbaudio: Expose supported channel counts

Add alsa controls to expose playback and capture
channels supported by the connected device

Bug 1360445

Change-Id: I812c05a1b318a756f2d1f82e63c10e48cea01db3
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/269923
(cherry picked from commit c3067e961f1e4320f006b3e9121df0c2e9142d39)
Reviewed-on: http://git-master/r/330696
Tested-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoALSA: usbaudio: Expose usb device supported sample rates
Rahul Mittal [Mon, 3 Jun 2013 15:29:03 +0000]
ALSA: usbaudio: Expose usb device supported sample rates

Add alsa control for exposing sample rate range
supported by the usb audio device

Bug 1274264
Bug 1240790

Change-Id: I6b0c43416ad61009cd287f948210aca29b62c3fc
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/235030
(cherry picked from commit 3ee6a261731ca9d07e54c47923d338ca193dfed4)
Reviewed-on: http://git-master/r/236563
(cherry picked from commit 5870ae5a1b25ce0e73164a762d27caaa46e92cbe)
Reviewed-on: http://git-master/r/330695
Tested-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agovideo: tegra: host: remove epp clock from isp
Daehyoung Ko [Wed, 24 Jul 2013 23:34:46 +0000]
video: tegra: host: remove epp clock from isp

to remove epp from the isp channel's clock list
in order to get rid of conflict for epp clock
between 2d and isp

bug 1331777
bug 1322046

Change-Id: I5625aae7b693b00668d97839c0ae5cf21bf8f460
Signed-off-by: Daehyoung Ko <dko@nvidia.com>
(cherry picked from commit 8e0ad7134904c27c27fa2dd68f7aaedb8797a94f)
Reviewed-on: http://git-master/r/323822
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@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/327454
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agomisc: tegra-profiler: send mapped memory regions
Igor Nabirushkin [Thu, 24 Oct 2013 13:23:11 +0000]
misc: tegra-profiler: send mapped memory regions

Tegra Profiler: send information about mapped
memory regions (on demand).

Bug 1394970

Change-Id: Idf9a3c5d2d9fac0fd622f99bd226632c810a8ab6
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309778
(cherry picked from commit 1a4a86d3faf8cd9a38cf80ed06f6a760264638be)
Reviewed-on: http://git-master/r/326028
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: backtraces from the kernel context
Igor Nabirushkin [Thu, 24 Oct 2013 11:12:53 +0000]
misc: tegra-profiler: backtraces from the kernel context

Tegra Profiler: collect backtraces from the kernel context

Bug 1394804

Change-Id: I1db7435c9e1fc753dd8c02252076287572f5f5af
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309768
(cherry picked from commit b5c40f131509f89609283a645f6e9d0b4abed365)
Reviewed-on: http://git-master/r/326027
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: backtracing for Thumb code
Igor Nabirushkin [Sun, 13 Oct 2013 17:45:06 +0000]
misc: tegra-profiler: backtracing for Thumb code

Tegra Profiler: add backtracing for Thumb code

Bug 1387645

Change-Id: I43b6be4e14aa88d23a974a0cf7fa8d6bfbbb109f
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309641
(cherry picked from commit 304e8f9f52bb2defd33640741bc639dd4375f1b0)
Reviewed-on: http://git-master/r/326026
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: add /proc/quadd/status
Igor Nabirushkin [Tue, 24 Sep 2013 14:22:09 +0000]
misc: tegra-profiler: add /proc/quadd/status

Add /proc/quadd/status
It allows users to see current status of the Tegra Profiler.

Bug 1374376

Change-Id: I70d548c47bc80f6a12e3637f0af38fe74403de2d
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309638
(cherry picked from commit 895113159ac3fa814b3261446faa64d480c4f309)
Reviewed-on: http://git-master/r/326021
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: add thumb flag into samples
Igor Nabirushkin [Tue, 24 Sep 2013 13:34:09 +0000]
misc: tegra-profiler: add thumb flag into samples

Tegra Profiler misc driver: thumb mode flag was
added into samples

Bug 1374335

Change-Id: If1a6b7e57071f6c9d645bc790e24cd1e3e405b6f
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309637
(cherry picked from commit fb840196820effd627abe7779907db1e7db60101)
Reviewed-on: http://git-master/r/326020
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: add poll support
Igor Nabirushkin [Tue, 24 Sep 2013 13:11:06 +0000]
misc: tegra-profiler: add poll support

Tegra Profiler misc driver: add poll support

Bug 1374312

Change-Id: Id0844b3b329f348763f22b831fc73ac64f04fd9b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309634
(cherry picked from commit d8e347f4e5636fd6face6fae3db572d64d6727f0)
Reviewed-on: http://git-master/r/325990
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: send buffer fill count
Igor Nabirushkin [Tue, 24 Sep 2013 11:46:16 +0000]
misc: tegra-profiler: send buffer fill count

Tegra Profiler misc driver: transmit the maximum buffer
occupancy to the user space.

Bug 1374266

Change-Id: Id078083a5493552c1f3bb697a1d3e4a5504e3f82
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/309633
(cherry picked from commit 757f16d5b83328d984feb3f37ebe6790fb42d15d)
Reviewed-on: http://git-master/r/325975
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: Enable the ozwpan (USB HCD) driver.
Todd Poynter [Thu, 31 Oct 2013 18:07:37 +0000]
arm: tegra: Enable the ozwpan (USB HCD) driver.

Enable the ozwpan USB HCD driver via CONFIG_USB_WPAN_HCD.

Bug 1394137.

Change-Id: If217707ea2f2cd215c93e7e42625abe4dc4eed4c
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/310142
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Toby Butzon <tbutzon@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agostaging: ozwpan: Update to latest drop from ATMEL.
Todd Poynter [Mon, 28 Oct 2013 18:40:01 +0000]
staging: ozwpan: Update to latest drop from ATMEL.

Update the ozwpan driver to the latest drop from ATMEL.

Bug 1394137.

Change-Id: I9069c974cb665a8be68d43536f57c3b717b570a6
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/304456
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Toby Butzon <tbutzon@nvidia.com>

5 years agoRevert "Revert "mmc: Set suspend/resume bus operations if CONFIG_PM_RUNTIME is used""
Pavan Kunapuli [Wed, 30 Oct 2013 13:59:35 +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 1390987

Change-Id: I842b1e042982f8ac0547936800bbc996643c7d34
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/309911
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoarm: tegra: roth: Add pwm gpio
Anshul Jain [Tue, 22 Oct 2013 19:02:25 +0000]
arm: tegra: roth: Add pwm gpio

Add pwm gpio in fan data, so it can be accessed by pwm_fan driver.

Bug 1388303

Change-Id: I407166aac44473ec8ceaf4f8acee18b02db18d7f
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/302443
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agothermal: pwm_fan: toggle gpio in suspend/resume
Anshul Jain [Tue, 22 Oct 2013 18:59:23 +0000]
thermal: pwm_fan: toggle gpio in suspend/resume

On suspend, this change sets the gpio high.

On suspend:
free pwm
request gpio
set gpio high
On resume:
free gpio
request pwm
set pwm

Bug 1388303

Change-Id: I6905e4217dd170801d84ec98713067e5c2a53abf
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/302442
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agomisc: nct1008: Temperature bound check
Anshul Jain [Thu, 17 Oct 2013 19:53:42 +0000]
misc: nct1008: Temperature bound check

This change does bound checking of temperature reads from NCT
device, this is done to return error when NCT is not ready and
TF tries to read temperture.

Bug 1388303

Change-Id: I642ecb46feb39469c0b3b33ea513604c7ff4a893
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/300670
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agothermal: pwm-fan: lock during sysfs writes
Anshul Jain [Wed, 16 Oct 2013 03:18:57 +0000]
thermal: pwm-fan: lock during sysfs writes

This change locks the whole sysfs function to ensure
atomicity. Also, more logs are added for better visibility
during suspend and resume.

Bug 1388303

Change-Id: Iadf8bdc4309575ec42a1946ecfb28eb7654440e3
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/299756
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agomisc: therm_fan_est: Fix for suspend/resume race
Anshul Jain [Wed, 16 Oct 2013 03:15:36 +0000]
misc: therm_fan_est: Fix for suspend/resume race

Now trip index will be nullified after cancelling the work.

Bug 1388303

Change-Id: Icda3e232e98b4f504c1bebcd340b49749d1ebbc3
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/299755
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agomisc: nct1008: Suspend Lock
Anshul Jain [Wed, 16 Oct 2013 05:01:40 +0000]
misc: nct1008: Suspend Lock

Suspend lock is required to serialize suspend/resume,
get_temp from thermal framework and work queue.

Bug 1388303

Change-Id: Ib3e8873e3d2560aacd74ba02c726ec9fdc73e660
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/299754
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>

5 years agomisc: bluedroid_pm: check BT TX and RX status before wake_lock release
Nagarjuna Kristam [Thu, 27 Dec 2012 06:28:04 +0000]
misc: bluedroid_pm: check BT TX and RX status before wake_lock release

bluedroid stack, updates only TX busy status through proc interface.

When BT HID/PAN-U connection are active, high probability of data is RX only
and no activity on Tx path. So, dis-allow suspend when either of BT TX or
BT RX is active.

Bug 1381466

Change-Id: Ib174b7d95d173c34e41ce393f93fda5fa204f217
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/299894
GVS: Gerrit_Virtual_Submit
Tested-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>

5 years agoinput: touch: radyium: avoid deadlock
Xiaohui Tao [Tue, 15 Oct 2013 00:16:09 +0000]
input: touch: radyium: avoid deadlock

Fix potential deadlock in driver

Raydium drop does not fix the problem. We need to have this
temporary fix to solve the problem.

Bug 1384590

Change-Id: Ifcb56ba5db34b42af0b4d441659d7a5fdd869943
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/289969
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>

5 years agoRevert "video: tegra: dc: check ext enabled before flip"
Ankita Garg [Tue, 15 Oct 2013 22:12:38 +0000]
Revert "video: tegra: dc: check ext enabled before flip"

This reverts commit 047024eda0ce5f88ccb402ec02b6d85cae3e208b.

Bug 1386004

Change-Id: I7cde647f89f65a4b112c6c76a3b16d610fc03469
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/299639
Tested-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>

5 years agoinput: touch: raydium: import for service busy
Xiaohui Tao [Mon, 14 Oct 2013 17:36:05 +0000]
input: touch: raydium: import for service busy

Limit the number of service busy printks inside touch driver
for power saving purposes from v60.0 to v56.2.

Bug 1288488

Change-Id: I66d4fad29b90cf5eddcbb9f068596378d24ae925
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/299024
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>

5 years agoARM: tegra: disable IKCONFIG and make modules built-in
Eric Miao [Fri, 4 Oct 2013 01:01:10 +0000]
ARM: tegra: disable IKCONFIG and make modules built-in

Bug 1343930

To be conform with CTS, we need to disable IKCONFIG and MODULES,
and make existing modules all built-in.

CONFIG_MODULES and relevant options are left untouched, these will
be turned OFF if it's a user build. This option is still necessary
for engineering build for out-of-tree modules and many test cases.

Change-Id: Icd858d5d707e66d4d9499de8ad358d06bc4e35d2
Signed-off-by: Eric Miao <eric.miao@nvidia.com>
Reviewed-on: http://git-master/r/281984
Reviewed-by: Eric Miao <emiao@nvidia.com>
Tested-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agomisc: tegra-profiler: kprobes is no longer used
Igor Nabirushkin [Fri, 4 Oct 2013 21:35:23 +0000]
misc: tegra-profiler: kprobes is no longer used

Tegra Profiler: kprobes is no longer used
Use callbacks from the scheduler instead of kprobes

Bug 1343930

Change-Id: I67589dbe972cc5c853addfb6ed82c488529eed55
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/281941
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Eric Miao <emiao@nvidia.com>
Tested-by: Eric Miao <emiao@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agoinput: touch: raydium: release mutex in error
Xiaohui Tao [Tue, 8 Oct 2013 21:43:52 +0000]
input: touch: raydium: release mutex in error

The mutex needs to be released when there is an error inside
the rm_tch_ts_send_signal.

Bug 1384590

Change-Id: I269f1087724726c00eb31c8481dee3af577a2985
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/282913
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoinput: misc: inv: prevent IRQ revival
Sang-Hun Lee [Wed, 9 Oct 2013 21:14:24 +0000]
input: misc: inv: prevent IRQ revival

Problem description:
 - nvi_work_function may revive IRQ which was disabled
   during suspend and shutdown

Fix description:
 - Add a flag stop_workqueue which is set during suspend
   and shutdown
 - If the flag is set, make workqueue not revive the IRQ

Bug 1361923

Change-Id: I498091602ef9c43b75c0a17d7fe0837624271959
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/284347
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoinput: misc: inv: fix race in shutdown and suspend
Sang-Hun Lee [Tue, 8 Oct 2013 21:14:24 +0000]
input: misc: inv: fix race in shutdown and suspend

Problem description:
 - Write to shutdown flag is not mutex protected
 - nvi_work_func may be scheduled after shutdown or suspend
 - kfifo is being freed for shutdown, which could
   corrupt memory if there is a further access to
   kfifo by nvi_pm_exit and its function calls

Fix description:
 - Encapsulate write to shutdown flag with a mutex,
   to ensure readers get valid information
 - Wait for nvi_work_func to complete during shutdown and suspend
 - Free kfifo only during remove

Bug 1361923

Change-Id: I64dabfb21a289354e7f7c58ac408dc48bcff9267
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/283813
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomach-tegra: Enable LP0 wakeup on HDMI hotplug for board-roth.
Todd Poynter [Fri, 4 Oct 2013 17:31:43 +0000]
mach-tegra: Enable LP0 wakeup on HDMI hotplug for board-roth.

Set TEGRA_DC_OUT_HOTPLUG_WAKE_LP0 for roth_disp2_out which will
arm the GPIO wakesource when set.
Enable index WAKE4 / TEGRA_GPIO_PN7 (HDMI) as a wake source for
board-roth.

Bug 1367505.

Change-Id: I4b4e3ca458243b3b27b316ac237264a0d323ff17
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/281824
Reviewed-by: Dan Nolan <dnolan@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoinput: misc: inv: reset gyro on an interrupt storm
Sang-Hun Lee [Fri, 21 Jun 2013 04:08:23 +0000]
input: misc: inv: reset gyro on an interrupt storm

Problem description:
 - Sometimes gyro sends more interrupts than the system could handle
 - This locks up the system for a long time if the system is locked up
   at a low power cluster

Fix description:
 - If gyro sends more interrupts than the specification, disable interrupt
   and schedule a power cycle of gyro

Bug 1311053

Change-Id: Ib6a3eb2991702a4ca41657cfc57179e16ebcd11d
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/280083
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoinput: misc: Fix self-test
Erik Lilliebjerg [Mon, 29 Jul 2013 18:42:18 +0000]
input: misc: Fix self-test

- Fix self-test HW restore after test.
- Fix register write failures due to PM cycle mode.

Bug 1327608
Bug 1313284
Bug 1311053
Bug 1315609

Change-Id: I9b9fb1afc8b9a10309e0224e56813bc9e400598c
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/255171
(cherry picked from commit 029e3a6a8053e128c93b6bfc3850b74d5577ca66)
Reviewed-on: http://git-master/r/280082
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoinput: misc: sensor drivers
Erik Lilliebjerg [Mon, 8 Jul 2013 12:55:56 +0000]
input: misc: sensor drivers

- reduce suspend time for compass and pressure
- fix MPU possible interrupt storm
- fix MPU sample frequency overrun
- fix MPU 9250 support for sw_rev > 2 HW
- add BMP280 support to BMP180 pressure driver
- optimize MPU FIFO timestamp algorithm
- add compass self-test
- add data interface

Bug 1313284
Bug 1311053
Bug 1295128
Bug 1256470
Bug 1236893

Change-Id: I4ffa906c07ed1d07ad3b89aea9eb83fb153b765d
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/246132
(cherry picked from commit 8cdf5b9ccfb47477229bf2cbb37f5132e81ad39e)
Reviewed-on: http://git-master/r/248192
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agovideo: tegra: dc: WAR of SHIFT_CLK_DIV update.
Kevin Huang [Tue, 29 Jan 2013 23:12:52 +0000]
video: tegra: dc: WAR of SHIFT_CLK_DIV update.

Bug 1225291
Bug 1161019
Bug 1363029

Change-Id: I699e64a1f6464eeddae5275a55cd2b285badc698
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/195272
Reviewed-on: http://git-master/r/281537
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Rakesh Iyer <riyer@nvidia.com>

5 years agoinput: misc: mpu: Check suspend status before i2c
Xiaohui Tao [Wed, 2 Oct 2013 20:26:39 +0000]
input: misc: mpu: Check suspend status before i2c

During suspend/resume period, it is possible that the i2c transfer
still occurs after the power to the chip has already been cut. Add
shutdown to regulator control in order to avoid timeout when anyone
tries to send anything through the i2c bus when the chip has been
removed power.

Bug 1361923

Change-Id: I1cd37b56a7572955e1e8c29034d04c00c9c81e18
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/281110
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

5 years agotegra: dc: hdmi: allow LP0 wakeup by hotplug GPIO
Alexandre Courbot [Tue, 27 Aug 2013 04:22:16 +0000]
tegra: dc: hdmi: allow LP0 wakeup by hotplug GPIO

Introduce a new TEGRA_DC_OUT_HOTPLUG_WAKE_LP0 flag which can be
specified for DC controllers for which we want the HDMI hotplug
GPIO to serve as a LP0 wake source.

Bug 1345127

Change-Id: I9193be6ada4b0eca1c074c4b9a5888e3b0e49150
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/266365
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aaron Gamble <jgamble@nvidia.com>
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/281798
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-by: Kevin Bruckert <kbruckert@nvidia.com>

5 years agoARM: tegra: add wakeup sources tuning functions
Alexandre Courbot [Thu, 29 Aug 2013 03:32:35 +0000]
ARM: tegra: add wakeup sources tuning functions

Add tegra_set_wake_gpio() and tegra_set_wake_irq() functions that allow
board files to customize wakeup sources.

Wake sources are fixed and currently defined in wakeups-t11x.c. Defining
custom wake sources for a given project is difficult and can only be
done by:

1) Having compilation conditionals into wakeups-t11x.c to perform
per-board modifications (as is done for Dalmore currently), or
2) Duplicating wakeups-t11x.c and all the code it contains and compiling
the corresponding wakeups sources file for the board.

Neither or these methods can scale, and both actually break the ability
to boot the same kernel binary on different boards. This patch exports
functions that the board init functions can use to modify the wakeup
sources as they need, keeping board-specific changes into board-specific
files.

Change-Id: I2803e5a76f2fc7eaaa9bd343c904719b018357bd
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/267689
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/281795
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-by: Kevin Bruckert <kbruckert@nvidia.com>

5 years agobcmdhd: Define miracast modes 3 & 4
Srinivas [Thu, 26 Sep 2013 18:46:16 +0000]
bcmdhd: Define miracast modes 3 & 4

Improve QoS for Grid2shield stream by
turning off AMPDU aggregation on 11n AP's

Mode 3 - disable AMPDU for all CS's
Mode 4 - re-enable AMPDU except CS 5 & 7
Driver command MAXLINKSPEED added to
distinguish 11n and non-11n AP's

Bug 1375583

Change-Id: I36a6b2426ea53696fac54681fda38f91eabc8956
Signed-off-by: Srinivas <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/279441
Reviewed-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: issp: add lock for usb reset operation
Jun Yan [Mon, 30 Sep 2013 18:36:45 +0000]
misc: issp: add lock for usb reset operation

usb reset operation should be in critical region.
Add mutex lock to prevent two WARs resetting the USB
together.

Bug 1364476

Change-Id: I4c17a61a594cad496f5444e919cf101f8098da25
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/278072
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/279102
Reviewed-by: Automatic_Commit_Validation_User

5 years agomisc: issp: hold wake lock while reset
Anshul Jain [Tue, 17 Sep 2013 22:25:06 +0000]
misc: issp: hold wake lock while reset

Hold wakelock to prevent system goto LP0 again.

Bug 1364476

Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Change-Id: Id38d6dfaf6ed06a36a019d942786e09e89556875
Reviewed-on: http://git-master/r/276000
Reviewed-on: http://git-master/r/279101
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agomisc: issp: add sysfs node to control issp pins
Jun Yan [Thu, 8 Aug 2013 22:19:19 +0000]
misc: issp: add sysfs node to control issp pins

issp_reset: toggle issp reset pin.
issp_usbreset: reload usb driver and toggle issp reset pin
issp_data: read and write the state of issp_data pin
issp_clk: read and write the state of issp_clk pin

Bug 1364476

Change-Id: I3b470f0745ed002b16bdc71f661e0d18629f796f
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/259787
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/279099
Reviewed-by: Automatic_Commit_Validation_User

5 years agopower: bq2419x: Remove wdt reset print
Anshul Jain [Tue, 17 Sep 2013 00:54:59 +0000]
power: bq2419x: Remove wdt reset print

Change-Id: I1f8d19add271531bf6489e076da847582fd952f5
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/275442
Reviewed-on: http://git-master/r/279100
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>

5 years agousb: gadget: tegra: Reduce CPU boost trigger size
Rakesh Bodla [Tue, 24 Sep 2013 06:12:44 +0000]
usb: gadget: tegra: Reduce CPU boost trigger size

Decrease the CPU frequency boosting trigger size.

Bug 1343869

Change-Id: Ice4584196c053f06f58ca662dd7a4f67a7c57ab3
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/278169
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agohid: hid-input: decrease hid joystick fuzz value
Jun Yan [Thu, 5 Sep 2013 01:53:33 +0000]
hid: hid-input: decrease hid joystick fuzz value

Decrease hid fuzz value to range/1024 to enable
better joystick axis granularity on Linux/Android.

Bug 1358167

Change-Id: Ib8713bdbe1f1edaa0e963d8472afbe30b6afe909
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/276540
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
GVS: Gerrit_Virtual_Submit