From: sebastian.hesselbarth@gmail.com (Sebastian Hesselbarth)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: kirkwood: remove lagacy clk workarounds
Date: Fri, 18 Oct 2013 19:43:54 +0200 [thread overview]
Message-ID: <5261735A.1000504@gmail.com> (raw)
In-Reply-To: <52616F81.8060504@gmail.com>
On 10/18/2013 07:27 PM, Sebastian Hesselbarth wrote:
> On 10/18/2013 06:17 PM, Ezequiel Garcia wrote:
>> On Fri, Oct 18, 2013 at 10:47:41AM -0400, Jason Cooper wrote:
>>> On Fri, Oct 18, 2013 at 01:54:13PM +0200, Sebastian Hesselbarth wrote:
>>>> With legacy devices converted to DT and a proper ethernet MAC
>>>> workaround, we can now remove the clk workarounds for legacy
>>>> devices. While at it, also cleanup the list of includes.
>>>>
>>>> Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
>>>> ---
>>>> As a follow-up patch for latest mvebu PRs, this patch is based on
>>>> git://git.infradead.org/linux-mvebu.git tags/soc-3.13-2
>>>>
>>>> Cc: Jason Cooper <jason@lakedaemon.net>
>>>> Cc: Andrew Lunn <andrew@lunn.ch>
>>>> Cc: Russell King <linux@arm.linux.org.uk>
>>>> Cc: Kevin Hilman <khilman@linaro.org>
>>>> Cc: linux-arm-kernel at lists.infradead.org
>>>> Cc: linux-kernel at vger.kernel.org
>>>> ---
>>>> arch/arm/mach-kirkwood/board-dt.c | 42
>>>> ++----------------------------------
>>>> 1 files changed, 3 insertions(+), 39 deletions(-)
>>>
>>> Applied to mvebu/soc
>>>
>>
>> Weird: I've tried to do this clean-up myself and my usual tests with
>> network
>> built as a module failed somehow. Maybe I missed something and did
>> something
>> stupid?
>
> Ezequiel,
>
> you need commits
> b5d82db net: mv643xx_eth: fix missing device_node for port devices
> f564412 net: mv643xx_eth: fix orphaned statistics timer crash
> 041b4dd net: mv643xx_eth: update statistics timer from timer context only
>
> from git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git master
>
> Those are the three net driver fixes and have not yet been pulled into
> mainline linux.
>
> Can you re-test with those three applied (or you can just merge in
> above master)? I am compiling right now and will report.
With mvebu/for-next and net/master merged in,
modular mvmdio and mv643xx_eth on Kirkwood Dockstar:
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail>
IOW, works. I hope you can confirm this, too.
Sebastian
Log follows:
---
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.12.0-rc3-00388-g863cf23 (hesselba at nijin)
(gcc version 4.3.5 (Debian 4.3.5-4) ) #26 PREEMPT Fri Oct 18 19:30:40
CEST 2013
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE),
cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Marvell Kirkwood (Flattened Device Tree), model:
Seagate FreeAgent Dockstar
...
[ 0.165779] [Firmware Info]:
/ocp at f1000000/ethernet-controller at 72000/ethernet0-port at 0:
local-mac-address is not set
...
root at cosmo:~# insmod mvmdio.ko
[ 206.994283] libphy: orion_mdio_bus: probed
root at cosmo:~# insmod mv643xx_eth.ko
[ 210.725345] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 211.748687] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC
address 02:50:43:19:fd:e2
[ 214.599588] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000
Mb/s, full duplex, flow control disabled
...
root at cosmo:~# dhclient eth0
...
RTNETLINK answers: File exists
root at cosmo:~# ifconfig
eth0 Link encap:Ethernet HWaddr 02:50:43:19:fd:e2
inet addr:192.168.1.54 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2822 (2.7 KiB) TX bytes:4049 (3.9 KiB)
Interrupt:29
WARNING: multiple messages have this Message-ID (diff)
From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
To: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>,
Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>, Kevin Hilman <khilman@linaro.org>,
Russell King <linux@arm.linux.org.uk>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] ARM: kirkwood: remove lagacy clk workarounds
Date: Fri, 18 Oct 2013 19:43:54 +0200 [thread overview]
Message-ID: <5261735A.1000504@gmail.com> (raw)
In-Reply-To: <52616F81.8060504@gmail.com>
On 10/18/2013 07:27 PM, Sebastian Hesselbarth wrote:
> On 10/18/2013 06:17 PM, Ezequiel Garcia wrote:
>> On Fri, Oct 18, 2013 at 10:47:41AM -0400, Jason Cooper wrote:
>>> On Fri, Oct 18, 2013 at 01:54:13PM +0200, Sebastian Hesselbarth wrote:
>>>> With legacy devices converted to DT and a proper ethernet MAC
>>>> workaround, we can now remove the clk workarounds for legacy
>>>> devices. While at it, also cleanup the list of includes.
>>>>
>>>> Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
>>>> ---
>>>> As a follow-up patch for latest mvebu PRs, this patch is based on
>>>> git://git.infradead.org/linux-mvebu.git tags/soc-3.13-2
>>>>
>>>> Cc: Jason Cooper <jason@lakedaemon.net>
>>>> Cc: Andrew Lunn <andrew@lunn.ch>
>>>> Cc: Russell King <linux@arm.linux.org.uk>
>>>> Cc: Kevin Hilman <khilman@linaro.org>
>>>> Cc: linux-arm-kernel@lists.infradead.org
>>>> Cc: linux-kernel@vger.kernel.org
>>>> ---
>>>> arch/arm/mach-kirkwood/board-dt.c | 42
>>>> ++----------------------------------
>>>> 1 files changed, 3 insertions(+), 39 deletions(-)
>>>
>>> Applied to mvebu/soc
>>>
>>
>> Weird: I've tried to do this clean-up myself and my usual tests with
>> network
>> built as a module failed somehow. Maybe I missed something and did
>> something
>> stupid?
>
> Ezequiel,
>
> you need commits
> b5d82db net: mv643xx_eth: fix missing device_node for port devices
> f564412 net: mv643xx_eth: fix orphaned statistics timer crash
> 041b4dd net: mv643xx_eth: update statistics timer from timer context only
>
> from git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git master
>
> Those are the three net driver fixes and have not yet been pulled into
> mainline linux.
>
> Can you re-test with those three applied (or you can just merge in
> above master)? I am compiling right now and will report.
With mvebu/for-next and net/master merged in,
modular mvmdio and mv643xx_eth on Kirkwood Dockstar:
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail>
IOW, works. I hope you can confirm this, too.
Sebastian
Log follows:
---
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.12.0-rc3-00388-g863cf23 (hesselba@nijin)
(gcc version 4.3.5 (Debian 4.3.5-4) ) #26 PREEMPT Fri Oct 18 19:30:40
CEST 2013
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE),
cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Marvell Kirkwood (Flattened Device Tree), model:
Seagate FreeAgent Dockstar
...
[ 0.165779] [Firmware Info]:
/ocp@f1000000/ethernet-controller@72000/ethernet0-port@0:
local-mac-address is not set
...
root@cosmo:~# insmod mvmdio.ko
[ 206.994283] libphy: orion_mdio_bus: probed
root@cosmo:~# insmod mv643xx_eth.ko
[ 210.725345] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 211.748687] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC
address 02:50:43:19:fd:e2
[ 214.599588] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000
Mb/s, full duplex, flow control disabled
...
root@cosmo:~# dhclient eth0
...
RTNETLINK answers: File exists
root@cosmo:~# ifconfig
eth0 Link encap:Ethernet HWaddr 02:50:43:19:fd:e2
inet addr:192.168.1.54 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2822 (2.7 KiB) TX bytes:4049 (3.9 KiB)
Interrupt:29
next prev parent reply other threads:[~2013-10-18 17:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-18 11:54 [PATCH] ARM: kirkwood: remove lagacy clk workarounds Sebastian Hesselbarth
2013-10-18 11:54 ` Sebastian Hesselbarth
2013-10-18 14:47 ` Jason Cooper
2013-10-18 14:47 ` Jason Cooper
2013-10-18 16:17 ` Ezequiel Garcia
2013-10-18 16:17 ` Ezequiel Garcia
2013-10-18 16:20 ` Jason Cooper
2013-10-18 16:20 ` Jason Cooper
2013-10-18 17:27 ` Sebastian Hesselbarth
2013-10-18 17:27 ` Sebastian Hesselbarth
2013-10-18 17:43 ` Sebastian Hesselbarth [this message]
2013-10-18 17:43 ` Sebastian Hesselbarth
2013-10-18 17:45 ` Jason Cooper
2013-10-18 17:45 ` Jason Cooper
2013-10-31 23:54 ` Ezequiel Garcia
2013-10-31 23:54 ` Ezequiel Garcia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5261735A.1000504@gmail.com \
--to=sebastian.hesselbarth@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.