History log of /drivers/net/phy/amd-xgbe-phy.c
Revision Date Author Comments
a42f5c17131103ec54a71dfb7e6bb7b3704686a1 07-Sep-2014 Tom Lendacky <thomas.lendacky@amd.com> amd-xgbe-phy: Fix build break for missing declaration

A previous patch inadvertently deleted a declaration in the
amd_xgbe_an_tx_training function causing the build to fail.

Add the declaration for 'priv' back to the function.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
b73c798b1709e70c8a845228ef07d92c25bd8d6b 03-Sep-2014 Lendacky, Thomas <Thomas.Lendacky@amd.com> amd-xgbe-phy: Checkpatch driver fixes

This patch contains fixes identified by checkpatch when run with the
strict option.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
e6f0562ff42967a21708acc963ae12059d1d13e3 03-Sep-2014 Lendacky, Thomas <Thomas.Lendacky@amd.com> amd-xgbe-phy: Enhance parallel detection to support KR speed

Add support to allow parallel detection to work in KR speed. With
both speed modes of KX and KR supported, KX must be checked first.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
e3eec4e79322957d9408dc4e2cf7276c558999d7 03-Sep-2014 Lendacky, Thomas <Thomas.Lendacky@amd.com> amd-xgbe-phy: Check device for current speed mode (KR/KX)

Since device resets can change the current mode it's possible to think
the device is in a different mode than it actually is. Rather than
trying to determine every place that is needed to set/save the current
mode, be safe and check the devices actual mode when needed rather than
trying to track it.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1fa1f2e09824abd39fa7e7bffe8769b7b0260b45 01-Aug-2014 Lendacky, Thomas <Thomas.Lendacky@amd.com> amd-xgbe-phy: Allow more time for Rx/Tx to become ready

The current time range waiting for Rx/Tx to become ready can sometimes
be too short if a connection is not present. Increase the number of
retries and the sleep to give a bit more time. Also, change level of
the message issued from _err to _dbg if Rx/Tx do not become ready
since the underlying logic will function as if no link is established
and retry eventually.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
b668a3aefd48ea4cc3fdcb730989e362f13ed431 29-Jul-2014 Lendacky, Thomas <Thomas.Lendacky@amd.com> amd-xgbe-phy: Print out the auto-negotiation method used

Add a netdev_info statement detailing whether auto-negotiation was
completed through parallel detection or through the auto-negotiation
protocol.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
5c10e5cb0fbdde6cc79ca406b8bdcb05aa0c9489 29-Jul-2014 Lendacky, Thomas <Thomas.Lendacky@amd.com> amd-xgbe-phy: Updates to KR training initiation

As part of changing rates to KR mode, KR training is initiated. If
the KR training is restarted it is possible to enter an invalid logic
state. This can be avoided by asserting a training reset bit before
initiating the KR training and then clearing the training reset bit.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
169a6303b89a99c807328f6f9772a81605b17116 29-Jul-2014 Lendacky, Thomas <Thomas.Lendacky@amd.com> amd-xgbe-phy: Updates to rate change complete check

Currently, the logic will loop endlessly waiting for a rate change
to complete. Add a counter so that if the rate change signals
never indicate complete the loop will eventually exit.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
f047604a3ff1a1d7c8bd4a43c72de3936d71f3c1 29-Jul-2014 Lendacky, Thomas <Thomas.Lendacky@amd.com> amd-xgbe: Update/fix 2.5GbE support

Update the amd-xgbe driver and phylib driver to better support
the 2.5GbE mode for the hardware. In order to be able establish
2.5GbE using clause 73 auto negotiation the device will support
speed sets of 1GbE/10GbE and 2.5GbE/10GbE.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
a25aafaa5ba8ab267677615f821cb5d0303521e5 07-Jun-2014 françois romieu <romieu@fr.zoreil.com> amd-xgbe: fix unused variable compilation warning in phylib driver

Fix following compilation warning:
[...]
CC drivers/net/phy/amd-xgbe-phy.o
drivers/net/phy/amd-xgbe-phy.c:1353:30: warning:
‘amd_xgbe_phy_ids’ defined but not used [-Wunused-variable]
static struct mdio_device_id amd_xgbe_phy_ids[] = {
^
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
4d874b30b14674284d72f92485e991b984b0b5e1 05-Jun-2014 Lendacky, Thomas <Thomas.Lendacky@amd.com> amd-xgbe: Initial AMD 10GbE phylib driver

This patch provides the initial phylib driver in support
of the AMD 10GbE device.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>