CPSW: Enable CPTS interrupts correctly
Revert "cpsw: cpts: Disable interrupts before scheduling network driver polling"

This reverts commit a17d264b41beb0a5db837a4127c899974ef272f0.
Revert "cpsw: cpts: Poll CPTS for events every 10ms"

This reverts commit 7ef87fc7f55a82ed722e97c3d4a0264d19c3525d.
Revert "cpsw: cpts: enable CPTS interrupts"

This reverts commit e7172903ba2b3e2afe8c2e0bcd90e47f52c9a185.
CPSW: Enable CPTS interrupts correctly
ASI1230: Add SPI flash partition info
Merge branch 'asi1230-upstream-tracking' into asi1230-master
CPSW: Do not override the PHY's advertisement settings

The defaults selected using CMODE pins should be left untouched
PHYDEV: Read back current advertisement settings from the PHY

The defaults selected on reset using CMODE pins should be used instead
of assuming all capabilities are advertised
Merge branch 'asi1230-upstream-tracking' into asi1230-master
net: hold sock reference while processing tx timestamps

The pair of functions,

 * skb_clone_tx_timestamp()
 * skb_complete_tx_timestamp()

were designed to allow timestamping in PHY devices. The first
function, called during the MAC driver's hard_xmit method, identifies
PTP protocol packets, clones them, and gives them to the PHY device
driver. The PHY driver may hold onto the packet and deliver it at a
later time using the second function, which adds the packet to the
socket's error queue.

As pointed out by Johannes, nothing prevents the socket from
disappearing while the cloned packet is sitting in the PHY driver
awaiting a timestamp. This patch fixes the issue by taking a reference
on the socket for each such packet. In addition, the comments
regarding the usage of these function are expanded to highlight the
rule that PHY drivers must use skb_complete_tx_timestamp() to release
the packet, in order to release the socket reference, too.

These functions first appeared in v2.6.36.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Cc: <stable@vger.kernel.org>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
CPSW: CPTS: Fix eth TX timestamp loss

TX timestamp may be available in the CPTS hardware event queue when the skb
that originated the transmission has already been freed.
So we queue a clone of the transmitted skb in the CPTS TX event (software) FIFO and
submit the timestamp when a matching event is dequeued from the CPTS event hardware queue.

Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>
Merge branch 'asi1230-upstream-tracking' into asi1230-master
CPSW: CPTS: Check validity and age event queue items
Merge branch 'asi1230-upstream-tracking' into asi1230-master