misc: tegra: Disable short delay if wake gpio not

defined.

Disable short_autosuspend_delay for Modem device, when wake gpio
is not used.

Bug 1362837
Bug 1430974

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

Conflicts:
	arch/arm/mach-tegra/tegra_usb_modem_power.c
video: tegra: dc: hotplug_report for DT

defined.

Disable short_autosuspend_delay for Modem device, when wake gpio
is not used.

Bug 1362837
Bug 1430974

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

Conflicts:
	arch/arm/mach-tegra/tegra_usb_modem_power.c
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/353229
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>
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
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/353231
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
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/353232
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
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/353233
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
misc: cec: cancel workqueue in suspend

- cancel the workqueue in suspend method before turning
  off the clock

Bug 1360341
video: tegra: dc: use cancel_delayed_work_sync()

When SCAN_COLUMN is enabled, swap input width and height
when deciding if filter needs to be turned on for respective
dimension.

Bug 1413155

Change-Id: I9d6048e567fbbbb90a27b27cb66418be9ecc9bfc
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/350551
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

Conflicts:
	drivers/video/tegra/dc/bandwidth.c
	drivers/video/tegra/dc/window.c
mmc: sdhci: tegra: exclusive clk control

Exclusive access to Tegra sdhci set clock API
to prevent race between multiple callers

bug 1405624
drivers: media: tegra: fix incorrect license info
soc: tegra: rt5640: set DAI link for E1569-ERS

Set DAI link properly for E1569-ERS rt5640 codec

Bug 1432502
Bug 1432488
usb: gadget: tegra: Add callback to boost_enable

Cancel PM QoS request upon enabled to disabled
transition.
usb: gadget: Tegra: fix audio stutter

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

Bug 1435328
video: tegra: host: Fix memory leakage in msenc

Add kfree for msenc in deinit

bug 1402255
Merge garbage, Remove unused assignments, Definitions