All of lore.kernel.org
 help / color / mirror / Atom feed
From: nicolas.ferre@atmel.com (Nicolas Ferre)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 0/9] macb: add support for Cadence GEM
Date: Mon, 21 Mar 2011 14:38:18 +0800	[thread overview]
Message-ID: <4D86F25A.7060405@atmel.com> (raw)
In-Reply-To: <20110316.131734.242138246.davem@davemloft.net>

On 3/17/2011 4:17 AM, David Miller :
> From: Jamie Iles <jamie@jamieiles.com>
> Date: Tue, 15 Mar 2011 10:14:47 +0000
> 
>> This patch series extends the Atmel MACB driver to support the Cadence
>> GEM (Gigabit Ethernet MAC) to support 10/100 operation.  The GEM is
>> based on the MACB block but has a few moved registers and bitfields.
>> This patch series attempts to use the MACB accessors where block
>> functionallity is identical and only overrides to GEM specific
>> acccessors when needed.
>>
>> This has been runtested on a board with a Cadence GEM and compile tested
>> for all at91 configurations and a number of avr32 configurations.
>>
>> Changes since v1:
>> 	- AT91 now provides a fake "hclk" and "macb_clk" has been
>> 	renamed to "pclk" to be consistent with AVR32.
>> 	- Configurable GEM receive buffer size support has been added.
>> 	- pr_foo() and dev_foo() have been converted to netdev_foo()
>> 	where appropriate.
>> 	- New conditional accessors (macb_or_gem_{read,write}l) have
>> 	been introduced that do the conditional accesses dependent on
>> 	macb/gem type.
>> 	- GEM is now dynamically detected from the module ID rather than
>> 	platform device name.
>>
>> Jean-Christophe, I haven't based this on your conditional clock patch as
>> I wasn't sure what decision had been made on that and whether the
>> at91/avr32 detection is reliable.
> 
> I'm happy to ACK this so you guys can merge this via one of the
> ARM trees:
> 
> Acked-by: David S. Miller <davem@davemloft.net>

I add my:

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>

Now, tell me if we need to setup a git tree with this and make it handled by linux-next (we do not have for at91 yet)?
or Russell can take the series in a "devel" branch?

I have tested the series with the v2 patches. It is working good with some modification that were discussed (hclk, pclk clocks). I attach modifications I have made to make it work so that you have an idea of my testbed (not a patch as you should already have this and it is on a development platform):

+/* One additional fake clock for macb interfaces */
+static struct clk hclk = {
+       .name           = "hclk",
+       .pmc_mask       = 0,
+       .type           = CLK_TYPE_PERIPHERAL,
+};

@@ -247,6 +254,7 @@ static struct clk *periph_clocks[] __initdata = {
        // irq0
        &ohci_clk,
        &tcb1_clk,
+       &hclk,
 };

[..]

                /* Clock */
-               at91_clock_associate("macb0_clk", &at91sam9x5_eth0_device.dev, "macb_clk");
+               at91_clock_associate("macb0_clk", &at91sam9x5_eth0_device.dev, "pclk");

                eth0_data = *data;
                platform_device_register(&at91sam9x5_eth0_device);

Thanks, best regards,
-- 
Nicolas Ferre

WARNING: multiple messages have this Message-ID (diff)
From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: David Miller <davem@davemloft.net>,
	jamie@jamieiles.com,
	Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	plagnioj@jcrosoft.com, Andrew Victor <linux@maxim.org.za>,
	Peter Korsgaard <jacmet@sunsite.dk>
Subject: Re: [PATCHv2 0/9] macb: add support for Cadence GEM
Date: Mon, 21 Mar 2011 14:38:18 +0800	[thread overview]
Message-ID: <4D86F25A.7060405@atmel.com> (raw)
In-Reply-To: <20110316.131734.242138246.davem@davemloft.net>

On 3/17/2011 4:17 AM, David Miller :
> From: Jamie Iles <jamie@jamieiles.com>
> Date: Tue, 15 Mar 2011 10:14:47 +0000
> 
>> This patch series extends the Atmel MACB driver to support the Cadence
>> GEM (Gigabit Ethernet MAC) to support 10/100 operation.  The GEM is
>> based on the MACB block but has a few moved registers and bitfields.
>> This patch series attempts to use the MACB accessors where block
>> functionallity is identical and only overrides to GEM specific
>> acccessors when needed.
>>
>> This has been runtested on a board with a Cadence GEM and compile tested
>> for all at91 configurations and a number of avr32 configurations.
>>
>> Changes since v1:
>> 	- AT91 now provides a fake "hclk" and "macb_clk" has been
>> 	renamed to "pclk" to be consistent with AVR32.
>> 	- Configurable GEM receive buffer size support has been added.
>> 	- pr_foo() and dev_foo() have been converted to netdev_foo()
>> 	where appropriate.
>> 	- New conditional accessors (macb_or_gem_{read,write}l) have
>> 	been introduced that do the conditional accesses dependent on
>> 	macb/gem type.
>> 	- GEM is now dynamically detected from the module ID rather than
>> 	platform device name.
>>
>> Jean-Christophe, I haven't based this on your conditional clock patch as
>> I wasn't sure what decision had been made on that and whether the
>> at91/avr32 detection is reliable.
> 
> I'm happy to ACK this so you guys can merge this via one of the
> ARM trees:
> 
> Acked-by: David S. Miller <davem@davemloft.net>

I add my:

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>

Now, tell me if we need to setup a git tree with this and make it handled by linux-next (we do not have for at91 yet)?
or Russell can take the series in a "devel" branch?

I have tested the series with the v2 patches. It is working good with some modification that were discussed (hclk, pclk clocks). I attach modifications I have made to make it work so that you have an idea of my testbed (not a patch as you should already have this and it is on a development platform):

+/* One additional fake clock for macb interfaces */
+static struct clk hclk = {
+       .name           = "hclk",
+       .pmc_mask       = 0,
+       .type           = CLK_TYPE_PERIPHERAL,
+};

@@ -247,6 +254,7 @@ static struct clk *periph_clocks[] __initdata = {
        // irq0
        &ohci_clk,
        &tcb1_clk,
+       &hclk,
 };

[..]

                /* Clock */
-               at91_clock_associate("macb0_clk", &at91sam9x5_eth0_device.dev, "macb_clk");
+               at91_clock_associate("macb0_clk", &at91sam9x5_eth0_device.dev, "pclk");

                eth0_data = *data;
                platform_device_register(&at91sam9x5_eth0_device);

Thanks, best regards,
-- 
Nicolas Ferre


  reply	other threads:[~2011-03-21  6:38 UTC|newest]

Thread overview: 92+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-15 10:14 [PATCHv2 0/9] macb: add support for Cadence GEM Jamie Iles
2011-03-15 10:14 ` Jamie Iles
2011-03-15 10:14 ` [PATCHv2 1/9] at91: provide macb clks with "pclk" and "hclk" name Jamie Iles
2011-03-15 10:14   ` Jamie Iles
2011-03-15 12:35   ` Jean-Christophe PLAGNIOL-VILLARD
2011-03-15 12:35     ` Jean-Christophe PLAGNIOL-VILLARD
2011-03-15 12:44     ` Jamie Iles
2011-03-15 12:44       ` Jamie Iles
2011-03-16  6:53   ` avictor.za at gmail.com
2011-03-16  6:53     ` avictor.za
2011-03-16  8:38     ` Russell King - ARM Linux
2011-03-16  8:38       ` Russell King - ARM Linux
2011-03-17  9:22       ` Andrew Victor
2011-03-17  9:22         ` Andrew Victor
2011-03-17 10:00         ` Russell King - ARM Linux
2011-03-17 10:00           ` Russell King - ARM Linux
2011-03-17 10:09           ` Jamie Iles
2011-03-17 10:09             ` Jamie Iles
2011-03-15 10:14 ` [PATCHv2 2/9] macb: remove conditional clk handling Jamie Iles
2011-03-15 10:14   ` Jamie Iles
2011-03-15 10:14 ` [PATCHv2 3/9] macb: unify at91 and avr32 platform data Jamie Iles
2011-03-15 10:14   ` Jamie Iles
2011-03-15 11:14   ` Peter Korsgaard
2011-03-15 11:14     ` Peter Korsgaard
2011-03-15 11:34     ` Jamie Iles
2011-03-15 11:34       ` Jamie Iles
2011-03-15 12:36     ` Jean-Christophe PLAGNIOL-VILLARD
2011-03-15 12:36       ` Jean-Christophe PLAGNIOL-VILLARD
2011-03-17  8:43     ` avictor.za at gmail.com
2011-03-17  8:43       ` avictor.za
2011-03-17  8:48       ` Peter Korsgaard
2011-03-17  8:48         ` Peter Korsgaard
2011-03-17  8:58         ` Russell King - ARM Linux
2011-03-17  8:58           ` Russell King - ARM Linux
2011-03-17  9:22           ` Peter Korsgaard
2011-03-17  9:22             ` Peter Korsgaard
2011-03-17  9:34             ` Jamie Iles
2011-03-17  9:34               ` Jamie Iles
2011-03-17 21:51               ` Jamie Iles
2011-03-17 21:51                 ` Jamie Iles
2011-03-18 15:41                 ` Russell King - ARM Linux
2011-03-18 15:41                   ` Russell King - ARM Linux
2011-03-18 15:48                   ` Jamie Iles
2011-03-18 15:48                     ` Jamie Iles
2011-03-18 15:54                     ` Russell King - ARM Linux
2011-03-18 15:54                       ` Russell King - ARM Linux
2011-03-19 15:49                       ` Nicolas Ferre
2011-03-19 15:49                         ` Nicolas Ferre
2011-04-23  5:48                       ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-23  5:48                         ` Jean-Christophe PLAGNIOL-VILLARD
2011-03-15 10:14 ` [PATCHv2 4/9] macb: convert printk to netdev_ and friends Jamie Iles
2011-03-15 10:14   ` Jamie Iles
2011-03-15 12:36   ` Jean-Christophe PLAGNIOL-VILLARD
2011-03-15 12:36     ` Jean-Christophe PLAGNIOL-VILLARD
2011-03-15 10:14 ` [PATCHv2 5/9] macb: initial support for Cadence GEM Jamie Iles
2011-03-15 10:14   ` Jamie Iles
2011-03-15 10:14 ` [PATCHv2 6/9] macb: support higher rate GEM MDIO clock divisors Jamie Iles
2011-03-15 10:14   ` Jamie Iles
2011-03-15 10:14 ` [PATCHv2 7/9] macb: support statistics for GEM devices Jamie Iles
2011-03-15 10:14   ` Jamie Iles
2011-03-15 10:14 ` [PATCHv2 8/9] macb: support DMA bus widths > 32 bits Jamie Iles
2011-03-15 10:14   ` Jamie Iles
2011-03-15 10:14 ` [PATCHv2 9/9] macb: allow GEM to have configurable receive buffer size Jamie Iles
2011-03-15 10:14   ` Jamie Iles
2011-03-16 20:17 ` [PATCHv2 0/9] macb: add support for Cadence GEM David Miller
2011-03-16 20:17   ` David Miller
2011-03-21  6:38   ` Nicolas Ferre [this message]
2011-03-21  6:38     ` Nicolas Ferre
2011-03-21 11:18     ` Jamie Iles
2011-03-21 11:18       ` Jamie Iles
2011-03-22 16:18       ` Jean-Christophe PLAGNIOL-VILLARD
2011-03-22 16:18         ` Jean-Christophe PLAGNIOL-VILLARD
2011-03-22 16:39         ` Jamie Iles
2011-03-22 16:39           ` Jamie Iles
2011-03-22 17:55           ` Jamie Iles
2011-03-22 17:55             ` Jamie Iles
2011-03-24 16:25             ` Jean-Christophe PLAGNIOL-VILLARD
2011-03-24 16:25               ` Jean-Christophe PLAGNIOL-VILLARD
2011-03-31  9:40               ` Jamie Iles
2011-03-31  9:40                 ` Jamie Iles
2011-04-05 10:28                 ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-05 10:28                   ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-05 10:49                   ` Jamie Iles
2011-04-05 10:49                     ` Jamie Iles
2011-04-05 11:21                     ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-05 11:21                       ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-05 11:47                       ` Jamie Iles
2011-04-05 11:47                         ` Jamie Iles
2011-04-05 11:57                         ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-05 11:57                           ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-05 11:12                   ` Peter Korsgaard
2011-04-05 11:12                     ` Peter Korsgaard

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=4D86F25A.7060405@atmel.com \
    --to=nicolas.ferre@atmel.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.