<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/ethernet/stmicro, branch linux-4.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-07-02T18:36:18Z</updated>
<entry>
<title>net: stmmac: Fix null-function call in ISR on stmmac1000</title>
<updated>2016-07-02T18:36:18Z</updated>
<author>
<name>Matt Corallo</name>
</author>
<published>2016-06-30T19:46:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8b7d7709dc6db7d6d8a9a04aa9d49b029a27203'/>
<id>urn:sha1:a8b7d7709dc6db7d6d8a9a04aa9d49b029a27203</id>
<content type='text'>
(resent due to overhelpful mail client corrupting patch)

At least on Meson GXBB, the CORE_IRQ_MTL_RX_OVERFLOW interrupt is thrown
with the stmmac1000 driver, which does not support set_rx_tail_ptr. With
this patch and the clock fixes, 1G ethernet works on ODROID-C2.

Signed-off-by: Matt Corallo &lt;git@bluematt.me&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: fix parameter to dwmac4_set_umac_addr()</title>
<updated>2016-06-10T06:39:03Z</updated>
<author>
<name>Ben Dooks</name>
</author>
<published>2016-06-08T18:21:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca8bdaf13abbdcbb12ff12164aa2d5b522ec524d'/>
<id>urn:sha1:ca8bdaf13abbdcbb12ff12164aa2d5b522ec524d</id>
<content type='text'>
The dwmac4_set_umac_addr() takes a struct mac_device_info as
the first parameter, but is being passed a ioaddr instead from
dwmac4_set_filter(). Fix the warning/bug by changing the first
parameter.

drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:159:46: warning: incorrect type in argument 1 (different address spaces)
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:159:46:    expected struct mac_device_info *hw
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:159:46:    got void [noderef] &lt;asn:2&gt;*ioaddr

Note, only compile tested this as do not have any
hardware with it in.

Signed-off-by: Ben Dooks &lt;ben.dooks@codethink.co.uk&gt;
Acked-by: Giuseppe Cavallaro &lt;peppe.cavallaro@st.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: do not sleep in atomic context for mdio_reset</title>
<updated>2016-06-02T19:12:16Z</updated>
<author>
<name>Vincent Palatin</name>
</author>
<published>2016-06-01T15:53:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f55d84b07c4e7340473a25dc82b462607578402c'/>
<id>urn:sha1:f55d84b07c4e7340473a25dc82b462607578402c</id>
<content type='text'>
stmmac_mdio_reset() has been updated to use msleep rather udelay
(as some PHY requires a one second delay there).
It called from stmmac_resume() within the spin_lock_irqsave block
atomic context triggering 'scheduling while atomic'.

The stmmac_priv lock usage is not fully documented, but it seems
to protect the access to the MAC registers / DMA structures rather
than the MDIO bus or the PHY (which have separate locking),
so we can push the spin_lock after the stmmac_mdio_reset call.

Signed-off-by: Vincent Palatin &lt;vpalatin@chromium.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: stmmac: Fix incorrect memcpy source memory</title>
<updated>2016-05-26T04:43:35Z</updated>
<author>
<name>Marek Vasut</name>
</author>
<published>2016-05-25T22:40:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=643d60bf575daaba93c1ac0d0e1c4b1d4ded1f75'/>
<id>urn:sha1:643d60bf575daaba93c1ac0d0e1c4b1d4ded1f75</id>
<content type='text'>
The memcpy() currently copies mdio_bus_data into new_bus-&gt;irq, which
makes no sense, since the mdio_bus_data structure contains more than
just irqs. The code was likely supposed to copy mdio_bus_data-&gt;irqs
into the new_bus-&gt;irq instead, so fix this.

Fixes: e7f4dc3536a4 ("mdio: Move allocation of interrupts into core")
Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: David S. Miller &lt;davem@davemloft.net&gt;
Cc: Giuseppe Cavallaro &lt;peppe.cavallaro@st.com&gt;
Cc: Alexandre Torgue &lt;alexandre.torgue@st.com&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: hardware TX COE doesn't work when force_thresh_dma_mode is set</title>
<updated>2016-05-17T02:17:45Z</updated>
<author>
<name>Ezequiel Garcia</name>
</author>
<published>2016-05-16T15:41:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8df35d45800c2af2b9bac04a8f9d4e426862e4d'/>
<id>urn:sha1:a8df35d45800c2af2b9bac04a8f9d4e426862e4d</id>
<content type='text'>
Commit f748be531d70 ("stmmac: support new GMAC4") reverted a previous fix
by mistake. This commit re-applies said fix:

  commit dec2165ff38a99f937fe61875d102c6c8596c815
  Author: Sonic Zhang &lt;sonic.zhang@analog.com&gt;
  Date:   Thu Jan 22 14:55:57 2015 +0800
  stmmac: hardware TX COE doesn't work when force_thresh_dma_mode is set

  Clear the TX COE bit when force_thresh_dma_mode is set even hardware
  dma capability says support.

  Tested on BF609.

  Signed-off-by: Sonic Zhang &lt;sonic.zhang@analog.com&gt;
  Acked-by: Giuseppe Cavallaro &lt;peppe.cavallaro@st.com&gt;
  Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;

Tested on LPC4350 Hitex board.

Fixes: f748be531d70 ("stmmac: support new GMAC4")
Signed-off-by: Ezequiel Garcia &lt;ezequiel@vanguardiasur.com.ar&gt;
Tested-by: Joachim Eastwood &lt;manabian@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: dwmac-socfpga: make socfpga_dwmac_pm_ops static</title>
<updated>2016-05-10T02:39:59Z</updated>
<author>
<name>Joachim Eastwood</name>
</author>
<published>2016-05-08T11:47:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bfca2eba2adaa9501656f503559a971de6927fa8'/>
<id>urn:sha1:bfca2eba2adaa9501656f503559a971de6927fa8</id>
<content type='text'>
Fix the following sparse warning:
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c:274:1: warning:
  symbol 'socfpga_dwmac_pm_ops' was not declared. Should it be static?

Signed-off-by: Joachim Eastwood &lt;manabian@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: dwmac-socfpga: kill init() and rename setup() to set_phy_mode()</title>
<updated>2016-05-03T19:22:20Z</updated>
<author>
<name>Joachim Eastwood</name>
</author>
<published>2016-05-01T20:58:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0f400a87dc59be9b485ffa820ca9ed904cacfcbb'/>
<id>urn:sha1:0f400a87dc59be9b485ffa820ca9ed904cacfcbb</id>
<content type='text'>
Remove old init callback which now contains only a call to
socfpga_dwmac_setup(). Also rename socfpga_dwmac_setup() to indicate
what the function really does.

Signed-off-by: Joachim Eastwood &lt;manabian@gmail.com&gt;
Tested-by: Marek Vasut &lt;marex@denx.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: dwmac-socfpga: call phy_resume() only in resume callback</title>
<updated>2016-05-03T19:22:20Z</updated>
<author>
<name>Joachim Eastwood</name>
</author>
<published>2016-05-01T20:58:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=537372472415b7b75856561d23891a0bf3477ea4'/>
<id>urn:sha1:537372472415b7b75856561d23891a0bf3477ea4</id>
<content type='text'>
Calling phy_resume() should only be need during driver resume to
workaround a hardware errata.

Signed-off-by: Joachim Eastwood &lt;manabian@gmail.com&gt;
Tested-by: Marek Vasut &lt;marex@denx.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: dwmac-socfpga: keep a copy of stmmac_rst in driver priv data</title>
<updated>2016-05-03T19:22:20Z</updated>
<author>
<name>Joachim Eastwood</name>
</author>
<published>2016-05-01T20:58:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=70cb136f7730830aa1134925a941e3ad96e3a846'/>
<id>urn:sha1:70cb136f7730830aa1134925a941e3ad96e3a846</id>
<content type='text'>
The dwmac-socfpga driver needs to control the reset usually managed
by the core driver to set the PHY mode. Take a copy of the reset
handle from core priv data so it can be used by the driver later.

This also allow us to move reset handling into socfpga_dwmac_setup()
where the code that needs it is located.

Signed-off-by: Joachim Eastwood &lt;manabian@gmail.com&gt;
Tested-by: Marek Vasut &lt;marex@denx.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: dwmac-socfpga: add PM ops and resume function</title>
<updated>2016-05-03T19:22:19Z</updated>
<author>
<name>Joachim Eastwood</name>
</author>
<published>2016-05-01T20:58:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=56868deece922283b367d08f1d647726d5b307d9'/>
<id>urn:sha1:56868deece922283b367d08f1d647726d5b307d9</id>
<content type='text'>
Implement the needed PM callbacks in the driver instead of
relying on the init/exit hooks in stmmac_platform. This gives
the driver more flexibility in how the code is organized.

Eventually the init/exit callbacks will be deprecated in favor
of the standard PM callbacks and driver remove function.

Signed-off-by: Joachim Eastwood &lt;manabian@gmail.com&gt;
Tested-by: Marek Vasut &lt;marex@denx.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
