<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/ethernet/nxp, branch linux-4.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-06-20T08:23:20Z</updated>
<entry>
<title>net: lpc-enet: fix error return code in lpc_mii_init()</title>
<updated>2020-06-20T08:23:20Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2020-04-27T12:15:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=873e93cd1af08d5de118ed1735ffc6f788f126ab'/>
<id>urn:sha1:873e93cd1af08d5de118ed1735ffc6f788f126ab</id>
<content type='text'>
[ Upstream commit 88ec7cb22ddde725ed4ce15991f0bd9dd817fd85 ]

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: b7370112f519 ("lpc32xx: Added ethernet driver")
Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Acked-by: Vladimir Zapolskiy &lt;vz@mleia.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: lpc-enet: fix printk format strings</title>
<updated>2019-10-05T10:27:48Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2019-08-09T14:40:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0fc9c24adca9b54156597c69e896810b3a5b9c3d'/>
<id>urn:sha1:0fc9c24adca9b54156597c69e896810b3a5b9c3d</id>
<content type='text'>
[ Upstream commit de6f97b2bace0e2eb6c3a86e124d1e652a587b56 ]

compile-testing this driver on other architectures showed
multiple warnings:

  drivers/net/ethernet/nxp/lpc_eth.c: In function 'lpc_eth_drv_probe':
  drivers/net/ethernet/nxp/lpc_eth.c:1337:19: warning: format '%d' expects argument of type 'int', but argument 4 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=]

  drivers/net/ethernet/nxp/lpc_eth.c:1342:19: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=]

Use format strings that work on all architectures.

Link: https://lore.kernel.org/r/20190809144043.476786-10-arnd@arndb.de
Reported-by: kbuild test robot &lt;lkp@intel.com&gt;
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: lpc_eth: remove irq &gt; NR_IRQS check from probe()</title>
<updated>2015-12-03T20:02:24Z</updated>
<author>
<name>Vladimir Zapolskiy</name>
</author>
<published>2015-12-02T06:12:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=39198ec98751477313f30569b935503b216f85d0'/>
<id>urn:sha1:39198ec98751477313f30569b935503b216f85d0</id>
<content type='text'>
If the driver is used on an ARM platform with SPARSE_IRQ defined,
semantics of NR_IRQS is different (minimal value of virtual irqs) and
by default it is set to 16, see arch/arm/include/asm/irq.h.

This value may be less than the actual number of virtual irqs, which
may break the driver initialization. The check removal allows to use
the driver on such a platform, and, if irq controller driver works
correctly, the check is not needed on legacy platforms.

Fixes a runtime problem:

    lpc-eth 31060000.ethernet: error getting resources.
    lpc_eth: lpc-eth: not found (-6).

Signed-off-by: Vladimir Zapolskiy &lt;vz@mleia.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: lpc_eth: fix warnings caused by enabling unprepared clock</title>
<updated>2015-10-05T10:41:12Z</updated>
<author>
<name>Vladimir Zapolskiy</name>
</author>
<published>2015-09-30T21:37:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=33a8316d9cda4368e7cb477fff36c9ee35d4164e'/>
<id>urn:sha1:33a8316d9cda4368e7cb477fff36c9ee35d4164e</id>
<content type='text'>
If common clock framework is configured, the driver generates warnings,
which are fixed by this change:

    WARNING: CPU: 0 PID: 1 at linux/drivers/clk/clk.c:727 clk_core_enable+0x2c/0xa4()
    Modules linked in:
    CPU: 0 PID: 1 Comm: swapper Not tainted 4.3.0-rc2+ #141
    Hardware name: LPC32XX SoC (Flattened Device Tree)
    Backtrace:
    [&lt;&gt;] (dump_backtrace) from [&lt;&gt;] (show_stack+0x18/0x1c)
    [&lt;&gt;] (show_stack) from [&lt;&gt;] (dump_stack+0x20/0x28)
    [&lt;&gt;] (dump_stack) from [&lt;&gt;] (warn_slowpath_common+0x90/0xb8)
    [&lt;&gt;] (warn_slowpath_common) from [&lt;&gt;] (warn_slowpath_null+0x24/0x2c)
    [&lt;&gt;] (warn_slowpath_null) from [&lt;&gt;] (clk_core_enable+0x2c/0xa4)
    [&lt;&gt;] (clk_core_enable) from [&lt;&gt;] (clk_enable+0x24/0x38)
    [&lt;&gt;] (clk_enable) from [&lt;&gt;] (lpc_eth_drv_probe+0xfc/0x99c)
    [&lt;&gt;] (lpc_eth_drv_probe) from [&lt;&gt;] (platform_drv_probe+0x50/0xa0)
    [&lt;&gt;] (platform_drv_probe) from [&lt;&gt;] (driver_probe_device+0x18c/0x408)
    [&lt;&gt;] (driver_probe_device) from [&lt;&gt;] (__driver_attach+0x70/0x94)
    [&lt;&gt;] (__driver_attach) from [&lt;&gt;] (bus_for_each_dev+0x74/0x98)
    [&lt;&gt;] (bus_for_each_dev) from [&lt;&gt;] (driver_attach+0x20/0x28)
    [&lt;&gt;] (driver_attach) from [&lt;&gt;] (bus_add_driver+0x11c/0x248)
    [&lt;&gt;] (bus_add_driver) from [&lt;&gt;] (driver_register+0xa4/0xe8)
    [&lt;&gt;] (driver_register) from [&lt;&gt;] (__platform_driver_register+0x50/0x64)
    [&lt;&gt;] (__platform_driver_register) from [&lt;&gt;] (lpc_eth_driver_init+0x18/0x20)
    [&lt;&gt;] (lpc_eth_driver_init) from [&lt;&gt;] (do_one_initcall+0x11c/0x1dc)
    [&lt;&gt;] (do_one_initcall) from [&lt;&gt;] (kernel_init_freeable+0x10c/0x1d4)
    [&lt;&gt;] (kernel_init_freeable) from [&lt;&gt;] (kernel_init+0x10/0xec)
    [&lt;&gt;] (kernel_init) from [&lt;&gt;] (ret_from_fork+0x14/0x24)

Signed-off-by: Vladimir Zapolskiy &lt;vz@mleia.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: ethernet: Remove superfluous ether_setup after alloc_etherdev</title>
<updated>2014-10-03T22:31:40Z</updated>
<author>
<name>Tobias Klauser</name>
</author>
<published>2014-10-02T08:15:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6a05880a8b22c6ba2ffdabbceb4635d28abe9072'/>
<id>urn:sha1:6a05880a8b22c6ba2ffdabbceb4635d28abe9072</id>
<content type='text'>
There is no need to call ether_setup after alloc_ethdev since it was
already called there.

Follow commits c706471b2601 ("net: axienet: remove unnecessary
ether_setup after alloc_etherdev") and 3c87dcbfb36c ("net: ll_temac:
Remove unnecessary ether_setup after alloc_etherdev") and fix the
pattern in all remaining ethernet drivers.

Signed-off-by: Tobias Klauser &lt;tklauser@distanz.ch&gt;
Acked-by: Nicolas Ferre &lt;nicolas.ferre@atmel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: lpc_eth: Fix crash on ip link up</title>
<updated>2014-09-02T20:21:55Z</updated>
<author>
<name>Roland Stigge</name>
</author>
<published>2014-09-01T11:46:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aff88a0695976596b39dcfa65da4896c802c938d'/>
<id>urn:sha1:aff88a0695976596b39dcfa65da4896c802c938d</id>
<content type='text'>
When a link is already up, the following sequence makes the kernel
block completely:

  ip link set dev eth0 down
  ip link set dev eth0 up

This is because on suspended phy, the following lines

  __lpc_eth_reset(pldat);
  __lpc_eth_init(pldat);

make the LPC ethernet core block (see LPC32x0 manual). The PHY needs to be
(re-)activated low-level first.

Signed-off-by: Roland Stigge &lt;stigge@antcom.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>lpc_eth: Use resource_size instead of computation</title>
<updated>2014-06-03T23:08:52Z</updated>
<author>
<name>Benoit Taine</name>
</author>
<published>2014-06-03T10:45:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9323b239953605071866899e675c06fb2d41880c'/>
<id>urn:sha1:9323b239953605071866899e675c06fb2d41880c</id>
<content type='text'>
This issue was reported by coccicheck using the semantic patch
at scripts/coccinelle/api/resource_size.cocci

Signed-off-by: Benoit Taine &lt;benoit.taine@lip6.fr&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>drivers/net: delete non-required instances of include &lt;linux/init.h&gt;</title>
<updated>2014-01-16T19:53:26Z</updated>
<author>
<name>Paul Gortmaker</name>
</author>
<published>2014-01-08T20:32:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a81ab36bf52d0ca3a32251a923be1dbced726141'/>
<id>urn:sha1:a81ab36bf52d0ca3a32251a923be1dbced726141</id>
<content type='text'>
None of these files are actually using any __init type directives
and hence don't need to include &lt;linux/init.h&gt;.   Most are just a
left over from __devinit and __cpuinit removal, or simply due to
code getting copied from one driver to the next.

This covers everything under drivers/net except for wireless, which
has been submitted separately.

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>DMA-API: net: nxp/lpc_eth: use dma_coerce_mask_and_coherent()</title>
<updated>2013-10-31T14:48:56Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2013-06-27T13:03:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b469357f4ba28bd8d659106143fb1f6b3c64d5df'/>
<id>urn:sha1:b469357f4ba28bd8d659106143fb1f6b3c64d5df</id>
<content type='text'>
The code sequence:
	pldat-&gt;pdev-&gt;dev.coherent_dma_mask = 0xFFFFFFFF;
	pldat-&gt;pdev-&gt;dev.dma_mask = &amp;pldat-&gt;pdev-&gt;dev.coherent_dma_mask;
bypasses the architectures check on the DMA mask.  It can be replaced
with dma_coerce_mask_and_coherent(), avoiding the direct initialization
of this mask.

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>net: ethernet: remove unnecessary platform_set_drvdata()</title>
<updated>2013-05-28T05:34:51Z</updated>
<author>
<name>Jingoo Han</name>
</author>
<published>2013-05-27T19:01:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dfd93c977d84fef77404b689ef95bc716b313533'/>
<id>urn:sha1:dfd93c977d84fef77404b689ef95bc716b313533</id>
<content type='text'>
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Acked-by: Nicolas Ferre &lt;nicolas.ferre@atmel.com&gt;
Acked-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
Acked-by: Roland Stigge &lt;stigge@antcom.de&gt;
Acked-by: Mugunthan V N &lt;mugunthanvnm@ti.com&gt;
Reviewed-by: H Hartley Sweeten &lt;hsweeten@visionengravers.com&gt;
Tested-by: Roland Stigge &lt;stigge@antcom.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
