From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: netdev@vger.kernel.org, lethal@linux-sh.org,
linux-sh@vger.kernel.org, davem@davemloft.net
Subject: Re: [PATCH 2/2] SolutionEngine7724: fix Ether support
Date: Wed, 21 Aug 2013 22:58:47 +0400 [thread overview]
Message-ID: <52150DE7.2060309@cogentembedded.com> (raw)
In-Reply-To: <201308180219.09528.sergei.shtylyov@cogentembedded.com>
Hello.
On 08/18/2013 02:19 AM, Sergei Shtylyov wrote:
> The Ether platform data is behind the declaration of 'struct sh_eth_plat_data'
> as it's lacking the initializers for the 'register_type' and 'phy_interface'
> fields -- it means they'll be implicitly and wrongly set to SH_ETH_REG_GIGABIT
> and PHY_INTERFACE_MODE_NA. Initialize the fields explicitly and fix off-by-one
> error in the Ether memory resource end, while at it...
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> Cc: stable@vger.kernel.org
> ---
> arch/sh/boards/mach-se/7724/setup.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
> Index: net/arch/sh/boards/mach-se/7724/setup.c
> ===================================================================
> --- net.orig/arch/sh/boards/mach-se/7724/setup.c
> +++ net/arch/sh/boards/mach-se/7724/setup.c
[...]
> @@ -377,6 +377,8 @@ static struct resource sh_eth_resources[
> static struct sh_eth_plat_data sh_eth_plat = {
> .phy = 0x1f, /* SMSC LAN8187 */
> .edmac_endian = EDMAC_LITTLE_ENDIAN,
> + .register_type = SH_ETH_REG_FAST_SH4,
> + .phy_interace = PHY_INTERFACE_MODE_MII,
Darn, "interace" here too, this time spotted by myself. Obviously, I did
copy&paste the same mistake.
WBR, Sergei
prev parent reply other threads:[~2013-08-21 18:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-17 22:13 [PATCH 0/2] SH: fix platform Ether support Sergei Shtylyov
2013-08-17 22:15 ` [PATCH 1/2] SH7619: fix " Sergei Shtylyov
2013-08-21 0:05 ` David Miller
2013-08-21 14:20 ` Sergei Shtylyov
2013-08-17 22:19 ` [PATCH 2/2] SolutionEngine7724: " Sergei Shtylyov
2013-08-21 0:05 ` David Miller
2013-08-21 18:58 ` Sergei Shtylyov [this message]
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=52150DE7.2060309@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 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).