From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: netdev@vger.kernel.org
Cc: lethal@linux-sh.org, linux-sh@vger.kernel.org, davem@davemloft.net
Subject: Re: [PATCH 1/2] SH7619: fix Ether support
Date: Wed, 21 Aug 2013 14:20:54 +0000 [thread overview]
Message-ID: <5214CCC6.8090206@cogentembedded.com> (raw)
In-Reply-To: <201308180215.43063.sergei.shtylyov@cogentembedded.com>
Hello.
On 18-08-2013 2:15, Sergei Shtylyov wrote:
> The 'sh_eth' driver's probe will crash as the platform code is hopelessly behind
> the platform data -- it passes PHY ID instead of 'struct sh_eth_plat_data *'.
> Strangely, both commit d88a3ea6fa4c (SH7619 add ethernet controler support) that
> added the platform code and commit 71557a37adb5 ([netdrvr] sh_eth: Add SH7619
> support) were done in about the same time, yet the latter one added 'struct
> sh_eth_plat_data' and the platform code didn't ever get updated...
>
> Add the proper platform data and fix off-by-one memory resource end error, while
> at it...
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> Cc: stable@vger.kernel.org
> ---
> arch/sh/kernel/cpu/sh2/setup-sh7619.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
> Index: net/arch/sh/kernel/cpu/sh2/setup-sh7619.c
> =================================> --- net.orig/arch/sh/kernel/cpu/sh2/setup-sh7619.c
> +++ net/arch/sh/kernel/cpu/sh2/setup-sh7619.c
[...]
> @@ -110,10 +111,17 @@ static struct platform_device scif2_devi
> },
> };
>
> +static struct sh_eth_plat_data eth_platform_data = {
> + .phy = 1,
> + .edmac_endian = EDMAC_LITTLE_ENDIAN,
> + .register_type = SH_ETH_REG_FAST_SH3_SH2,
> + .phy_interace = PHY_INTERFACE_MODE_MII,
Grr, I forgot to compile test this patch as the kbuild test robot just
told me... s/phy_interace/phy_interface/. I'll send a fix today.
WBR, Sergei
WARNING: multiple messages have this Message-ID (diff)
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: netdev@vger.kernel.org
Cc: lethal@linux-sh.org, linux-sh@vger.kernel.org, davem@davemloft.net
Subject: Re: [PATCH 1/2] SH7619: fix Ether support
Date: Wed, 21 Aug 2013 18:20:54 +0400 [thread overview]
Message-ID: <5214CCC6.8090206@cogentembedded.com> (raw)
In-Reply-To: <201308180215.43063.sergei.shtylyov@cogentembedded.com>
Hello.
On 18-08-2013 2:15, Sergei Shtylyov wrote:
> The 'sh_eth' driver's probe will crash as the platform code is hopelessly behind
> the platform data -- it passes PHY ID instead of 'struct sh_eth_plat_data *'.
> Strangely, both commit d88a3ea6fa4c (SH7619 add ethernet controler support) that
> added the platform code and commit 71557a37adb5 ([netdrvr] sh_eth: Add SH7619
> support) were done in about the same time, yet the latter one added 'struct
> sh_eth_plat_data' and the platform code didn't ever get updated...
>
> Add the proper platform data and fix off-by-one memory resource end error, while
> at it...
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> Cc: stable@vger.kernel.org
> ---
> arch/sh/kernel/cpu/sh2/setup-sh7619.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
> Index: net/arch/sh/kernel/cpu/sh2/setup-sh7619.c
> ===================================================================
> --- net.orig/arch/sh/kernel/cpu/sh2/setup-sh7619.c
> +++ net/arch/sh/kernel/cpu/sh2/setup-sh7619.c
[...]
> @@ -110,10 +111,17 @@ static struct platform_device scif2_devi
> },
> };
>
> +static struct sh_eth_plat_data eth_platform_data = {
> + .phy = 1,
> + .edmac_endian = EDMAC_LITTLE_ENDIAN,
> + .register_type = SH_ETH_REG_FAST_SH3_SH2,
> + .phy_interace = PHY_INTERFACE_MODE_MII,
Grr, I forgot to compile test this patch as the kbuild test robot just
told me... s/phy_interace/phy_interface/. I'll send a fix today.
WBR, Sergei
next prev parent reply other threads:[~2013-08-21 14:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-17 22:11 [PATCH 0/2] SH: fix platform Ether support Sergei Shtylyov
2013-08-17 22:11 ` Sergei Shtylyov
2013-08-17 22:13 ` Sergei Shtylyov
2013-08-17 22:13 ` Sergei Shtylyov
2013-08-17 22:15 ` [PATCH 1/2] SH7619: fix " Sergei Shtylyov
2013-08-17 22:15 ` Sergei Shtylyov
2013-08-21 0:05 ` David Miller
2013-08-21 0:05 ` David Miller
2013-08-21 14:20 ` Sergei Shtylyov [this message]
2013-08-21 14:20 ` Sergei Shtylyov
2013-08-17 22:19 ` [PATCH 2/2] SolutionEngine7724: " Sergei Shtylyov
2013-08-17 22:19 ` Sergei Shtylyov
2013-08-21 0:05 ` David Miller
2013-08-21 0:05 ` David Miller
2013-08-21 18:58 ` Sergei Shtylyov
2013-08-21 18:58 ` Sergei Shtylyov
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=5214CCC6.8090206@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=davem@davemloft.net \
--cc=lethal@linux-sh.org \
--cc=linux-sh@vger.kernel.org \
--cc=netdev@vger.kernel.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.