<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/phy/phylink.c, branch linux-5.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-06-24T03:53:28Z</updated>
<entry>
<title>net: phylink: ensure manual pause mode configuration takes effect</title>
<updated>2020-06-24T03:53:28Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2020-06-23T16:47:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2e919bc446faee429ac862a6cdb5e40017051f6b'/>
<id>urn:sha1:2e919bc446faee429ac862a6cdb5e40017051f6b</id>
<content type='text'>
We have been relying on link events and mac_config() when the manual
pause modes are changed.  With recent developments, such as moving
the programming of link state to mac_link_up(), this no longer works.

To ensure that we update the MAC, we must generate a link-down followed
by a link-up event; we can do that by setting mac_link_dropped and
triggering a resolve.

Fixes: 91a208f2185a ("net: phylink: propagate resolved link config via mac_link_up()")
Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: phylink: fix ethtool -A with attached PHYs</title>
<updated>2020-06-24T03:53:28Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2020-06-23T16:47:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c718af2d00a37587b09e5958d142da7569f3d55b'/>
<id>urn:sha1:c718af2d00a37587b09e5958d142da7569f3d55b</id>
<content type='text'>
Fix a phylink's ethtool set_pauseparam support deadlock caused by phylib
interacting with phylink: we must not hold the state lock while calling
phylib functions that may call into phylink_phy_change().

Fixes: f904f15ea9b5 ("net: phylink: allow ethtool -A to change flow control advertisement")
Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mdiobus: add clause 45 mdiobus accessors</title>
<updated>2020-05-26T22:31:45Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2020-05-26T15:29:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=90ce665c6a40dc1be771bf5f86e624c0acf3a76f'/>
<id>urn:sha1:90ce665c6a40dc1be771bf5f86e624c0acf3a76f</id>
<content type='text'>
There is a recurring pattern throughout some of the PHY code converting
a devad and regnum to our packed clause 45 representation. Rather than
having this scattered around the code, let's put a common translation
function in mdio.h, and provide some register accessors.

Convert the phylib core, phylink, bcm87xx and cortina to use these.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: phy: simplify phy_link_change arguments</title>
<updated>2020-05-18T23:54:00Z</updated>
<author>
<name>Doug Berger</name>
</author>
<published>2020-05-18T22:23:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a307593a644443db12888f45eed0dafb5869e2cc'/>
<id>urn:sha1:a307593a644443db12888f45eed0dafb5869e2cc</id>
<content type='text'>
This function was introduced to allow for different handling of
link up and link down events particularly with regard to the
netif_carrier. The third argument do_carrier allowed the flag to
be left unchanged.

Since then the phylink has introduced an implementation that
completely ignores the third parameter since it never wants to
change the flag and the phylib always sets the third parameter
to true so the flag is always changed.

Therefore the third argument (i.e. do_carrier) is no longer
necessary and can be removed. This also means that the phylib
phy_link_down() function no longer needs its second argument.

Signed-off-by: Doug Berger &lt;opendmb@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: phylink, dsa: eliminate phylink_fixed_state_cb()</title>
<updated>2020-04-24T23:45:37Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2020-04-23T16:02:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c05c1dbb177293636a3f5ea4caa872dfcf50ccd'/>
<id>urn:sha1:5c05c1dbb177293636a3f5ea4caa872dfcf50ccd</id>
<content type='text'>
Move the callback into the phylink_config structure, rather than
providing a callback to set this up.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Tested-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: phylink: add separate pcs operations structure</title>
<updated>2020-03-30T18:52:27Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2020-03-30T17:44:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4c0d6d3a7a81fcd2dcb4abf15fe2e13074cf8619'/>
<id>urn:sha1:4c0d6d3a7a81fcd2dcb4abf15fe2e13074cf8619</id>
<content type='text'>
Add a separate set of PCS operations, which MAC drivers can use to
couple phylink with their associated MAC PCS layer.  The PCS
operations include:

- pcs_get_state() - reads the link up/down, resolved speed, duplex
   and pause from the PCS.
- pcs_config() - configures the PCS for the specified mode, PHY
   interface type, and setting the advertisement.
- pcs_an_restart() - restarts 802.3 in-band negotiation with the
   link partner
- pcs_link_up() - informs the PCS that link has come up, and the
   parameters of the link. Link parameters are used to program the
   PCS for fixed speed and non-inband modes.

Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: phylink: rename 'ops' to 'mac_ops'</title>
<updated>2020-03-30T18:52:27Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2020-03-30T17:44:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e7765d634aaa9dd5db3cb59155269ef6c18d4592'/>
<id>urn:sha1:e7765d634aaa9dd5db3cb59155269ef6c18d4592</id>
<content type='text'>
Rename the bland 'ops' member of struct phylink to be a more
descriptive 'mac_ops' - this is necessary as we're about to introduce
another set of operations.

Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: phylink: change phylink_mii_c22_pcs_set_advertisement() prototype</title>
<updated>2020-03-30T18:52:27Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2020-03-30T17:44:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0bd274060a0f49d974b7e88fa87b6e1c1f496a48'/>
<id>urn:sha1:0bd274060a0f49d974b7e88fa87b6e1c1f496a48</id>
<content type='text'>
Change phylink_mii_c22_pcs_set_advertisement() to take only the PHY
interface and advertisement mask, rather than the full phylink state.

Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: phylink: pcs: add 802.3 clause 45 helpers</title>
<updated>2020-03-18T05:51:16Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2020-03-17T14:52:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b8679ef8bedfe2bae90c97bc4c8a1826cfd98bba'/>
<id>urn:sha1:b8679ef8bedfe2bae90c97bc4c8a1826cfd98bba</id>
<content type='text'>
Implement helpers for PCS accessed via the MII bus using 802.3 clause
45 cycles for 10GBASE-R. Only link up/down is supported, 10G full
duplex is assumed.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: phylink: pcs: add 802.3 clause 22 helpers</title>
<updated>2020-03-18T05:51:16Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2020-03-17T14:52:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=74db1c18d80aaacdc42e6d00d7aca2bb5c97c7ea'/>
<id>urn:sha1:74db1c18d80aaacdc42e6d00d7aca2bb5c97c7ea</id>
<content type='text'>
Implement helpers for PCS accessed via the MII bus using 802.3 clause
22 cycles, conforming to 802.3 clause 37 and Cisco SGMII specifications
for the advertisement word.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
