linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards
@ 2014-02-04 15:51 Sergei Shtylyov
  2014-02-04 15:53 ` [PATCH v2 1/2] ARM: shmobile: Lager: pass Ether PHY IRQ Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sergei Shtylyov @ 2014-02-04 15:51 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

   Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-v3.14-rc1-20130204' tag. Here we add support for the Ether's PHY
IRQ to the R8A7790/Lager and R8A7791/Koelsch boards.

[1/2] ARM: shmobile: Lager: pass Ether PHY IRQ
[1/2] ARM: shmobile: Koelsch: pass Ether PHY IRQ

PS: Sorry for the previous mail, I've hit Ctrl-Enter unexpectedly.

WBR, Sergei

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 1/2] ARM: shmobile: Lager: pass Ether PHY IRQ
  2014-02-04 15:51 [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards Sergei Shtylyov
@ 2014-02-04 15:53 ` Sergei Shtylyov
  2014-02-04 15:55 ` [PATCH v2 2/2] ARM: shmobile: Koelsch: " Sergei Shtylyov
  2014-02-05  7:25 ` [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards Magnus Damm
  2 siblings, 0 replies; 7+ messages in thread
From: Sergei Shtylyov @ 2014-02-04 15:53 UTC (permalink / raw)
  To: linux-arm-kernel

Pass Ether's PHY IRQ (which is IRQC's IRQ0) to the 'sh_eth' driver. Set the IRQ
trigger type to be low-level as per the Micrel PHY driver's setup.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
Changes in version 2:
- refreshed the patch.

 arch/arm/mach-shmobile/board-lager.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: renesas/arch/arm/mach-shmobile/board-lager.c
===================================================================
--- renesas.orig/arch/arm/mach-shmobile/board-lager.c
+++ renesas/arch/arm/mach-shmobile/board-lager.c
@@ -22,6 +22,7 @@
 #include <linux/gpio_keys.h>
 #include <linux/input.h>
 #include <linux/interrupt.h>
+#include <linux/irq.h>
 #include <linux/kernel.h>
 #include <linux/leds.h>
 #include <linux/mmc/host.h>
@@ -233,6 +234,7 @@ static const struct resource mmcif1_reso
 /* Ether */
 static const struct sh_eth_plat_data ether_pdata __initconst = {
 	.phy			= 0x1,
+	.phy_irq		= irq_pin(0),
 	.edmac_endian		= EDMAC_LITTLE_ENDIAN,
 	.phy_interface		= PHY_INTERFACE_MODE_RMII,
 	.ether_link_active_low	= 1,
@@ -618,6 +620,8 @@ static void __init lager_init(void)
 {
 	lager_add_standard_devices();
 
+	irq_set_irq_type(irq_pin(0), IRQ_TYPE_LEVEL_LOW);
+
 	if (IS_ENABLED(CONFIG_PHYLIB))
 		phy_register_fixup_for_id("r8a7790-ether-ff:01",
 					  lager_ksz8041_fixup);

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 2/2] ARM: shmobile: Koelsch: pass Ether PHY IRQ
  2014-02-04 15:51 [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards Sergei Shtylyov
  2014-02-04 15:53 ` [PATCH v2 1/2] ARM: shmobile: Lager: pass Ether PHY IRQ Sergei Shtylyov
@ 2014-02-04 15:55 ` Sergei Shtylyov
  2014-02-05  7:25 ` [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards Magnus Damm
  2 siblings, 0 replies; 7+ messages in thread
From: Sergei Shtylyov @ 2014-02-04 15:55 UTC (permalink / raw)
  To: linux-arm-kernel

Pass Ether's PHY IRQ (which is IRQC's IRQ0) to the 'sh_eth' driver. Set the IRQ
trigger type to be low-level as per the Micrel PHY driver's setup.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
Changes in version 2:
- refreshed the patch.

 arch/arm/mach-shmobile/board-koelsch.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: renesas/arch/arm/mach-shmobile/board-koelsch.c
===================================================================
--- renesas.orig/arch/arm/mach-shmobile/board-koelsch.c
+++ renesas/arch/arm/mach-shmobile/board-koelsch.c
@@ -23,6 +23,7 @@
 #include <linux/gpio.h>
 #include <linux/gpio_keys.h>
 #include <linux/input.h>
+#include <linux/irq.h>
 #include <linux/kernel.h>
 #include <linux/leds.h>
 #include <linux/phy.h>
@@ -92,6 +93,7 @@ static void __init koelsch_add_du_device
 /* Ether */
 static const struct sh_eth_plat_data ether_pdata __initconst = {
 	.phy			= 0x1,
+	.phy_irq		= irq_pin(0),
 	.edmac_endian		= EDMAC_LITTLE_ENDIAN,
 	.phy_interface		= PHY_INTERFACE_MODE_RMII,
 	.ether_link_active_low	= 1,
@@ -232,6 +234,8 @@ static void __init koelsch_init(void)
 {
 	koelsch_add_standard_devices();
 
+	irq_set_irq_type(irq_pin(0), IRQ_TYPE_LEVEL_LOW);
+
 	if (IS_ENABLED(CONFIG_PHYLIB))
 		phy_register_fixup_for_id("r8a7791-ether-ff:01",
 					  koelsch_ksz8041_fixup);

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards
  2014-02-04 15:51 [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards Sergei Shtylyov
  2014-02-04 15:53 ` [PATCH v2 1/2] ARM: shmobile: Lager: pass Ether PHY IRQ Sergei Shtylyov
  2014-02-04 15:55 ` [PATCH v2 2/2] ARM: shmobile: Koelsch: " Sergei Shtylyov
@ 2014-02-05  7:25 ` Magnus Damm
  2014-02-05 16:36   ` Sergei Shtylyov
  2 siblings, 1 reply; 7+ messages in thread
From: Magnus Damm @ 2014-02-05  7:25 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Sergei,

On Wed, Feb 5, 2014 at 12:51 AM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Hello.
>
>    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-v3.14-rc1-20130204' tag. Here we add support for the Ether's PHY
> IRQ to the R8A7790/Lager and R8A7791/Koelsch boards.
>
> [1/2] ARM: shmobile: Lager: pass Ether PHY IRQ
> [1/2] ARM: shmobile: Koelsch: pass Ether PHY IRQ

Thanks, looking good!

/ magnus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards
  2014-02-05  7:25 ` [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards Magnus Damm
@ 2014-02-05 16:36   ` Sergei Shtylyov
  2014-02-06  6:34     ` Simon Horman
  0 siblings, 1 reply; 7+ messages in thread
From: Sergei Shtylyov @ 2014-02-05 16:36 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

On 02/05/2014 10:25 AM, Magnus Damm wrote:

>>     Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
>> 'renesas-devel-v3.14-rc1-20130204' tag. Here we add support for the Ether's PHY
>> IRQ to the R8A7790/Lager and R8A7791/Koelsch boards.

>> [1/2] ARM: shmobile: Lager: pass Ether PHY IRQ
>> [1/2] ARM: shmobile: Koelsch: pass Ether PHY IRQ

> Thanks, looking good!

    Not at all, you've already tested these patches, IIRC.

> / magnus

WBR, Sergei

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards
  2014-02-05 16:36   ` Sergei Shtylyov
@ 2014-02-06  6:34     ` Simon Horman
  2014-02-06 11:49       ` Sergei Shtylyov
  0 siblings, 1 reply; 7+ messages in thread
From: Simon Horman @ 2014-02-06  6:34 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Feb 05, 2014 at 07:36:58PM +0300, Sergei Shtylyov wrote:
> Hello.
> 
> On 02/05/2014 10:25 AM, Magnus Damm wrote:
> 
> >>    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> >>'renesas-devel-v3.14-rc1-20130204' tag. Here we add support for the Ether's PHY
> >>IRQ to the R8A7790/Lager and R8A7791/Koelsch boards.
> 
> >>[1/2] ARM: shmobile: Lager: pass Ether PHY IRQ
> >>[1/2] ARM: shmobile: Koelsch: pass Ether PHY IRQ
> 
> >Thanks, looking good!
> 
>    Not at all, you've already tested these patches, IIRC.

Thanks, I have queued these up with Magnus's ack which
he supplied the previous time that you posted them.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards
  2014-02-06  6:34     ` Simon Horman
@ 2014-02-06 11:49       ` Sergei Shtylyov
  0 siblings, 0 replies; 7+ messages in thread
From: Sergei Shtylyov @ 2014-02-06 11:49 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

On 06-02-2014 10:34, Simon Horman wrote:

>>>>     Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
>>>> 'renesas-devel-v3.14-rc1-20130204' tag. Here we add support for the Ether's PHY
>>>> IRQ to the R8A7790/Lager and R8A7791/Koelsch boards.

>>>> [1/2] ARM: shmobile: Lager: pass Ether PHY IRQ
>>>> [1/2] ARM: shmobile: Koelsch: pass Ether PHY IRQ

>>> Thanks, looking good!

>>     Not at all, you've already tested these patches, IIRC.

> Thanks, I have queued these up with Magnus's ack which
> he supplied the previous time that you posted them.

    Oh, sorry, I forgot to pick it up myself. :-/

WBR, Sergei

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-02-06 11:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04 15:51 [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards Sergei Shtylyov
2014-02-04 15:53 ` [PATCH v2 1/2] ARM: shmobile: Lager: pass Ether PHY IRQ Sergei Shtylyov
2014-02-04 15:55 ` [PATCH v2 2/2] ARM: shmobile: Koelsch: " Sergei Shtylyov
2014-02-05  7:25 ` [PATCH 0/2] Add Ether's PHY IRQ support for Lager/Koelsh boards Magnus Damm
2014-02-05 16:36   ` Sergei Shtylyov
2014-02-06  6:34     ` Simon Horman
2014-02-06 11:49       ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).