<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/drivers/net/ethernet/stmicro, branch dev-4.6</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-4.6</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-4.6'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2016-06-24T17:22:00+00:00</updated>
<entry>
<title>net: stmmac: Fix incorrect memcpy source memory</title>
<updated>2016-06-24T17:22:00+00:00</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2016-05-25T22:40:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=0a626fb88972dfe5ebbf80412faae8fe723fb6c4'/>
<id>urn:sha1:0a626fb88972dfe5ebbf80412faae8fe723fb6c4</id>
<content type='text'>
[ Upstream commit 643d60bf575daaba93c1ac0d0e1c4b1d4ded1f75 ]

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;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>net: stmmac: socfpga: Remove re-registration of reset controller</title>
<updated>2016-04-24T18:40:24+00:00</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2016-04-21T12:11:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=3c201b5a84edd6ee2f9a8548efaa813980839b46'/>
<id>urn:sha1:3c201b5a84edd6ee2f9a8548efaa813980839b46</id>
<content type='text'>
Both socfpga_dwmac_parse_data() in dwmac-socfpga.c and stmmac_dvr_probe()
in stmmac_main.c functions call devm_reset_control_get() to register an
reset controller for the stmmac. This results in an attempt to register
two reset controllers for the same non-shared reset line.

The first attempt to register the reset controller works fine. The second
attempt fails with warning from the reset controller core, see below.
The warning is produced because the reset line is non-shared and thus
it is allowed to have only up-to one reset controller associated with
that reset line, not two or more.

The solution has multiple parts. First, the original socfpga_dwmac_init()
is tweaked to use reset controller pointer from the stmmac_priv (private
data of the stmmac core) instead of the local instance, which was used
before. The local re-registration of the reset controller is removed.

Next, the socfpga_dwmac_init() is moved after stmmac_dvr_probe() in the
probe function. This order is legal according to Altera and it makes the
code much easier, since there is no need to temporarily register and
unregister the reset controller ; the reset controller is already registered
by the stmmac_dvr_probe().

Finally, plat_dat-&gt;exit and socfpga_dwmac_exit() is no longer necessary,
since the functionality is already performed by the stmmac core.

------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at drivers/reset/core.c:187 __of_reset_control_get+0x218/0x270
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.6.0-rc4-next-20160419-00015-gabb2477-dirty #4
Hardware name: Altera SOCFPGA
[&lt;c010f290&gt;] (unwind_backtrace) from [&lt;c010b82c&gt;] (show_stack+0x10/0x14)
[&lt;c010b82c&gt;] (show_stack) from [&lt;c0373da4&gt;] (dump_stack+0x94/0xa8)
[&lt;c0373da4&gt;] (dump_stack) from [&lt;c011bcc0&gt;] (__warn+0xec/0x104)
[&lt;c011bcc0&gt;] (__warn) from [&lt;c011bd88&gt;] (warn_slowpath_null+0x20/0x28)
[&lt;c011bd88&gt;] (warn_slowpath_null) from [&lt;c03a6eb4&gt;] (__of_reset_control_get+0x218/0x270)
[&lt;c03a6eb4&gt;] (__of_reset_control_get) from [&lt;c03a701c&gt;] (__devm_reset_control_get+0x54/0x90)
[&lt;c03a701c&gt;] (__devm_reset_control_get) from [&lt;c041fa30&gt;] (stmmac_dvr_probe+0x1b4/0x8e8)
[&lt;c041fa30&gt;] (stmmac_dvr_probe) from [&lt;c04298c8&gt;] (socfpga_dwmac_probe+0x1b8/0x28c)
[&lt;c04298c8&gt;] (socfpga_dwmac_probe) from [&lt;c03d6ffc&gt;] (platform_drv_probe+0x4c/0xb0)
[&lt;c03d6ffc&gt;] (platform_drv_probe) from [&lt;c03d54ec&gt;] (driver_probe_device+0x224/0x2bc)
[&lt;c03d54ec&gt;] (driver_probe_device) from [&lt;c03d5630&gt;] (__driver_attach+0xac/0xb0)
[&lt;c03d5630&gt;] (__driver_attach) from [&lt;c03d382c&gt;] (bus_for_each_dev+0x6c/0xa0)
[&lt;c03d382c&gt;] (bus_for_each_dev) from [&lt;c03d4ad4&gt;] (bus_add_driver+0x1a4/0x21c)
[&lt;c03d4ad4&gt;] (bus_add_driver) from [&lt;c03d60ac&gt;] (driver_register+0x78/0xf8)
[&lt;c03d60ac&gt;] (driver_register) from [&lt;c0101760&gt;] (do_one_initcall+0x40/0x170)
[&lt;c0101760&gt;] (do_one_initcall) from [&lt;c0800e38&gt;] (kernel_init_freeable+0x1dc/0x27c)
[&lt;c0800e38&gt;] (kernel_init_freeable) from [&lt;c05d1bd4&gt;] (kernel_init+0x8/0x114)
[&lt;c05d1bd4&gt;] (kernel_init) from [&lt;c01076f8&gt;] (ret_from_fork+0x14/0x3c)
---[ end trace 059d2fbe87608fa9 ]---

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Matthew Gerlach &lt;mgerlach@opensource.altera.com&gt;
Cc: Dinh Nguyen &lt;dinguyen@opensource.altera.com&gt;
Cc: David S. Miller &lt;davem@davemloft.net&gt;
Tested-by: Dinh Nguyen &lt;dinguyen@opensource.altera.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: stmmac: socfgpa: Ensure emac bit set in System Manger for PTP</title>
<updated>2016-04-11T03:44:21+00:00</updated>
<author>
<name>Phil Reid</name>
<email>preid@electromag.com.au</email>
</author>
<published>2016-04-07T07:55:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=734e00fa02eff5003827abc06a7ebf9449349109'/>
<id>urn:sha1:734e00fa02eff5003827abc06a7ebf9449349109</id>
<content type='text'>
When using the PTP fpga to hps clock source for the stmmac module
the appropriate bit in the System Manager FPGA Interface Group register
needs to be set. This is not set by the bootloader setup  when the
HPS emac pins are being for this emac module.

This allows the PTP clock to be sourced from the FPGA and also connects
the PTP pps and ext trig signals to the stmmac PTP hardware.

Patch proposed by Phil Collins.

Signed-off-by: Phil Reid &lt;preid@electromag.com.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: fix adjust link call in case of a switch is attached</title>
<updated>2016-04-06T20:34:03+00:00</updated>
<author>
<name>Giuseppe CAVALLARO</name>
<email>peppe.cavallaro@st.com</email>
</author>
<published>2016-04-05T06:46:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=52f95bbfcf72126a9f90a386a974fcbe6c6cae46'/>
<id>urn:sha1:52f95bbfcf72126a9f90a386a974fcbe6c6cae46</id>
<content type='text'>
While initializing the phy, the stmmac driver sets the
PHY_IGNORE_INTERRUPT so the PAL won't call the adjust hook
that is needed, on some platforms, e.g. STi, to invoke the glue.

The patch allows the PAL to poll the stmmac_adjust_link just one time
in case of a switch is attached, setting later the PHY_IGNORE_INTERRUPT
flag.
Moving this kind of logic inside the adjust_link it makes sense to
anticipate the check for EEE that will never initialized in this
scenario.

Reported-by: Gabriel Fernandez &lt;gabriel.fernandez@linaro.org&gt;
Signed-off-by: Giuseppe Cavallaro &lt;peppe.cavallaro@st.com&gt;
Tested-by: Gabriel Fernandez &lt;gabriel.fernandez@linaro.org&gt;
Cc: Alexandre TORGUE &lt;alexandre.torgue@st.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: fix MDIO settings</title>
<updated>2016-04-01T18:38:59+00:00</updated>
<author>
<name>Giuseppe CAVALLARO</name>
<email>peppe.cavallaro@st.com</email>
</author>
<published>2016-04-01T07:07:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=a7657f128c279ae5796ab2ca7d04a7819f4259f0'/>
<id>urn:sha1:a7657f128c279ae5796ab2ca7d04a7819f4259f0</id>
<content type='text'>
Initially the phy_bus_name was added to manipulate the
driver name but it was recently just used to manage the
fixed-link and then to take some decision at run-time.
So the patch uses the is_pseudo_fixed_link and removes
the phy_bus_name variable not necessary anymore.

The driver can manage the mdio registration by using phy-handle,
dwmac-mdio and own parameter e.g. snps,phy-addr.
This patch takes care about all these possible configurations
and fixes the mdio registration in case of there is a real
transceiver or a switch (that needs to be managed by using
fixed-link).

Signed-off-by: Giuseppe Cavallaro &lt;peppe.cavallaro@st.com&gt;
Reviewed-by: Andreas Färber &lt;afaerber@suse.de&gt;
Tested-by: Frank Schäfer &lt;fschaefer.oss@googlemail.com&gt;
Cc: Gabriel Fernandez &lt;gabriel.fernandez@linaro.org&gt;
Cc: Dinh Nguyen &lt;dinh.linux@gmail.com&gt;
Cc: David S. Miller &lt;davem@davemloft.net&gt;
Cc: Phil Reid &lt;preid@electromag.com.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Revert "stmmac: Fix 'eth0: No PHY found' regression"</title>
<updated>2016-04-01T18:38:58+00:00</updated>
<author>
<name>Giuseppe CAVALLARO</name>
<email>peppe.cavallaro@st.com</email>
</author>
<published>2016-04-01T07:07:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=d7e944c8ddc0983640a9a32868fb217485d12ca2'/>
<id>urn:sha1:d7e944c8ddc0983640a9a32868fb217485d12ca2</id>
<content type='text'>
This reverts commit 88f8b1bb41c6208f81b6a480244533ded7b59493.
due to problems on GeekBox and Banana Pi M1 board when
connected to a real transceiver instead of a switch via
fixed-link.

Signed-off-by: Giuseppe Cavallaro &lt;peppe.cavallaro@st.com&gt;
Cc: Gabriel Fernandez &lt;gabriel.fernandez@linaro.org&gt;
Cc: Andreas Färber &lt;afaerber@suse.de&gt;
Cc: Frank Schäfer &lt;fschaefer.oss@googlemail.com&gt;
Cc: Dinh Nguyen &lt;dinh.linux@gmail.com&gt;
Cc: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: fix TX normal DESC</title>
<updated>2016-04-01T18:38:58+00:00</updated>
<author>
<name>Giuseppe CAVALLARO</name>
<email>peppe.cavallaro@st.com</email>
</author>
<published>2016-04-01T07:07:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=a00e3ab64be2e482bd25fe30bdc9bfa6e2b0cf1c'/>
<id>urn:sha1:a00e3ab64be2e482bd25fe30bdc9bfa6e2b0cf1c</id>
<content type='text'>
This patch fixs a regression raised when test on chips that use
the normal descriptor layout. In fact, no len bits were set for
the TDES1 and no OWN bit inside the TDES0.

Signed-off-by: Giuseppe CAVALLARO &lt;peppe.cavallaro@st.com&gt;
Tested-by: Andreas Färber &lt;afaerber@suse.de&gt;
Cc: Fabrice Gasnier &lt;fabrice.gasnier@st.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: stmmac: Don't search for phys if mdio node is defined.</title>
<updated>2016-03-18T22:29:23+00:00</updated>
<author>
<name>Phil Reid</name>
<email>preid@electromag.com.au</email>
</author>
<published>2016-03-15T07:34:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=cc2fa619a738a052eb90ccbbbc48947a2e2aa1d3'/>
<id>urn:sha1:cc2fa619a738a052eb90ccbbbc48947a2e2aa1d3</id>
<content type='text'>
If a dt mdio entry has been added least assume that we wont
search for phys attached. The DT and of_mdiobus_register already do
this. This stops DSA phys being found and phys created for them, as
this is handled by the DSA driver.

Signed-off-by: Phil Reid &lt;preid@electromag.com.au&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>Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net</title>
<updated>2016-03-08T17:34:12+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2016-03-08T17:34:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=810813c47a564416f6306ae214e2661366c987a7'/>
<id>urn:sha1:810813c47a564416f6306ae214e2661366c987a7</id>
<content type='text'>
Several cases of overlapping changes, as well as one instance
(vxlan) of a bug fix in 'net' overlapping with code movement
in 'net-next'.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>stmmac: fix noderef.cocci warnings</title>
<updated>2016-03-07T03:46:09+00:00</updated>
<author>
<name>Wu Fengguang</name>
<email>fengguang.wu@intel.com</email>
</author>
<published>2016-03-03T01:55:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=4c3e962df044c34d25403f8f58ff7b34c4966b4a'/>
<id>urn:sha1:4c3e962df044c34d25403f8f58ff7b34c4966b4a</id>
<content type='text'>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:115:15-21: ERROR: application of sizeof to pointer

 sizeof when applied to a pointer typed expression gives the size of
 the pointer

Generated by: scripts/coccinelle/misc/noderef.cocci

CC: Giuseppe Cavallaro &lt;peppe.cavallaro@st.com&gt;
Signed-off-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
